procmail
[Top] [All Lists]

Re: Trimming from the right

2006-11-24 17:39:12
On 23-Nov-2006, at 03:18, Ruud H.G. van Tol wrote:
Ruud H.G. van Tol schreef:
  :0
  * ^List-Subscribe:(.*)<mailto:\/[-A-Z0-9_+]+
  * MATCH ?? ^^\/.+-

Hmm.. still not got something right, so I added a bunch of logging

:0E
* ^List-Subscribe:.*<mailto:\/[-A-Z0-9_+]+
{
    TEMP1=$MATCH
    LOG="Temp1 is $TEMP1$NL"

    :0
    * TEMP1 ?? ^^\/.+-(on|subscribe|digest)^^
       {
          TEMP2=$MATCH
          LOG="Temp2 is $TEMP2$NL"

          :0
          * TEMP2 ?? ^^\/.+[^-]
          {
             LISTNAME = $MATCH
             LOG="$LISTNAME from List-Subscribe:$NL"
          }
       }
}

and I get this in the log:

Temp1 is MacOSX-TeX-on
Temp2 is MacOSX-TeX-on
MacOSX-TeX-on from List-Subscribe:

so

* TEMP2 ?? ^^\/.+[^-]

isn't doing what I thought it would do

--  
Stomach in! Chest out! on your marks! get set! GO!  Now, now that  
you're free, what are you gonna be?  Who are you gonna see? And  
where, where will you go, and how will you know you didn't get it all  
wro-o-o-o-o-ng?




-- 
sometimes ascii is the best use of bandwidth... Tonya Engst




____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>