-
-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax error in BODYSTRUCTURE. Unexpected token: '(' #1700
Comments
Based on the exception, the issue is with parsing the Luckily, your log has only 1 FETCH response, so it means it has to be this:
From just looking at it, I suspect the issue is the
My initial assumption based on what I'm seeing in the log is that yes, this server bug can be worked around. I'll work on a fix shortly. |
Thanks for your fast answer and help, |
…ield in BODYSTRUCTURE Fixes issue #1700
To get even more specific, the issue is with |
Thanks for your awesome work. a 💕 Dinner for Two 💕 is on the way to you :D |
Hey,
I am getting a issue with BODYSTRUCTURE parsing.
See similar error:
#1393
#777
#371
[MailKit.Net](http://mailkit.net/).Imap.ImapProtocolException HResult=0x80131500 Message=Syntax error in BODYSTRUCTURE. Unexpected token: '(' Source=MailKit StackTrace: at [MailKit.Net](http://mailkit.net/).Imap.ImapUtils.ReadNStringToken(ImapEngine engine, String format, Boolean rfc2047, CancellationToken cancellationToken) at [MailKit.Net](http://mailkit.net/).Imap.ImapUtils.ParseBody(ImapEngine engine, String format, String path, CancellationToken cancellationToken) at [MailKit.Net](http://mailkit.net/).Imap.ImapUtils.ParseMultipart(ImapEngine engine, String format, String path, CancellationToken cancellationToken) at [MailKit.Net](http://mailkit.net/).Imap.ImapUtils.ParseBody(ImapEngine engine, String format, String path, CancellationToken cancellationToken) at [MailKit.Net](http://mailkit.net/).Imap.ImapFolder.ParseSummaryItems(ImapEngine engine, MessageSummary message, FetchSummaryItemsCompletedCallback completed, CancellationToken cancellationToken) at [MailKit.Net](http://mailkit.net/).Imap.ImapFolder.UntaggedFetchSummaryItemsHandler(ImapEngine engine, ImapCommand ic, Int32 index, Boolean doAsync) at [MailKit.Net](http://mailkit.net/).Imap.ImapEngine.ProcessUntaggedResponse(CancellationToken cancellationToken) at [MailKit.Net](http://mailkit.net/).Imap.ImapCommand.Step() at [MailKit.Net](http://mailkit.net/).Imap.ImapEngine.Iterate() at [MailKit.Net](http://mailkit.net/).Imap.ImapEngine.Run(ImapCommand ic) at [MailKit.Net](http://mailkit.net/).Imap.ImapFolder.Fetch(IList1 uids, IFetchRequest request, CancellationToken cancellationToken) at MailKit.IMailFolderExtensions.Fetch(IMailFolder folder, IList1 uids, MessageSummaryItems items, IEnumerable1 headers, CancellationToken cancellationToken) at Management.Services.MailboxSyncService.Synchronization.MailboxFolderSync.<SyncMails>d__1.MoveNext() in C:\Users\konta\Source\Repos\Hochzeit.Management-DEV\Source\Management.Services.MailboxSyncService\Synchronization\MailboxFolderSync.cs:line 188 This exception was originally thrown at this call stack: [External Code] Management.Services.MailboxSyncService.Synchronization.MailboxFolderSync.SyncMails(Management.Modules.Mailing.HmImapClient, System.Guid, System.Guid, MailKit.IMailFolder, System.Collections.Generic.List<Management.Services.MailboxSyncService.Models.ContactMappingModel>) in MailboxFolderSync.cs
Using .net Framework 4.6.1
Mailkit library: v4.3.0.962
imap.log
Any ideas, if this can be fixed, or maybe even message could be ignored somehow?
Thanks
The text was updated successfully, but these errors were encountered: