procmail
[Top] [All Lists]

Associating "good guys" with their maildirs in a whitelist

2003-07-07 21:14:05
I've successfully written my first recipe to check against a whitelist for 
legitimate senders. But, when it comes to sorting them into their proper 
folders, I still have to write an individual recipe for each with the 
specific folder named at the delivery action line.

I feel certain that some use of egrep should help me to do this more 
efficiently. I have a whitelist like so:

client(_at_)client(_dot_)com
client2(_at_)client(_dot_)com
friend(_at_)work(_dot_)com
relative(_at_)home-email(_dot_)com

I'd like to change it so that it reads:

client(_at_)client(_dot_)com [tab or comma] Client
client2(_at_)client(_dot_)com [tab or comma] Client
friend(_at_)work(_dot_)com [tab or comma] friend
relative(_at_)home-email(_dot_)com [tab or comma] sis

The destination folder comes after the tab or comma separator, then a recipe 
would put the foldername into a $VARIABLEFOLDERNAME and deliver it to 
$VARIABLEFOLDERNAME 

If anyone's done this, I'd be grateful for a push in the right direction. It's 
going to be a lot quicker to add a new entry to this whitelist than to add 
another recipe for new individuals or groups.

(BTW, has anybody married procmail to PHP/MySQL and written something about 
it?...)

Thanks!


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>