- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 838
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
Exceptions in Disposition during folder listing #486
Comments
As far as I can tell, this can't happen unless you ToString() the MessageSummary and then parse it back? From what I can tell, these exceptions must be coming from BodyPart.TryParse()? |
…n value Another work-around for jstedfast/MailKit#486
Added 2 work-arounds for these in the ContentDisposition parser in MimeKit, but that's not where you were getting these exceptions from... |
Here's where the exception occurs:
MessageSummaries:
|
Can you provide a stack trace? I get that it's happening there, but I need more specifics because I don't see how it's possible to hit those particular exceptions. The problem is, the only way to hit both of those exceptions are: new ContentDisposition ("\"inline\""); or disposition.Disposition = "\"inline\""; The problem is that neither of those occur anywhere in ImapUtils.cs where the ContentDisposition is "parsed" from the IMAP FETCH response. Instead, what that code does is construct a string from the response and then calls ContentDisposition.TryParse() which sets the The only place I can find in both MimeKit and MailKit that could emit these exceptions is in the |
Wait, never mind... I found where ImapUtils.cs calls |
ok, fixed now :) |
On the plus side, I also added similar work-arounds to MimeKit's parser... (not that it would throw exceptions before, but the |
Perfect! Thanks a lot! |
MimeKit & MailKit 1.14 have been released with this fix. |
Hi,
The following exception occurs when listing a folder:
The IMAP protocol logging:
The original mail contains the following MIME part headers:
Another exception occurring is:
The IMAP protocol logging:
The original mail contains the following MIME part headers:
Is there are a solution possible for these invalid disposition headers within MailKit/MimeKit?
Thanks!
The text was updated successfully, but these errors were encountered: