Expected performance for Mail app

Hi there, I’m curious about experiences folks have had with the Mail app. Specifically those with email accounts with large numbers of messages.

I have a Gmail account with over 120,000 messages in “All Mail” and over 30,000 messages in “Sent Mail”. I connected Mail to it via IMAP. Few of the individual messages are very large in size, probably none bigger than 1MiB. Thunderbird handles it fine and I can watch progress as it downloads message headers (takes about 1min from initial setup to do this). Nextcloud Mail isn’t able to open my Sent or All folders, it just shows a spinner even if I leave the tab open for hours. It does show me what’s in my inbox. My inbox has under 20 messages.

As far as not being able to open folders with many messages… is this expected? Anyone else have tips for using Mail with a Gmail (or other) IMAP account with lots of emails?

I found mail/admin.md at master · nextcloud/mail · GitHub and was thinking of trying occ mail:account:sync next.

I found Opening large mailbox takes ages · Issue #1454 · nextcloud/mail · GitHub but it says it is already resolved.

Handling of large accounts can be slow for the initial synchronization. As a web application we have the disadvantage that we are running into timeouts per request, hence the process has to be split into multiple request that sequentially initialize the database cache. Thunderbird can do this in one go.

We tested with accounts of somewhere around 100k messages. Those did work fine. Is it possible gmail rate limits the large number of IMAP operations?

Same issue over here. Get error message in log while synch large inbox, the sent box of the same account is small and does works. I use IMAP synching with two providers Zimbra and RoundCube, same result both. Inbox is about 6000 messages, 350 Mb large. Sent box is just 176 messages and works fine.

[mail] Error: OCA\Mail\Exception\ServiceException: Sync failed for 13:INBOX: Call to undefined function ini_restore() at <>

  1. /data/www/cloud.elzingaweb.nl/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php line 137
    OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 111}, OC\AppFramework\ScopedPsrLogger {}, 42, null, false, true)
  2. /data/www/cloud.elzingaweb.nl/apps/mail/lib/BackgroundJob/SyncJob.php line 122
    OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount(OCA\Mail\Account {}, OC\AppFramework\ScopedPsrLogger {})
  3. /data/www/cloud.elzingaweb.nl/lib/public/BackgroundJob/Job.php line 79
    OCA\Mail\BackgroundJob\SyncJob->run([13])
  4. /data/www/cloud.elzingaweb.nl/lib/public/BackgroundJob/TimedJob.php line 95
    OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
  5. /data/www/cloud.elzingaweb.nl/cron.php line 151
    OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

at 2022-09-26T15:00:14+00:00