procmail
[Top] [All Lists]

Re: Replacing characters in $MATCH, and folders with periods

2004-04-09 06:20:24
Ruud H.G. van Tol wrote:

Your message is not mailing-list-friendly.
Using 11 KB for just some text.

Sorry about that. I forgot to turn off my digital signature.

Here's my original message:


I have the following recipe:

:0
* ^TO_ \/(_dot_)*(_at_)subdomain\(_dot_)domain\(_dot_)com
* MATCH ?? ()\/[^(_at_)]+
.$MATCH/

Combine that with another filter on my ISP's mail server, and whenever
someone sends email to xxx(_at_)subdomain(_dot_)domain(_dot_)com, it gets 
dumped into
mail folder xxx.

The problem occurs when xxx contains a period.  Then procmail interprets
the period in $MATCH as a folder delimiter.  So if I send email to
amazon(_dot_)com(_at_)subdomain(_dot_)domain(_dot_)com, it creates a folder called 
"amazon",
another folder called "com" underneath "amazon", and puts the email in
"com".

Instead I want it to create a folder called amazon.com and put the email
in there.  How do I do that?

--
Timur Tabi
This email is digitally signed with my public key (S/MIME).
Please use this key to encrypt all email sent to me.

Looking for a low-cost, full-featured web host?
Try DreamHost: http://www.dreamhost.com/rewards.cgi?thetabis

_______________________________________________
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>