On Tue, 2010-05-11 at 16:41 -0300, Alex Baule wrote:
But i need to get / change some values to create the "link" from header to body.
When a email is saved, have the S an W flags, that is the size of email. There is a way to increase this Flags ? I need to put one more line in the header, to have some link to body.
So you want to add one header and have the S/W increase the number? The problem isn't only the S/W, it's also that Dovecot saves the message size to cache file. The only good way to solve this is to change your input stream to return the header, so that all of Dovecot's internal code sees it and internally adds them to the S/W/cache.
But do you really even need a header for the link? Maybe you could just use IMAP UID number? Like if you have ~/Maildir/.foo/cur/abcd:2, file with UID=200, its body could be in e.g. ~/Maildir/.foo/body/200.