diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-12 08:46:49 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-12 08:46:49 +0000 |
commit | 7b0ca5ffe4f2074dce460b501ba70374bebd5f77 (patch) | |
tree | cddb2e0644553b0e77531155719a8389d3407e42 /libsylph/imap.c | |
parent | 38511cacbbe75f5d2a68c2679d878ba4f3f3cd28 (diff) |
also log IMAP4 literal strings.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@639 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r-- | libsylph/imap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c index 0f75f73c..38bce92a 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -3756,6 +3756,10 @@ static gint imap_cmd_ok(IMAPSession *session, GPtrArray *argbuf) ok = IMAP_SOCKET; break; } + if (memchr(literal, '\n', len)) + log_print("IMAP4< (literal: %d bytes)\n", len); + else + log_print("IMAP4< %s\n", literal); g_string_append(str, "\r\n"); g_string_append_len(str, literal, len); |