2 messages in net.sourceforge.lists.courier-maildrop[maildropl] a "TO" predefined variable?
FromSent OnAttachments
Timothy WuMar 19, 2003 8:51 am 
Paul ChambersMar 21, 2003 4:47 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] a "TO" predefined variable?Actions...
From:Timothy Wu (t2@yahoo.com)
Date:Mar 19, 2003 8:51:46 am
List:net.sourceforge.lists.courier-maildrop

Hi there,

I've glanced through the maildrop filter guides on http://www.flounder.net/~mrsam/maildrop/maildropfilter.html

On the section where it says Predefined variables it shows a var like "FROM" which I could make filter rule base on the sender e-mail addresses. I was wondering why a var like "TO" isn't listed so I could filter base on to whom e-mails are sent? Or even a var like "SUBJECT"?

Right now I'm just making filter rule with regex. Such as

if (/^To: (.*)ro@xxx.com/) { to "Maildir/.root/" }

So I could filter mails that sent to specifically root to a particular folder. (The mails under Postfix are redirected to an user account, so I need to single-handed out mails that are sent particularly to root.) I was afraid this pattern matching would make filtering much, much slower since it seems to imply sorting through the entire mail, header and body included, to find the string.

Is that the correct way to do it? Any help or pointers to a reference material would be appreciated. Thanks.

Timothy