[Dovecot] Proprietary mail storage.

Timo Sirainen tss at iki.fi
Wed Aug 31 17:52:42 EEST 2011


On 31.8.2011, at 17.24, Alex Cherniak wrote:

> I have a large existing read-only collection of mails packaged in
> individual zip files as <rfc822 file>+<some additional info>. Is it
> possible (and how difficult) to create a proprietary plugin (like
> gzip) which will open a zip file, extract mail and pass it back to
> Dovecot? Where do I start? If plugin is not the right approach, what
> is?

Is it otherwise a Maildir? If yes, you could base your code on the zlib plugin, or perhaps more easily you could use mail-filter plugin: http://dovecot.org/patches/2.0/mail-filter.tar.gz

With mail-filter you can basically just put the messages through whatever program/script you want which gets the mail as input and outputs the wanted message body. I think the v2.0 mail-filter had some (potential?) bug, v2.1 mail-filter is anyway redesigned and should work perfectly.

> Another question is how will this affect Dovecot performance and how
> to avoid any significant degradation.

I doubt it's going to be a problem.




More information about the dovecot mailing list