procmail
[Top] [All Lists]

Re: executing programs

2007-05-29 13:35:05
On Tuesday, 29 May, 2007 at 15:45:22 -0400, Chirag Ravishankar wrote:
 1. Is there anyway to simply execute a program that has nothing to do with
 the mail? For example, after a mail comes in, it is sent to my MAILDIR. Can
 I execute another program that takes that mail as arguments in the
 commandline.

How about using TRAP.  I use it to rename files in maildir folders after
a message has been delivered (see the list archive for details).

The procmailrc manual page gives a (terse) explanation of TRAP.


Cheers,
       Nick.
-- 
Please do not CC me on replies, I read the list and don't need the dupes.


____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>