[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-mail.c, 1.17, 1.18

cras at dovecot.org cras at dovecot.org
Sun Jul 3 16:07:55 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv32516/index/maildir

Modified Files:
	maildir-mail.c 
Log Message:
Try to be a bit smarter about when to parse header/body.



Index: maildir-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-mail.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- maildir-mail.c	9 Jun 2005 14:43:07 -0000	1.17
+++ maildir-mail.c	3 Jul 2005 13:07:53 -0000	1.18
@@ -78,7 +78,7 @@
 	if (data->received_date != (time_t)-1)
 		return data->received_date;
 
-	if (data->open_mail && data->stream == NULL) {
+	if (data->access_part != 0 && data->stream == NULL) {
 		/* we're going to open the mail anyway */
 		(void)mail_get_stream(_mail, NULL, NULL);
 	}



More information about the dovecot-cvs mailing list