This project is read-only.


IMAP4 Authenticate Plain missing (fix inside!)


MS Exchange Server requires authenticate plain when connecting with SSL.
Login or Authenticate Login do not work.
(At least in the configurations I encountered)

Also Imap4Client has problems parsing Exchange Server Responses.

Files to Fix:
ActiveUp.Net.Common\SaslMechanism.cs: Simply uncomment Enum entry "Plain"
  1. Add new method _Plain (similar to _Login)
  2. Extend method Authenticate to call _Plain
  3. Change method CommandBinary(string command, string stamp, CommandOptions options = null) to
    also check for "+\r\n" the same way as for "+ " since Exchange returns "+\r\n".
The code changes are attached.

file attachments

Closed Jun 7, 2016 at 3:24 PM by reinaldocoelho
ms89, thanks for the package.

I efetuei validation and efetuei commit its correction in the Trunk. Do you have any suggestions of how to automate a test for this fix?

Automation is always very important to make sure that a bug does not occur again.

I'm trying to revive the project, thanks for the help.


jstedfast wrote Mar 22, 2016 at 4:43 PM

You might have better luck switching to MailKit since this project seems to be dead.

MailKit already supports the PLAIN SASL mechanism and has a proper IMAP tokenizer and so does not have the "+" vs "+ " issue you encountered.

Hope that helps.

wrote Jun 7, 2016 at 3:24 PM

wrote Jun 7, 2016 at 3:24 PM

ms89 wrote Jun 11, 2016 at 11:09 AM

I have already switched to MailKit, sorry.