dovecot: Don't try to cache BODY/BODYSTRUCTURE if we didn't even...

dovecot at dovecot.org dovecot at dovecot.org
Fri Dec 21 21:40:02 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/03cb4c0802a7
changeset: 7015:03cb4c0802a7
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Dec 21 21:39:58 2007 +0200
description:
Don't try to cache BODY/BODYSTRUCTURE if we didn't even parse it.

diffstat:

1 file changed, 3 insertions(+)
src/lib-storage/index/index-mail.c |    3 +++

diffs (13 lines):

diff -r 6835ac721609 -r 03cb4c0802a7 src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c	Fri Dec 21 21:38:38 2007 +0200
+++ b/src/lib-storage/index/index-mail.c	Fri Dec 21 21:39:58 2007 +0200
@@ -541,6 +541,9 @@ index_mail_body_parsed_cache_bodystructu
 			plain_bodystructure = TRUE;
 		}
 	}
+
+	if (!data->parsed_bodystructure)
+		return;
 
 	/* If BODY is fetched first but BODYSTRUCTURE is also wanted, we don't
 	   normally want to first cache BODY and then BODYSTRUCTURE. So check


More information about the dovecot-cvs mailing list