From: Timo Sirainen Date: Sun, 18 Jul 2004 02:28:01 +0000 (+0300) Subject: Avoid parsing headers twice to get IMAP envelope. X-Git-Tag: 1.1.alpha1~3778 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36977c4a74e164f7d81eb4785f0a5d3ff436fd19;p=thirdparty%2Fdovecot%2Fcore.git Avoid parsing headers twice to get IMAP envelope. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/index-mail-headers.c b/src/lib-storage/index/index-mail-headers.c index 093011ed23..b0710cd6b2 100644 --- a/src/lib-storage/index/index-mail-headers.c +++ b/src/lib-storage/index/index-mail-headers.c @@ -331,6 +331,7 @@ void index_mail_headers_get_envelope(struct index_mail *mail) struct mailbox_header_lookup_ctx *header_ctx; struct istream *stream; + mail->data.save_envelope = TRUE; header_ctx = mailbox_header_lookup_init(&mail->ibox->box, imap_envelope_headers); stream = mail->mail.get_headers(&mail->mail, header_ctx);