From b14ad70b1de7363ca00ebebb63ad11ace29cfe8a Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 12 May 2009 21:31:44 +0000 Subject: [PATCH] * Fixed a bug that caused vnotes not to display when encapsulated in multipart/alternative because mime_content_type was used where msg4_content_type should have been used. --- webcit/notes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcit/notes.c b/webcit/notes.c index 4d78d2a93..a8e02b04c 100644 --- a/webcit/notes.c +++ b/webcit/notes.c @@ -95,10 +95,9 @@ struct vnote *vnote_new_from_msg(long msgnum,int unread) } else { phase++; - if ((msg4_content_length > 0) && ( !strcasecmp(msg4_content_encoding, "7bit")) - && (!strcasecmp(mime_content_type, "text/vnote")) + && (!strcasecmp(msg4_content_type, "text/vnote")) ) { vnote_inline = 1; } @@ -188,6 +187,7 @@ void write_vnote_to_server(struct vnote *v) serv_printf("--%s", boundary); serv_puts("Content-type: text/vnote"); + serv_puts("Content-Transfer-Encoding: 7bit"); serv_puts(""); pch = vnote_serialize(v); serv_puts(pch); -- 2.30.2