On 14 Nov, Warrick FitzGerald wrote:
| [snip]
|
| :0:
| * ^lists\(_dot_)*(_dot_)wfitzgerald(_at_)MyDomain(_dot_)com
| MailingLists/$1
|
| Can someone please point in in the right direction.
The snip isn't for lack of relevance or necessary context, but because
the long lines can't be legibly quoted. Please consider wrapping lines
around 70 - 72 chars for the benefit of the rest of the list and a more
usable list archive.
I'm not completely sure I understand what you're trying to do, but it
looks like you want something like:
:0:
* lists\.\/(_dot_)*(_dot_)wfitzgerald(_at_)MyDomain(_dot_)com
* MATCH ?? ^^\/[^.]+
MailingLists/$MATCH
Note the ^ you used in ^lists anchors the regular expression to match
at the beginning of a line. You don't want that.
This uses procmail's match operator \/ and $MATCH variable. See the
procmailrc man page for more detail. This will not work perfectly if
there are any dots in the listname, such as procmail.digest. In that
case, the $MATCH variable will contain procmail only and drop .digest.
--
Reply to list please, or append "8" to "procmail" in address if you must.
Spammers' unrelenting address harvesting forces me to this...reluctantly.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail