diff options
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/pop3/camel-pop3-stream.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/camel/providers/pop3/camel-pop3-stream.c b/camel/providers/pop3/camel-pop3-stream.c index 23b9b1e040..cb27bece26 100644 --- a/camel/providers/pop3/camel-pop3-stream.c +++ b/camel/providers/pop3/camel-pop3-stream.c @@ -148,9 +148,12 @@ static ssize_t stream_write(CamelStream *stream, const char *buffer, size_t n) { CamelPOP3Stream *is = (CamelPOP3Stream *)stream; - - dd(printf("POP3_STREAM_WRITE(%d):\n%.*s\n", n, (int)n, buffer)); - + + if (strncmp (buffer, "PASS ", 5) != 0) + dd(printf("POP3_STREAM_WRITE(%d):\n%.*s\n", n, (int)n, buffer)); + else + dd(printf("POP3_STREAM_WRITE(%d):\nPASS xxxxxxxx\n", n)); + return camel_stream_write(is->source, buffer, n); } |