* Fixed a bug that caused vnotes not to display when encapsulated in multipart/altern...
authorArt Cancro <ajc@citadel.org>
Tue, 12 May 2009 21:31:44 +0000 (21:31 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 12 May 2009 21:31:44 +0000 (21:31 +0000)
webcit/notes.c

index 4d78d2a9344367d42f103265dce16ef6181216bd..a8e02b04ca42577acea228288e07b81c912763e8 100644 (file)
@@ -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);