[Dovecot] Implementation of editheaders in dovecot

Timo Sirainen tss at iki.fi
Fri Apr 3 20:29:35 EEST 2009


On Fri, 2009-04-03 at 21:25 +0400, Konstantin Lepa wrote:
> Yeah, but it doesn't work without i_stream_seek(stream, 0) before.
> 
> How can I remove EOH after i_stream_create_header_filter (second  
> '\n')? Is it possible?

You can give i_stream_create_header_filter() a callback function, which
gets called for each header line, and once for the EOH with hdr->eoh ==
TRUE. There you can set *matched = FALSE and it won't add the EOH.

-------------- 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/20090403/a85bbe03/attachment-0001.bin 


More information about the dovecot mailing list