You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mailet-api@james.apache.org by Thibaut <tl...@cvdunet.com> on 2007/11/14 15:16:14 UTC

mailet to save the mail in database

Hi

I would like to save every incoming mails in a database and the attached 
files in the hard drive.

Is there a mailet already done for that ?

If not, what is the best pratices to do that ?

Thank you
T.

Re: mailet to save the mail in database

Posted by Norman Maurer <no...@apache.org>.
Hi,

you can use ToRepository with a dbfile repository. this will save the
mail headers in db and the rest on harddrive. If you really just want to
save the attachment you probally need to code your own mailet.

BTW, contribution are welcome ;-)

bye
Norman

Am Mittwoch, den 14.11.2007, 14:16 +0000 schrieb Thibaut:
> 
> I would like to save every incoming mails in a database and the
> attached 
> files in the hard drive.
> 
> Is there a mailet already done for that ?
> 
> If not, what is the best pratices to do that ?
>