[Dovecot] Implementation of editheaders in dovecot

Timo Sirainen tss at iki.fi
Fri Apr 3 19:48:59 EEST 2009


On Fri, 2009-04-03 at 17:37 +0400, Konstantin Lepa wrote:
> I fixed the problem and I created another :-)
> 
> I removed header "Subject" and added "X-DSPAM: test value\n\n". Now,  
> problem is message_get_header_size in create_stream_for_msgbody. It  
> returns 0 :-( I don't know how to extract message body properly. Help  
> me to understand usage of struct message_size.

Header comes first in the input stream, then body. So call
message_get_header_size() first and message_get_body_size() next.

-------------- 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/ce7e31f4/attachment.bin 


More information about the dovecot mailing list