procmail
[Top] [All Lists]

Re: Newbie problem

2003-02-11 09:29:30
At 16:59 2003-02-11 +0100, Nandita Shenvi did say:

I need to filter the incoming mail i.e all the in coming mails with a ID(ex
11274) in the subject should be fed to a perl script and that is not all, the
perl script should be supplied with this ID.
Any help on this matter , i will be thankful.

:0
* Subject:.*11274
| /path/to/perl_script.pl 11274


Of course, it'd help if you ACTUALLY spelled out the real criteria. Might this ID be enclosed within parens or a bracket, perhaps at the end of the line, or with specific text before it? Would it only be from certain senders?

Perhaps you mean that the ID may be any of a number of different values and you want that specific value passed?

Is the perl script a standalone prog that will process the WHOLE message, or just the headers, or just the body? Or nothing at all? Is it a filter (intended to modify the message, which would then continue to be processed by procmail)? Should procmail care what the return value is from the program? Is it an error condition if the program fails to read the ENTIRE message that is passed to it?

The above filter answers your question _as_asked_. But I suspect it isn't REALLY what you want.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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