[Dovecot] Strange behavior of header_filter_callback

Timo Sirainen tss at iki.fi
Wed Apr 8 19:42:55 EEST 2009


On Wed, 2009-04-08 at 14:05 +0400, Konstantin Lepa wrote:

You didn't say what the strange behavior was .. But:

	if (hdr && hdr->eoh == TRUE) { *matched = FALSE; }
	else                         { *matched = TRUE;  }

Don't explicitly set matched always. Set it only when you know you want
to change its matching state. So the above code should be only:

if (hdr && hdr->eoh == TRUE) { *matched = FALSE; }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090408/164e501e/attachment.bin 


More information about the dovecot mailing list