[dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c,
1.36, 1.37
cras at dovecot.org
cras at dovecot.org
Sun Aug 22 13:32:57 EEST 2004
Update of /home/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv4052/lib-storage/index
Modified Files:
index-mail-headers.c
Log Message:
Changed istream-header-filter API a bit. Added HIDE_BODY option. Fixed
mail.get_headers().
Index: index-mail-headers.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-mail-headers.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- index-mail-headers.c 22 Aug 2004 05:54:54 -0000 1.36
+++ index-mail-headers.c 22 Aug 2004 10:32:55 -0000 1.37
@@ -506,10 +506,13 @@
}
static void header_cache_callback(struct message_header_line *hdr,
- int *matched __attr_unused__, void *context)
+ int *matched, void *context)
{
struct index_mail *mail = context;
+ if (hdr != NULL && hdr->eoh)
+ *matched = FALSE;
+
(void)index_mail_parse_header(NULL, hdr, mail);
}
@@ -540,7 +543,9 @@
index_mail_parse_header_init(mail, _headers);
mail->data.filter_stream =
- i_stream_create_header_filter(mail->data.stream, FALSE, TRUE,
+ i_stream_create_header_filter(mail->data.stream,
+ HEADER_FILTER_INCLUDE |
+ HEADER_FILTER_HIDE_BODY,
headers->name, headers->count,
header_cache_callback, mail);
return mail->data.filter_stream;
More information about the dovecot-cvs
mailing list