3 Apr
2009
3 Apr
'09
8:29 p.m.
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.