[dovecot-cvs] dovecot/src/lib-imap imap-bodystructure.c,1.37,1.38

cras at procontrol.fi cras at procontrol.fi
Sun Jul 13 05:08:12 EEST 2003


Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv17838/lib-imap

Modified Files:
	imap-bodystructure.c 
Log Message:
Ignore Content-* headers if there's no MIME-Version header. Note that this
change breaks cached message parts in indexes.



Index: imap-bodystructure.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-bodystructure.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- imap-bodystructure.c	2 Jul 2003 00:57:25 -0000	1.37
+++ imap-bodystructure.c	13 Jul 2003 01:08:10 -0000	1.38
@@ -260,7 +260,8 @@
 
 	t_push();
 
-	parse_content_header(part_data, hdr, pool);
+	if ((part->flags & MESSAGE_PART_FLAG_IS_MIME) != 0)
+		parse_content_header(part_data, hdr, pool);
 
 	if (parent_rfc822) {
 		/* message/rfc822, we need the envelope */



More information about the dovecot-cvs mailing list