procmail
[Top] [All Lists]

RE: Rule for matching mails from my organization

2002-02-20 09:42:32
The way you describe it, it sounds like this rule will catch anything that's
NOT from aeroglide.com. Is this correct? I need to catch everything that IS
from aeroglide.com and deposit it in the users mailbox. If it's NOT from
aeroglide.com, I want my other rules to check it out before it's delivered.

thanks for your help, I just wanted to clarify before I start trying this.

Thanks,

Kevin

        Try this:

:0
{
F=`formail -rtx To:`
        :0
        * $ ! F ?? ()\/aeroglide\.com
        NOT_HERE
}


        () The "formail -rt" catchs the ``return address'' instead of the
           "From", it is short and more accurate.
        () I do not like to use variables with names like "FROM", "TO"
           or "SUBJECT".. but, it is a personal bug.
        () If $F doesn't match "aeroglide\.com" the message will be sent
           to the folder NOT_HERE, the default is what you want.

Bye,
 Udi

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail