procmail
[Top] [All Lists]

Multiple MATCH

2003-02-19 19:28:48
I'm trying to "tag" messages with some information from the message itself
as with the recipes below.  MATCH works for the first recipe; but not for
the second or third recipe.  ??

                                - fleet -

+++++++++++++++++++++++++++++++++++++++
LOGFILE=$HOME/spamtest/spamtest.log
DEFAULT=$HOME/spamtest/
VERBOSE=on
EOL="
"
PROJECT="X-PROJECT: Project Name$EOL"

:0
* ()\/^From.*$
{
   PROJECT="${PROJECT}X-PROJECT: Msg Originator: $MATCH$EOL"
}

:0
* ()\/^Date:.*$
{
   PROJECT="${PROJECT}X-PROJECT: Msg Date: $MATCH$EOL"
}

:0
* ()\/^Subject:.*$
{
   PROJECT="${PROJECT}X-PROJECT: Msg Subject: $MATCH$EOL"
}

:0 fhw
| formail -A "${PROJECT}"

:0 :
spamtest/spamlast
++++++++++++++++++++++++++++++++++
output looks like:

X-PROJECT: Project Name
X-PROJECT: Msg Originator: From fleet(_at_)teachout(_dot_)org Sun Feb 16 
20:15:21 2003 -0500
X-PROJECT: Msg Date:
X-PROJECT: Msg Subject:



_______________________________________________
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>
  • Multiple MATCH, fleet <=