[dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c,
1.38, 1.39
cras at dovecot.org
cras at dovecot.org
Tue Oct 5 01:52:43 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv32472/lib-storage/index
Modified Files:
index-mail-headers.c
Log Message:
Don't crash if fetching ENVELOPE for expunged message.
Index: index-mail-headers.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-mail-headers.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- index-mail-headers.c 28 Aug 2004 13:10:22 -0000 1.38
+++ index-mail-headers.c 4 Oct 2004 22:52:41 -0000 1.39
@@ -364,7 +364,7 @@
header_ctx = mailbox_header_lookup_init(&mail->ibox->box,
imap_envelope_headers);
stream = mail->mail.get_headers(&mail->mail, header_ctx);
- if (mail->data.envelope == NULL) {
+ if (mail->data.envelope == NULL && stream != NULL) {
/* we got the headers from cache - parse them to get the
envelope */
message_parse_header(NULL, stream, NULL,
More information about the dovecot-cvs
mailing list