[Mail-App] dosen't show Mails

Hi,
setup: nextcloud Docker from Linuxserver on a Debian 10 (OMV 5)
Nextcloud: 20.0.4
Mail App: 1.7.2

I can add an account, it will show me the imap folders and the contingent but dosn’t show me mails anymore (worked on nc 19)

tried with my google account with app password and with my strato account - both the same. there is no error - just endless loading. that strato account is really small, like 10 mails all over (its new)

some help on this? do you need more infos?

thx
draddy

ummm… well… both are known for being not easy to handle.
the most common problem with google is: someone forgot to grant rights for external access.
the most common problem with strato-mail is that strato seems to be very strict about who’s allowed external access to their emailservers.

pls check the forum on BOTH providers as there are several threads about both.

and don’t forget to fill us in about a possible solution.

hi,
also add an gmx. account now, same problem.

gmail goes the way app password - i use it - and account seems to be ok, i see all that imap folders, i see used space etc pp. so the access to my accound looks ok
same for my strato account. gmx. don’t support contingent but i see the folders.

and all mails worked until the update to NC 20.0.4 - it wasn’t fast all the time but worked, i only use it “on the fly” if i’m not at home (here i use thunderbird)

maybe something with update went wrong?

Im on the same boat!
Config its OK, mail retrieves folders, quota and even email reads count but not showing any email at all…tried with 3 different mail account (3 different providers) same result…
Im on same nextcloud version & same mail version.
The only difference its that Im running docker directly on a pi (buster) and not inside OMV if makes any difference…
Worked also before updating NC to 20.0.4
NC with mariadb (also dockerized) MySQL 4-byte enabled BTW

Im out of ideas, three days troubleshooting with no success…

did you check the logs?!

nothing relevant
Just few lines like:
Debug mail loading messages of folder < xxx >

thought php was the culprit but Im on 7.3.25 which I think its OK for mail 1.7.2

Ok now I see some messages like:

Error mail Horde_Imap_Client_Exception_ServerResponse: The object could not be deleted because it does not exist.
2020-12-22T20:03:00+0100

[mail] Error: Horde_Imap_Client_Exception_ServerResponse: The object could not be deleted because it does not exist. at <>

  1. /config/www/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php line 4566
    Horde_Imap_Client_Socket->_responseCode(Horde_Imap_Clien … }}, Horde_Imap_Clien … }})
  2. /config/www/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php line 4314
    Horde_Imap_Client_Socket->_getLine(Horde_Imap_Clien … }})
  3. /config/www/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php line 4242
    Horde_Imap_Client_Socket->_sendCmdChunk(Horde_Imap_Clien … }}, [Horde_Imap_Clie … }])
  4. /config/www/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php line 1751
    Horde_Imap_Client_Socket->_sendCmd(Horde_Imap_Clien … }})
  5. /config/www/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Base.php line 1733
    Horde_Imap_Client_Socket->_status([Horde_Imap_Client_Mailbox {}], 63)
  6. /config/www/nextcloud/apps/mail/lib/IMAP/FolderMapper.php line 134
    Horde_Imap_Client_Base->status(["[Gmail]"])
  7. /config/www/nextcloud/apps/mail/lib/Service/MailManager.php line 170
    OCA\Mail\IMAP\FolderMapper->getFoldersStatusAsObject(Horde_Imap_Clien … e}, “[Gmail]”)
  8. /config/www/nextcloud/apps/mail/lib/Controller/MailboxesController.php line 231
    OCA\Mail\Service\MailManager->getMailboxStats(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 592})
  9. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 169
    OCA\Mail\Controller\MailboxesController->stats(592)
  10. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 100
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Control … {}, “stats”)
  11. /config/www/nextcloud/lib/private/AppFramework/App.php line 152
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Control … {}, “stats”)
  12. /config/www/nextcloud/lib/private/Route/Router.php line 308
    OC\AppFramework\App::main(“OCA\Mail\Cont … r”, “stats”, OC\AppFramework\ … {}, {action: null,id … "})
  13. /config/www/nextcloud/lib/base.php line 1008
    OC\Route\Router->match("/apps/mail/api/mailboxes/592/stats")
  14. /config/www/nextcloud/index.php line 37
    OC::handleRequest()

GET /apps/mail/api/mailboxes/592/stats
from 172.68.94.115 by admin at 2020-12-22T19:03:07+00:00

--------------------------- AND ALSO ---------------------------
mail OCA\Mail\Exception\ServiceException: Sync failed for 1:INBOX: Return value of OCA\Mail\Address::getEmail() must be of the type string or null, bool returned

/config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php - line 128:

OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 586}, OC\AppFramew ... {}, 42, null, false, true)

/config/www/nextcloud/apps/mail/lib/BackgroundJob/SyncJob.php - line 92:

OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount(OCA\Mail\Account {}, OC\AppFramew ... {})

/config/www/nextcloud/lib/public/BackgroundJob/Job.php - line 80:

OCA\Mail\BackgroundJob\SyncJob->run({ accountId: 1})

/config/www/nextcloud/lib/public/BackgroundJob/TimedJob.php - line 61:

OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

/config/www/nextcloud/cron.php - line 127:

OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

Provocat per TypeError: Return value of OCA\Mail\Address::getEmail() must be of the type string or null, bool returned

/config/www/nextcloud/apps/mail/lib/Db/MessageMapper.php - line 295:

OCA\Mail\Address->getEmail()

/config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php - line 287:

OCA\Mail\Db\MessageMapper->insertBulk(OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null})

/config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php - line 215:

OCA\Mail\Service\Sync\ImapToDbSynchronizer->runInitialSync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 586}, OC\AppFramew ... {})

/config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php - line 128:

OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 586}, OC\AppFramew ... {}, 42, null, false, true)

/config/www/nextcloud/apps/mail/lib/BackgroundJob/SyncJob.php - line 92:

OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount(OCA\Mail\Account {}, OC\AppFramew ... {})

/config/www/nextcloud/lib/public/BackgroundJob/Job.php - line 80:

OCA\Mail\BackgroundJob\SyncJob->run({ accountId: 1})

/config/www/nextcloud/lib/public/BackgroundJob/TimedJob.php - line 61:

OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

/config/www/nextcloud/cron.php - line 127:

OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

2020-12-22T20:20:08+0100
Error PHP Error: iconv(): Wrong charset, conversion from UTF-8' to UTF-8//IGNORE’ is not allowed at /config/www/nextcloud/apps/mail/lib/Address.php#82

<<closure>>

OC\Log\ErrorHandler::onError(8, "iconv(): Wr ... d", "/config/www ... p", 82, { email: "support@linode.com"})

/config/www/nextcloud/apps/mail/lib/Address.php - line 82:

iconv("UTF-8", "UTF-8//IGNORE", "support@linode.com")

/config/www/nextcloud/apps/mail/lib/Db/MessageMapper.php - line 295:

OCA\Mail\Address->getEmail()

/config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php - line 287:

OCA\Mail\Db\MessageMapper->insertBulk(OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null}, OCA\Mail\Db\Message { id: null})

/config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php - line 215:

OCA\Mail\Service\Sync\ImapToDbSynchronizer->runInitialSync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 586}, OC\AppFramew ... {})

/config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php - line 128:

OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 586}, OC\AppFramew ... {}, 42, null, false, true)

/config/www/nextcloud/apps/mail/lib/BackgroundJob/SyncJob.php - line 92:

OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount(OCA\Mail\Account {}, OC\AppFramew ... {})

/config/www/nextcloud/lib/public/BackgroundJob/Job.php - line 80:

OCA\Mail\BackgroundJob\SyncJob->run({ accountId: 1})

/config/www/nextcloud/lib/public/BackgroundJob/TimedJob.php - line 61:

OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

/config/www/nextcloud/cron.php - line 127:

OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

-----------UPDATE------------

Maybe related to this??
https://github.com/nextcloud/mail/issues/3908#issuecomment-722610086

-----------UPDATE------------no 2

Indeed that was it; executed script from my last Update fixed the issue and emais loaded just fine.
Sorry for posting here if it was not the right place (maybe github instead?)
and sorry for editing post but Im new here; just allowed 3 post for thread…

Lets move on, keep safe!

Is it not https://github.com/nextcloud/mail/issues/3999?