procmail
[Top] [All Lists]

Re: execute a shell script that process the incoming mail

2004-11-30 08:17:41
On 30 Nov 2004 robert guru (sos_linux(_at_)hotmail(_dot_)com) wrote:
The shell script will do some treatement to the incoming mail, the 
incoming mail must be as an  input for that shell script

:0:
* ^Subject: polyjob
| my_shell_script  (the new mail as a parametre)

Obtw, I forgot to mention that you might need the "i" flag
up there along with the "fw" that Nancy pointed out.  If the
length of the message is such that it exceeds the pipe's buffer, you
will have problems otherwise.

  :0 fw i
  * conditions
  | my_shell_script

-- 
dman

____________________________________________________________
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>