smiley22 / S22.Imap

A free, easy-to-use and well-documented .NET library component for communicating with IMAP servers
http://smiley22.github.com/S22.Imap/Documentation/
MIT License
210 stars 112 forks source link

The client and server cannot communicate, because they do not possess a common algorithm #143

Open avi12aug opened 6 years ago

avi12aug commented 6 years ago

The client and server cannot communicate, because they do not possess a common algorithm

avi12aug commented 6 years ago

Help me to resolve above error

mmoo9154 commented 6 years ago

@avi12aug, I am unclear what your error/issue is.

If I try to guess, I suspect you might be having trouble negotiating a fully authenticated connection. This will depend on what your IMAP server supports. You can't make it support something it does not.

Instantiating a new ImapClient(hostname, port) should always work if the server is listening. In the OK response, you should receive a CAPABILITIES list. Even if you don't, you can call client.Capabilities() and you will get a list of capability strings. According to RFC 3501, every IMAP server MUST implement STARTTLS, LOGINDISABLED, and AUTH=PLAIN capabilities. So, if your server isn't broken, you will be able to client.Login() if you have valid login credentials.

If this is still an issue, please post a comment. If it's not an issue any more, please mark this as closed.

@smiley22, if @avi12aug doesn't add something, I think this ssue can be closed.