On Tue, 2006-10-17 at 14:33 -0400, Payal Rathod wrote:
Hi,
Last week I asked this question but didn't get any answer. So taking
the courage to ask again.
I am not able to get this part even after I re-read docs on mailfilterc.
I have a file /etc/whitelist. I want to write a rc file for maildrop
which will look at this file. If the From: addresses belongs to a
domains or is a user from that file, deliver it to /home/payal/Maildir/
else deliver it to /home/payal/Maildir/.spam/
I cannot figure out the MATCH and other parts of docs. Can someone give
an example on the same?
e.g. of /etc/whitelist -
$ cat /etc/whitelist
yahoo.com
fo...@example.com
bar.com
If it is any easier I am willing to put just whole domain names (no
email addresses) in /etc/whitelist
FYI
$EXT@$HOST = complete email address.
So Try something like
`grep -i $EXT@$HOST /etc/whitelist`
if ($RETURNCODE == 0)
{
to /home/payal/Maildir
}
else{
to /home/payal/Maildir/.spam
}
$RETURNCODE is what comes back from grep. If $EXT@$HOST is
in /etc/whitelist, $RETURNCODE will be 0.
Rick
With warm regards,
-Payal