Basically, what I want is to find mail with a particular field, grab the
field, remove (or rename it) and then match against the variable value (I
cannot match the header, I removed it...)
Here is the idea:
:0
* ^Delivered-To:(_dot_)*(_at_)foo\(_dot_)com
{
DELIVERED=`formail -xDelivered-To:`
:0 fh
| formail -i "Delivered-To:"
:0
* $DELIVERED matches bar(_at_)foo(_dot_)com
! a
* $DELIVERED matches bloo(_at_)foo(_dot_)com
:0
! b
...
}
So my basic question is: can I have a rule to match a procmail variable
against a regexp.
Thanks in advance,
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Si on avait su que tout ca finirait pour voir Barthez embrasser McDonald's."
Professional: http://www.laas.fr/~felix Jean Luc Godard
Personal: http://www.ingrand.net/felix