procmail
[Top] [All Lists]

Re: Filter Incoming User per Domain to Own Folder

2008-01-21 16:08:09
Ruud H.G. van Tol wrote:
James schreef:

  
i wanted to sort out every user in my domain and put their mails in
their own folder in my inbox.

so if they send me a mail their mail will go into a folder labeled
with their name.
    


I assume here that the username is available as the user part of the
address in the From_ (also called the postmark):

   :0D
   * ^^From[ ]\/[^(_at_)]+@example\.com[ ]
   * MATCH ?? ^^\/[^(_at_)]+
   $MATCH/


  
I imagine the recipe in my .procmailrc would be like :

    
0:
      
* ^TO_$USER(_at_)example(_dot_)com
$USER
    

You wrote: "if they send me a mail", so *your* user name will often be
in the To:/Cc: etc.

  
yeah sorry i copied the wrong thing.. ehehe
i meant FROM

but thanks i'll test that out. This should help me greatly

-James
____________________________________________________________
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