On 21 Jul 2005, at 13:54 , robert guru wrote:
I m receiving emails that have a special subject, the subject field
is composed by two elements sperated by the space character.
the first element is the string "DEPART" and the second element is
the department name
(example: "DEPART computer_science"). So i want that procmail
extract the seconde element (department name), because the email
will be processed depending on this information.
# Contains a space and a tab
WS=" "
:0h
* $ ^Subject:$WS*\/[^$WS].*
{
SUBJECT=$MATCH
:0
* $SUBJECT ?? DEPART
{
:0h
* $ ^Subject:$WS+DEPART \/.*
{ DEPART = $MATCH}
}
}
Should work.
--
It was intended that when Newspeak had been adopted once and for all
and Oldspeak forgotten, a heretical thought...should be literally
unthinkable, at least so far as thought is dependent on words.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail