Rem P Roberti wrote Friday, January 30, 2009 19:29:
:0:
* ^TO_.*root
$HOME/Mail/system/
After you figure out why procmail is not being invoked (per
your later message), you will want to change this to:
* ^TO_root(_at_)example(_dot_)com
or
* ^TO_root$
(if your server gets mail from localhost without a domain
tacked on).
The ^TO macro is designed to look for an email address. Putting
".*" before the address defeats the purpose. E.g., with yours
you would also match on words such as these:
12:29am [~/Mail] 757[0]> lk .root | head -20 | fmt
abscessroot aloeroot alroot alumroot amyroot aniseroot appleroot
arrowroot baboonroot babroot balsamroot bathroot beaverroot beetroot
beetrooty belderroot bethroot bigroot birthroot biscuitroot
From the man pages:
If the regular expression contains `^TO_' it will be
substituted by `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope
|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)', which
should catch all destination specifications containing a
specific address.
^^^^^^^^^^^^^^^^^
dman
____________________________________________________________
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