7 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] repeat question: cond...
FromSent OnAttachments
Payal RathodOct 17, 2006 11:32 am 
Rick RomeroOct 17, 2006 11:35 am 
Devin RubiaOct 17, 2006 11:48 am 
Payal RathodOct 18, 2006 7:22 am 
Devin RubiaOct 18, 2006 9:28 am 
Payal RathodOct 18, 2006 11:35 am 
Sam VarshavchikOct 18, 2006 2:37 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:Re: [maildropl] repeat question: conditional deliverActions...
From:Rick Romero (ri@havokmon.com)
Date:Oct 17, 2006 11:35:39 am
List:net.sourceforge.lists.courier-maildrop

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