On Sun, 2010-02-14 at 13:09 +0200, Valery Gorbunov wrote: > Hi All > > I needs to write plugin which converting messages by replacing entier > message by one of parts of this message. In > another words I need show part of multipart message instead entire message. > Stream substitution in *mail->v.get_stream()* function gives incorrect > results because mail indexed and cached before. > Therefore I should wrap email during indexing too.
Emails must not change, or both Dovecot and IMAP clients get confused. So if you're going to change it permanently, why not just do it on delivery before it even reaches Dovecot? If you want some kind of a temporary change, you need to think of another solution.
signature.asc
Description: This is a digitally signed message part