You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem using IMAP and DIGEST-MD5 with my E-Mail Provider STRATO, because I get a NullReferenceException during authentication. If I remove the authentication mechanism "DIGEST-MD5", everything works well.
I have looked into the code and I think the problem is within the constructor of the class DigestResponse (file MailKit.Security.SaslMechanismDigestMd5.cs), because in my case the value of challenge.Realms of the parameter challenge is null. Therfore the if-statement at the beginning
if (challenge.Realms.Length > 0)
casues the exception. If I change the statement to
if ((challenge.Realms != null) && (challenge.Realms.Length > 0))
the authentication process succeed.
The text was updated successfully, but these errors were encountered:
Hi Jeff,
I have a problem using IMAP and DIGEST-MD5 with my E-Mail Provider STRATO, because I get a NullReferenceException during authentication. If I remove the authentication mechanism "DIGEST-MD5", everything works well.
I have looked into the code and I think the problem is within the constructor of the class DigestResponse (file MailKit.Security.SaslMechanismDigestMd5.cs), because in my case the value of challenge.Realms of the parameter challenge is null. Therfore the if-statement at the beginning
if (challenge.Realms.Length > 0)
casues the exception. If I change the statement to
if ((challenge.Realms != null) && (challenge.Realms.Length > 0))
the authentication process succeed.
The text was updated successfully, but these errors were encountered: