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