MailKit: Syntax error in BODYSTRUCTURE. Unexpected token: '('
Hi, I have checked internet but can’t find a solution for this. I have few email addresses from the same server which are working fine. There is only this one email which is generating this error and not downloading emails. It’s using imap, here is the detailed error
at MailKit.Net.Imap.ImapUtils.ReadNStringToken(ImapEngine engine, String format, Boolean rfc2047, CancellationToken cancellationToken)
at MailKit.Net.Imap.ImapUtils.ParseContentType(ImapEngine engine, String format, CancellationToken cancellationToken, ContentType& contentType, String& value)
at MailKit.Net.Imap.ImapUtils.ParseBody(ImapEngine engine, String format, String path, CancellationToken cancellationToken)
at MailKit.Net.Imap.ImapUtils.ParseMultipart(ImapEngine engine, String format, String path, String subtype, CancellationToken cancellationToken)
at MailKit.Net.Imap.ImapUtils.ParseBody(ImapEngine engine, String format, String path, CancellationToken cancellationToken)
at MailKit.Net.Imap.ImapFolder.FetchSummaryItems(ImapEngine engine, ImapCommand ic, Int32 index)
at MailKit.Net.Imap.ImapEngine.ProcessUntaggedResponse(CancellationToken cancellationToken)
at MailKit.Net.Imap.ImapCommand.Step()
at MailKit.Net.Imap.ImapEngine.Iterate()
at MailKit.Net.Imap.ImapEngine.Wait(ImapCommand ic)
at MailKit.Net.Imap.ImapFolder.Fetch(IList`1 uids, MessageSummaryItems items, CancellationToken cancellationToken)
at OutReachEmailDownload.MailKitNet.GetAllMails(DateTime FromDateTime, EmailAccount emailAccount, DbContext _dbContext) in MailKitNet.cs:line 125
Any help would be great.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 24 (13 by maintainers)
Commits related to this issue
- Attempt to work around another broken IMAP BODYSTRUCTURE response Attempts to work around brokeness such as that in issue #371 — committed to jstedfast/MailKit by jstedfast 8 years ago
Thanks for taking a look and thanks for you work on email tools.