From: Art Cancro Date: Tue, 12 May 2009 20:42:08 +0000 (+0000) Subject: * load_mimepart() was including protocol chatter in its data buffer. Fixed. X-Git-Tag: v7.86~1177 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=14037268b1c5c0ecf3a256ef400733255f518776 * load_mimepart() was including protocol chatter in its data buffer. Fixed. --- 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