From 14037268b1c5c0ecf3a256ef400733255f518776 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 12 May 2009 20:42:08 +0000 Subject: [PATCH] * load_mimepart() was including protocol chatter in its data buffer. Fixed. --- webcit/messages.c | 3 ++- webcit/notes.c | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/webcit/messages.c b/webcit/messages.c index fd9c6e8b0..97d7f02fb 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -1626,7 +1626,8 @@ StrBuf *load_mimepart(long msgnum, char *partnum) if (GetServerStatus(Buf, NULL) == 6) { StrBufCutLeft(Buf, 4); bytes = StrBufExtract_long(Buf, 0, '|'); - + FreeStrBuf(&Buf); + Buf = NewStrBuf(); StrBuf_ServGetBLOBBuffered(Buf, bytes); return(Buf); } diff --git a/webcit/notes.c b/webcit/notes.c index 4222ed279..ab4dfff5d 100644 --- a/webcit/notes.c +++ b/webcit/notes.c @@ -125,8 +125,6 @@ struct vnote *vnote_new_from_msg(long msgnum,int unread) Data = load_mimepart(msgnum, relevant_partnum); } - lprintf(9, "Data is: %s\n", ChrPtr(Data)); - if (StrLength(Data) > 0) { if (!IsEmptyStr(uid_from_headers)) { // Convert an old-style note to a vNote -- 2.30.2