diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 6cdbf26..5cb1be4 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -206,7 +206,8 @@ class IMAPServer: authz = self.user_identity NULL = u'\x00' retval = NULL.join((authz, authc, passwd)).encode('utf-8') - self.ui.debug('imap', '__plainhandler: returning %s' % retval) + logsafe_retval = NULL.join((authz, authc, "(passwd hidden for log)")).encode('utf-8') + self.ui.debug('imap', '__plainhandler: returning %s' % logsafe_retval) return retval