procmail
[Top] [All Lists]

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

2004-04-09 15:41:21
Ok, I finally got it working.  Thanks to everyone for their help.

First off, I had to download four files and put them in my ~/Maildir/inc 
directory:

rep.inc  rep.inc.inc  snr_fast.inc  snr_fast.inc.inc

And here's the recipe I'm using:

:0
* ^TO_ \/(_dot_)*(_at_)subdomain\(_dot_)domain\(_dot_)com
* MATCH ?? ()\/[^(_at_)]+
{
  snr_String  = $MATCH
  snr_Search  = "."
  snr_Replace = "-"
  INCLUDERC = inc/snr_fast.inc
  :0
  .$snr_Return/
}
I think this belongs in some kind of FAQ.


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