]> jfr.im git - irc/rizon/znc.git/commit
imapauth: Follow RFC more closely
authorUli Schlachter <redacted>
Fri, 30 Mar 2012 21:15:57 +0000 (23:15 +0200)
committerKyle Fuller <redacted>
Thu, 5 Apr 2012 12:03:41 +0000 (13:03 +0100)
commit38b64c65cee84a70e9e399ffdd6238f626e1916a
tree6c33e599ab3bec474e4ac3a12dd80e1642e1905f
parent90896da6a7dec2fd355ef54a3d5d078b42d4e21c
imapauth: Follow RFC more closely

The IMAP RFC allows the server to announce its capabilities before replying to
the LOGIN command. imapauth would misinterpret that as a failed login.

The fix is to only handle lines which contain the tag ("AUTH") used for the
login command.

Thanks to rlpowell for reporting that imapauth doesn't work against
imap.google.com and for testing the fix.

Signed-off-by: Uli Schlachter <redacted>
modules/extra/imapauth.cpp