Modify stored mail contents?

James list at xdrv.co.uk
Sun Jul 23 12:04:26 EEST 2017


On 22/07/2017 11:51, Evan Martin wrote:
> Is there a safe way to modify the contents of emails stored by Dovecot?
> I'll probably only want to change the message bodies, not the headers,
> if that matters.

I use javamail[1] for this.  The javamail API can be used to get and put 
emails with IMAP so dovecot is kept in sync with the changes you make 
between fetching and storing.


1. https://javaee.github.io/javamail/



More information about the dovecot mailing list