Browse Source

mask AUTHENTICATE PLAIN commands in error output as well

amends bd0f3af5.
1.2
Oswald Buddenhagen 10 years ago
parent
commit
16aa17053d
  1. 6
      src/drv_imap.c

6
src/drv_imap.c

@ -1380,7 +1380,11 @@ imap_socket_read( void *aux )
} else /*if (!strcmp( "BAD", arg ))*/
resp = RESP_CANCEL;
error( "IMAP command '%s' returned an error: %s %s\n",
!starts_with( cmdp->cmd, -1, "LOGIN", 5 ) ? cmdp->cmd : "LOGIN <user> <pass>",
starts_with( cmdp->cmd, -1, "LOGIN", 5 ) ?
"LOGIN <user> <pass>" :
starts_with( cmdp->cmd, -1, "AUTHENTICATE PLAIN", 18 ) ?
"AUTHENTICATE PLAIN <authdata>" :
cmdp->cmd,
arg, cmd ? cmd : "" );
}
doresp:

Loading…
Cancel
Save