procmail
[Top] [All Lists]

Re: filter

2003-06-15 22:44:20
On Saturday, Jun 14, 2003, at 14:01 Canada/Mountain, Bernard Zając wrote:
It's my first post on that list.

Next time don't post htm-ized rich-textified, tiny-too small to read styled crap. Plain text, thanks.

I would like procmail to cooperate with external file. Whole scenario would be like this:
1: incoming email
2. procmail analize it's subject
3. procmail checks in external file the pattern of the subject,
the desired form would of that file could be:
 subject1:subject_new_1
subject2:subject_new_2
...
4. Procmail forwards the email to two accounts with changed subject according to the external file mentioned above.

Sure.  It would be easiest to do this with TWO files though:

:0f
* $? formail -xSubject: | grep -i -f /path/to/subject/file1
| formail -i "Subject: New Subject"

:0A
! user1(_at_)domain(_dot_)tld

:0f
* $? formail -xSubject: | grep -i -f /path/to/subject/file2
| formail -i "Subject: New Subject"

:0A
! user2(_at_)domain(_dot_)tld

You _will_ have troubles, as this falls into the section of the FAQ "Procmail is not an MTA."

--
Lobotomy means never having to say you're sorry -- or anything else.



_______________________________________________
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>
  • filter, Bernard Zając
    • Re: filter, LuKreme <=