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