Toen wij Tristan Savatier kietelden, kwam er dit uit:
* FOO ?? ^^hugs(_at_)foo\(_dot_)com[^-a-zA-Z0-9(_dot_)]?
ok then maybe ^TO_hugs(_at_)foo\(_dot_)com($|[^-a-zA-Z0-9.]) would work ?
Yes, that is more like what you can find many times in the archives.
Below some procmail-code to test the first address from a To: header.
H_TO = "first(_dot_)person(_at_)domain(_dot_)tld,
2nd(_dot_)person(_at_)example(_dot_)com"
INCLUDERC = "rfc822.rc" # Bart's
:0
*$ H_TO ?? ()\/$addrspec__
{
rfc822_addrspec = $MATCH
:0
*$ rfc822_addrspec ?? ^^\/$localpart__
{ rfc822_localpart = $MATCH }
:0
*$ rfc822_addrspec ?? @$space__\/$domain__
{ rfc822_domain = $MATCH }
}
--
Grtz, Ruud
____________________________________________________________
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