procmail
[Top] [All Lists]

PLEASE HELP! - Procmail Recipies

1997-05-28 10:46:00
I have a procmail recipe file set up like:

:0:
* ^TO_ian
/var/spool/mail/ianmail

:0:
* ^TO_dennis
/var/spool/mail/denmail

..etc..etc..

This filters mail for different people into different mailboxes. However, i've 
found the TO field contains the text the sender has in their address book, not 
the recievers email address. This is noticable when you subscribe to mailing 
lists that have either lots of names or the name of the list in the TO box and 
procmail can't find a match in the recipe.
I have been looking at the mail headers in the mail box, and i've found that 
all the messages seem to have a field "X-ApparentlyTo:" which contains the 
actual email address (like ian(_at_)chiltons(_dot_)u-net(_dot_)com) not Ian 
Chilton or whatever is in the senders address book.

** Does anyone know how to make a rc file which filters on the recipiants email 
address?

Also.. I am subscribed to the IP Masqurading list. This puts [masq] at the 
start of the subject line. How can i check for this in a recipe, I tried:
:0:
* ^Subject:.[masq]

.. but it does not work...?

I would appreciate any help
Thanks in Advance
ian(_at_)chiltons(_dot_)u-net(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>