1 Feb 2006 11:22
Re: problem with a rule
Thierry B <maildrop <at> thierry.eu.org>
2006-02-01 10:22:18 GMT
2006-02-01 10:22:18 GMT
Thorsten Haude a écrit :
> Hi,
>
> * Thierry B wrote (2006-01-27 14:20):
>> I'd like to make a rule so that mail for xx <at> xx.xx are put in a
>> subfolder, but I'd like to make the rule so it matches if the field "to"
>> is xxx <at> xxx.xx or if there is multiples mails in "to" like that: to:
>> yy <at> yy.yy,xx <at> xx.xx, he puts that in my subfolder.
>
> Untested:
>
> foreach /^(To|Cc): .*/
> {
> foreach (getaddr($MATCH)) =~ /.+/
> {
> if (tolower($MATCH) == xx <at> xx.xx)
> {
> exception
> {
> to "$HOME/$DEFAULT/.Teil/"
> }
> }
> }
> }
>
>
> Thorsten
Hello,
I tested your rule, but I have an error, so postfix deffered the mail
(Continue reading)
.
Just postfix logs which tells me that the mail was deferred, so I try to
del that rule, and I flush postfix, and it works.
But nothing in my maildrop.log:
I've that in my maildroprc:
logfile "/var/log/maildrop.log"
VERBOSE = "5"
I have to increase the verbose to have more details about the error? or
do you see where is the problem with that rule?
Thanks
RSS Feed