2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Lookup doesn't Lookup
FromSent OnAttachments
Thorsten HaudeApr 11, 2003 6:35 am 
Mark WeinemApr 13, 2003 1:03 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] Lookup doesn't LookupActions...
From:Thorsten Haude (yoo@vranx.de)
Date:Apr 11, 2003 6:35:46 am
List:net.sourceforge.lists.courier-maildrop

Hi there,

I use Maildrop 1.3.7-2 on Debian Woody. Mails are fed from Postfix 1.1.11-0.woody2 using mailbox_command = maildrop in /etc/postfix/main.cf

Now I am on several mailing lists; mails on these lists are only enveloped to me, I am neither in To: nor in Cc:. For that reason, I made a file containing the mailing list's addresses: - - - Schnipp - - - list01@company\.com list02@company\.com list03@company\.com - - - Schnapp - - -

I try to evaluate this list with this ~/.mailfilter: - - - Schnipp - - - MAILDIR="$HOME/Mail" IN="$MAILDIR/in" BACKUP="$MAILDIR/admin/backup" logfile $MAILDIR/admin/log

cc $BACKUP

receiver="" foreach /^(To|Cc): .*/ { foreach (getaddr $MATCH) =~ /.+/ { receiver="$receiver $MATCH" } }

xfilter "reformail -I'X-Receiver: $receiver'"

if (hasaddr(me@company.com)) { to $MAILDIR/Company/in }

if (lookup(receiver, "/path/to/ml-list")) { to $MAILDIR/Company/in }

to $IN - - - Schnapp - - -

Mails addressed to me (ie. me@company.com in (To|Cc)) are sorted a-ok, lists are not. What's wrong?

tia, Thorsten