Skip to content
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

Unexpected token in IMAP greeting: [atom: BYE] #262

Closed
nhaberl opened this issue Nov 17, 2015 · 4 comments
Closed

Unexpected token in IMAP greeting: [atom: BYE] #262

nhaberl opened this issue Nov 17, 2015 · 4 comments
Labels
enhancement New feature or request

Comments

@nhaberl
Copy link

nhaberl commented Nov 17, 2015

Sometimes we get this error in our unit tests when trying to connect to an self hosted exchange server.
MailKit.Net.Imap.ImapProtocolException: Unexpected token in IMAP greeting: [atom: BYE]

No specific time or day when that happens.

Any help appreciated,
thanks Norbert

@jstedfast jstedfast added the enhancement New feature or request label Nov 17, 2015
@jstedfast
Copy link
Owner

It means that your server is sending * BYE as soon as you connect.

If you can get me a log, I can probably make it handle that case a bit better, but it's still going to result in an immediate disconnect (since the server is disconnecting you).

@nhaberl
Copy link
Author

nhaberl commented Nov 17, 2015

Thanks, will try to get the log.

@jstedfast
Copy link
Owner

fwiw, you can find directions on getting a log here: https://github.com/jstedfast/MailKit/blob/master/FAQ.md#ProtocolLog

jstedfast added a commit that referenced this issue Nov 17, 2015
@jstedfast
Copy link
Owner

never mind, I already had a FIXME in place for this case.

It now throws an ImapProtocolException with a message of "IMAP server unexpected disconnected."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants