[dovecot-cvs] dovecot/src/lib-mail istream-header-filter.c, 1.11,
1.12
cras at dovecot.org
cras at dovecot.org
Sun Aug 22 12:13:24 EEST 2004
Update of /home/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv2065
Modified Files:
istream-header-filter.c
Log Message:
Call callback for EOH too.
Index: istream-header-filter.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/istream-header-filter.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- istream-header-filter.c 22 Aug 2004 06:00:16 -0000 1.11
+++ istream-header-filter.c 22 Aug 2004 09:13:22 -0000 1.12
@@ -88,6 +88,13 @@
mstream->cur_line++;
if (hdr->eoh) {
+ if (!mstream->header_read &&
+ mstream->callback != NULL) {
+ matched = TRUE;
+ mstream->callback(hdr, &matched,
+ mstream->context);
+ }
+
if (mstream->crlf)
buffer_append(mstream->hdr_buf, "\r\n", 2);
else
More information about the dovecot-cvs
mailing list