You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
If the "| MessageSummaryItems.PreviewText" add to the fetch, there may be exception occur. It seems that when the preview text is null and the MimeUtils.TryParse() can't deal with this situation.
{"Value cannot be null.\r\nParameter name: text"}
at MimeKit.Utils.MimeUtils.TryParse(String text, ContentEncoding& encoding)\r\n
at MailKit.Net.Imap.ImapFolder.FetchPreviewTextContext.Add(Section section)\r\n
at MailKit.Net.Imap.ImapFolder.FetchStreamAsync(ImapEngine engine, ImapCommand ic, Int32 index, Boolean doAsync)\r\n
at MailKit.Net.Imap.ImapEngine.ProcessUntaggedResponseAsync(Boolean doAsync, CancellationToken cancellationToken)\r\n
at MailKit.Net.Imap.ImapCommand.StepAsync(Boolean doAsync)\r\n
at MailKit.Net.Imap.ImapEngine.IterateAsync(Boolean doAsync)\r\n
at MailKit.Net.Imap.ImapEngine.RunAsync(ImapCommand ic, Boolean doAsync)\r\n
at MailKit.Net.Imap.ImapFolder.GetPreviewTextAsync(FetchSummaryContext sctx, Boolean doAsync, CancellationToken cancellationToken)\r\n
at MailKit.Net.Imap.ImapFolder.FetchAsync(Int32 min, Int32 max, MessageSummaryItems items, Boolean doAsync, CancellationToken cancellationToken)\r\n
at MailKit.Net.Imap.ImapFolder.Fetch(Int32 min, Int32 max, MessageSummaryItems items, CancellationToken cancellationToken)\r\n
The text was updated successfully, but these errors were encountered:
moyanming
changed the title
Exception occur when fetching with the null value of the "PreviewText" item
Exception occur when fetching with the "PreviewText" item
Jul 21, 2019
Hi,
If the "| MessageSummaryItems.PreviewText" add to the fetch, there may be exception occur. It seems that when the preview text is null and the MimeUtils.TryParse() can't deal with this situation.
The text was updated successfully, but these errors were encountered: