On Mon, 21 Jul 2008, Nathan Brown wrote:
I have a script that will extract attachments from emails stored in an an
mbox file. (/var/mail/username).
The following recipe is what I use to run that script whenever an email is
sent to the "upload" address:
:0
* ^TO(_dot_)*upload(_at_)example(_dot_)com
/var/mail/upload
{
:0
| /usr/local/bin/upload.sh
}
Why not just skip delivering the mail to the mbox (/var/mail/upload) and
just pipe the body of the e-mail to your script? Then there is nothing to
clean out....
- Charles
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail