procmail
[Top] [All Lists]

Re: Filter Incoming User per Domain to Own Folder

2008-01-22 07:34:05

On 21-Jan-2008, at 10:28, James wrote:
:0:
* ^TO_$USER(_at_)example(_dot_)com
$USER

Erm... TO?

# Get the form address without any extra kruft
:0 h
CLEANFROM=|formail -IReply-To: -rtzxTo:

# get the user portion of user(_at_)example(_dot_)com
:0
* CLEANFROM ?? ^\/[^(_at_)]+
{ FROM_USER=$MATCH }

# Is the from address our domain? If so, save the email to the
# user name
:0
* CLEANFROM ?? example\.com
{
   :0:
   $FROM_USER
}

--  
Hey, baby, I've got just the cure for that penis envy back at my  
apartment...


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail