On Thu, 18 Jul 2002, Udi Mottelo wrote:
On Fri, 19 Jul 2002, Brad Forschinger wrote:
I couldn't figure out a way to use \/ and $MATCH to grab
(list-name)-owner@(hostname.dom).
I'm afraid yes... I did not found way to do it with no fork to
the shell (I do not like it).
I think this would work:
# Grab everything up through the @ (in case of hyphens after the @)
:0
* MAILING_LIST_NAME ?? ^^\/.+-(owner|admin)@
{ list_left_side=$MATCH }
# Grab everything up through the last hyphen
:0
* list_left_side ?? ^^\/.+-
{ list_name_part=$MATCH }
# Grab everything except that last hyphen
:0
* list_name_part ?? ^^\/([^-]|-[^-])+
{ list_name=$MATCH }
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail