procmail recipe to filter email to different folder
Hi everyone,
The tittle said it all. Currently my procmail recipe are as below: Code:
FROM_=`formail -c -x"From "| awk '{ print $1 }'` Can someone help me to construct a procmail recipe to filtering incoming mails into different folders if there are multiple "60" seperated by commas in the subjects? (For example,the email with subject 6010,6011,6012,.. the 6010 will go into 6010 folder,6011 will go into 6011 and so on.) I really appreciate it if anybody can help me.Thanks. |
I't s bit of a "greedy match" but can't you just use "*^Subject:.*60.*$"?
|
Quote:
Btw the method that you suggest does not working. Do you have any other suggestion? Maybe there is another way to do this by phrasing the Subject information by using sed or awk before passing it to the procmail? |
All times are GMT -5. The time now is 01:26 PM. |