15 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] problem with a rule
FromSent OnAttachments
Thierry BJan 27, 2006 5:22 am 
Thorsten HaudeJan 27, 2006 12:48 pm 
Thierry BJan 29, 2006 3:29 am 
Thorsten HaudeJan 29, 2006 7:11 am 
Thierry BFeb 1, 2006 2:23 am 
Thorsten HaudeFeb 1, 2006 3:19 am 
Thierry BFeb 1, 2006 9:48 am 
Thorsten HaudeFeb 1, 2006 3:50 pm 
moussFeb 1, 2006 4:39 pm 
Thierry BFeb 2, 2006 8:23 am 
Thierry BFeb 2, 2006 8:33 am 
Thorsten HaudeFeb 2, 2006 8:42 am 
Thorsten HaudeFeb 2, 2006 8:54 am 
Thierry BFeb 3, 2006 1:10 am 
Thorsten HaudeFeb 3, 2006 1:58 am 
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:Re: [maildropl] problem with a ruleActions...
From:Thierry B (mail@thierry.eu.org)
Date:Feb 2, 2006 8:33:41 am
List:net.sourceforge.lists.courier-maildrop

mouss a écrit :

Thierry B a écrit :

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@xx.xx are put in a subfolder, but I'd like to make the rule so it matches if the field "to" is xx@xxx.xx or if there is multiples mails in "to" like that: to: yy@yy.yy,xx@xx.xx, he puts that in my subfolder.

Untested:

foreach /^(To|Cc): .*/ { foreach (getaddr($MATCH)) =~ /.+/ { if (tolower($MATCH) == xx@xx.xx) { exception { to "$HOME/$DEFAULT/.Teil/" } } } }

Hello, I tested your rule, but I have an error, so postfix deffered the mail until I remove this rule of maildrop. I don't find where is the error.

- If the address (xx@xx.xx here) contains "special" characters, you'll need to escape them. - The subfolder must exist and be writable by the uid "running" maildrop

You can debug maildrop manually:

# maildrop -V 4 -d thierry@domain.example .... < message.eml (put other arguments in place of "...."., if you use $1, $2, ... in your maildroprc/.mailfilter)

I've that when I try manually: (I've taken the source of a mail that I save to message.eml, I don't know, if it was good")

debian:/home/thierry# maildrop -V 4 -d thie@linux.bouhnik.eu.org < message.eml maildrop: authlib: groupid=1001 maildrop: authlib: userid=1001 maildrop: authlib: logname=thie@linux.bouhnik.eu.org, home=/home/vmail/, mail=linux.bouhnik.eu.org/thierry/Maildir/ maildrop: Changing to /home/vmail/ Message start at 0 bytes, envelope sender=thie@linux.bouhnik.eu.org /etc/maildroprc(2): SENDMAIL="/usr/sbin/sendmail -oi -f thie@linux.bouhnik.eu.org" /etc/maildroprc(3): Opening logfile /var/log/maildrop.log /etc/maildroprc(4): VERBOSE="5" Cannot write to /home/vmail//linux.bouhnik.eu.org/thierry/Maildir//.spamassassin/user_prefs: No such file or directory Failed to create default user preference file /home/vmail//linux.bouhnik.eu.org/thierry/Maildir//.spamassassin/user_prefs WARN: quota string '0' not parseable

Thanks :-)

Bye