From 910eaf99d2cc3e0d7de73973b2047755a9a00fa7 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 24 Feb 2003 20:30:00 +0000 Subject: Don't write the passwd, fixes "bug" #38601. 2003-02-24 Jeffrey Stedfast * providers/pop3/camel-pop3-stream.c (stream_write): Don't write the passwd, fixes "bug" #38601. svn path=/trunk/; revision=20045 --- camel/ChangeLog | 3 +++ camel/providers/pop3/camel-pop3-stream.c | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 9f86228ca3..23f21bccff 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2003-02-24 Jeffrey Stedfast + * providers/pop3/camel-pop3-stream.c (stream_write): Don't write + the passwd, fixes "bug" #38601. + * camel-iconv.c: Make bucket->refcount 31 bits and bucket->used 1 bit instead of having each use their own 32bit int. (iconv_cache_bucket_expire): Use g_iconv_close() here, missed this 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); } -- cgit