From bd0f3af578076db4d11b6c3b4174314917411c67 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 23 Mar 2015 18:05:57 +0100 Subject: [PATCH] mask AUTHENTICATE PLAIN commands in debug output they are almost as bad as LOGIN. --- src/drv_imap.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index fd9cb1a..9d4b2a2 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -289,10 +289,12 @@ send_imap_cmd( imap_store_t *ctx, struct imap_cmd *cmd ) if (DFlags & VERBOSE) { if (ctx->num_in_progress) printf( "(%d in progress) ", ctx->num_in_progress ); - if (!starts_with( cmd->cmd, -1, "LOGIN", 5 )) - printf( "%s>>> %s", ctx->label, buf ); - else + if (starts_with( cmd->cmd, -1, "LOGIN", 5 )) printf( "%s>>> %d LOGIN \n", ctx->label, cmd->tag ); + else if (starts_with( cmd->cmd, -1, "AUTHENTICATE PLAIN", 18 )) + printf( "%s>>> %d AUTHENTICATE PLAIN \n", ctx->label, cmd->tag ); + else + printf( "%s>>> %s", ctx->label, buf ); fflush( stdout ); } iov[0].buf = buf;