In my code, before creating my TIdIMAP4 connection, I created a whole bunch of SASL mechanisms, in which we hopefully prescribed the "best worst" order as follows:
IMAP.SASLMechanisms.Add.SASL := mIdSASLCRAMSHA1; IMAP.SASLMechanisms.Add.SASL := mIdSASLCRAMMD5; IMAP.SASLMechanisms.Add.SASL := mIdSASLSKey; IMAP.SASLMechanisms.Add.SASL := mIdSASLOTP; IMAP.SASLMechanisms.Add.SASL := mIdSASLAnonymous; IMAP.SASLMechanisms.Add.SASL := mIdSASLExternal; IMAP.SASLMechanisms.Add.SASL := mIdSASLLogin; IMAP.SASLMechanisms.Add.SASL := mIdSASLPlain;
and I install IMAP.AuthType := iatSASL; , so I think it should be a connection to SASL. But is there any way (say, after establishing a connection) to find out which SASL mechanism he actually used to create the connection?
source share