X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fnotes.c;h=a8e02b04ca42577acea228288e07b81c912763e8;hb=b14ad70b1de7363ca00ebebb63ad11ace29cfe8a;hp=4d78d2a9344367d42f103265dce16ef6181216bd;hpb=92924b1fdaba5db535c26d9d06f407ab3023b9d7;p=citadel.git 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);