-
-
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 UIDNEXT response code. Unexpected token: [atom: 0] #1010
Comments
Hello! Thanks so much for providing the protocol logs! 😍 As you have discovered, the problem is that the UIDNEXT value is The syntax grammar, according to rfc3501 (page 85):
As we see here, the value for both
This is why MailKit is throwing the exception. That said, you'll probably notice based on the syntax above, that MailKit isn't throwing an exception for The reason for this is because MailKit already has work-arounds for those. The reason that
Anyway, I'll add a work-around for |
Thanks so much for the fix. Is there a way to push it to nuget? Tried build master branch but I got errors sadly :( |
FWIW, every commit results in a new automated build/nuget package published to https://www.myget.org/feed/mimekit/package/nuget/MailKit These packages are not "official releases", but they are very handy in situations like this ;-) I normally only do a release/push to nuget.org every few months when I've collected enough fixes that I feel it's worth doing. Otherwise there'd be days where there are like 10+ new versions released ;-) |
Hi there!
C#, Windows, 64bit, .NET 4.5.2, latest nuget version.
I got a pretty straight forward code for logging into the mail account, checking all folders (with count of messages) and printing them out in a richtextbox.
client.Connect is provided with correct informations, checked it three times, same as Authenticate.
Problem is with
folder.Open(FolderAccess.ReadOnly);
.. and only on some of the hosts, not all of them (right now I found that problem on two).
Here is what exception is throwing out:
Logs says:
draftbox is clear (0 messages).
I checked it on other host, with clear mailbox and UIDNEXT is 1.
I did check skipping "Drafts" folder, and on clear INBOX I got:
So it looks like when I got clear mailbox folder for some cases UIDNEXT is 0.
On a full mailbox folder (like 700 messages) it seems that it is working just fine.
The text was updated successfully, but these errors were encountered: