This lets mailnag use CRAM-MD5 authentication for IMAP accounts if this advertised by the IMAP server through the capabilities string given on connection.
If CRAM-MD5 is not advertised the standard (plaintext) LOGIN method will be used as it is currently.
As well as being more secure, this also means that if server operators have disabled LOGIN method mailnag can still be used.
This lets mailnag use CRAM-MD5 authentication for IMAP accounts if this advertised by the IMAP server through the capabilities string given on connection.
If CRAM-MD5 is not advertised the standard (plaintext) LOGIN method will be used as it is currently.
As well as being more secure, this also means that if server operators have disabled LOGIN method mailnag can still be used.