procmail
[Top] [All Lists]

Re: Troubles with $MATCH

2003-12-09 12:59:14
As it was written on Dec 9, thus Charles Gregory typed:

Charles:  On Tue, 9 Dec 2003, Birl wrote:
Charles:  > How is it that a previous recipe below, which works, never appends 
an '@'?
Charles:  > :0:
Charles:  > * ^Mailing-List:.*list \/[^(_at_)]+
Charles:  > $MATCH
Charles:
Charles:  Because YOU did not append one to this rule. Your rule explicitly only
Charles:  contains characters that are NOT '@'. The other rule, that broke, had 
the
Charles:  explicit '@whatever' on the end:
Charles:  > * ^Mailing-List:.*list \/[^(_at_)]+@whatever
Charles:
Charles:  It's *everything* after the \/ until the end of line.
Charles:
Charles:  - c



So by your definition, everything except @ should match until EOLN.

So given the following:

Mailing-List: list Arreat_Avengers(_at_)yahoogroups(_dot_)com; contact 
Arreat_Avengers-owner(_at_)yahoogroups(_dot_)com

MATCH would be "Arreat_Avengersyahoogroups.com; contact 
Arreat_Avengers-owneryahoogroups.com"


But of course, MATCH only contains "Arreat_Avengers", not *everything*
until EOLN.  Hence part of my confusion.

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