procmail
[Top] [All Lists]

Re: using "\/" in "... ?? ..."

2002-04-23 19:03:58
i sent the original message from un-subscribed address, so this
message may arrive before that one.


in message <20020424013105(_dot_)GA11206(_at_)moo(_dot_)holy(_dot_)cow>,
wrote parv/pair thusly...

i have the following for all practical purposes, and procmail is
skipping the "Listid ?? <\\/..."  condition...

  :0
  #* ^List-ID:.*<\/[a-z]+([-.a-z]+)?\.FreeBSD\.ORG
  * Listid  ??  <\\/[a-z]+([-.a-z]+)?\.FreeBSD\.ORG
  {
    :0
    * MATCH  ??  ^freebsd-\/[a-z]+
    { list = f-${MATCH} }
  }
}

...how can i rewrite the regex to have $MATCH available in the last
usage w/o using the actual, commented out, List-ID: header?
...
apparently procmail takes that as plain string not as part of
extraction
...

i found that the solution was to add "()" before "<"  ...

   * Listid  ??  ()<\/[a-z]+([-.a-z]+)?\.FreeBSD\.ORG

...but why do i need to quote/escape "<" in there? that's just
normal "<", or am i wrong?


  - parv

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