1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-08-13 16:53:51 -04:00

IMAP: hide login password in log file

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@372 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-02-18 01:17:10 +00:00
parent a76513ec59
commit cfc4788774

View File

@ -114,7 +114,8 @@ public class AbstractConnection extends Thread {
if (line.startsWith("PASS")) {
DavGatewayTray.debug("< PASS ********");
// IMAP LOGIN
} else if (line.startsWith("LOGIN")) {
} else if (state == State.INITIAL && line.indexOf(' ')>=0 &&
line.substring(line.indexOf(' ')+1).startsWith("LOGIN")) {
DavGatewayTray.debug("< LOGIN ********");
} else if (state == State.PASSWORD) {
DavGatewayTray.debug("< ********");