[Mimedefang] Writing to an MBOX file

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Tue Mar 21 08:17:07 EST 2006

On Tue, 21 Mar 2006, Jasmeet Bawa wrote:

> I need to (based on sender address) copy mails coming into sendmail to a
> certain file (in mbox) format and then continue with the email as normal

during filter_begin() or filter_end(), you'll have a local file 
'./ENTIRE_MESSAGE' holding the entire message. Append a newline, a "From 
$Sender\n" and the content of that file to your mbox file. However, read 
about mbox locking, if you want to read that mailbox, simultaneously.

> Where can I go to find out the syntax/commands required
> 1) to write qualifying emails to a local file?

man perl
man perlre
The Camel book from O'Reilly
man mimedefang-filter


Steffen Kaiser

More information about the MIMEDefang mailing list