On 20 Oct 2003, at 14:56, Shea Gray wrote:
So I want to be able to tag an email based on what recipe it matched
on.
I have a bunch of simple recipies like the one below....
# adult pics and videos.
:0:
* ^Subject:.*((adult).*(pics|videos)).*
/var/mail/prespam
So how do I do something like 'formail -a "Spam-Rule: adult pics"' when
this recipe is matched
I would do something like this:
# adult pics and videos
:0
* ^Subject:.*((adult).*(pics|videos)).*
{
# I like to log stuff like this too
LOG="SPAM RULE: Adult pics"
:0fw
| formail -i "X-Spam-Rule: adult pics"
:0:
/var/mail/prespam
}
--
MEGAHAL: within my penguin lies a torrid story of hate and love.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail