question

DuyDaoTrong-9419 avatar image
0 Votes"
DuyDaoTrong-9419 asked ChristyZhang-MSFT commented

Issue when sync emails from outlook account which have a large number of email folders

Good day,

We have a CRM which allow users to add their Outlook.com account to our system then we use IMAP to sync emails to CRM. Our mail scraper (written in C#) will scan all email folders in mailbox then pull new emails to system, some of connected email addresses have over 3000 email folders, thus when scan all of those we got error messages sometimes saying that "The IMAP server has unexpectedly disconnected." or "Request is throttled. Suggested backoff time …".


Could you please advise us to get over this issue?

We are using Mailkit (2.12) and .netframework 4.8 to scan the mailbox.

Thank you for your time and your considerations,

Daniel

office-outlook-itpro
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @DuyDaoTrong-9419 ,

Welcome to our forum!

I noticed that there is a case just like your case. For more convenience, please refer to: Outlook Mail fetching issues with IMAP. Thanks for your support and understanding. Hope your problems can be solved as soon as possible!

0 Votes 0 ·

1 Answer

ManuPhilip avatar image
0 Votes"
ManuPhilip answered

Check, if you can increase the default throttling limit as indicated in the following article
[exchange-online-throttling-and-limits-faq][1]

connect Remote PowerShell for your tenant as explained in 'How do I get throttling settings?' section
[1]: https://docs.microsoft.com/en-us/archive/blogs/exchangedev/exchange-online-throttling-and-limits-faq

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.