procmail
[Top] [All Lists]

Re: capturing the OR that succeeds ???

2004-05-14 06:54:21
Toen wij David W. Tamkin kietelden, kwam er dit uit:

    MATCH # don't load it with eee; there may be no alphabet soup at all

    :0 B D fw h
    * aaa|bbb|ccc|ddd|eee
    * 9876543210^0 ()\/aaa
    * 9876543210^0 ()\/bbb
    * 9876543210^0 ()\/ccc
    * 9876543210^0 ()\/ddd
    * 1^0
    | formail -I "X-Procmail: alphabet soup: ${MATCH-eee}"

    :0 A
    alphabet/soup

This seems to do it too:

     :0 B D fw h
     * aaa|bbb|ccc|ddd|\/eee
     * 1^0
     * 9876543210^0 ()\/aaa
     * 9876543210^0 ()\/bbb
     * 9876543210^0 ()\/ccc
     * 9876543210^0 ()\/ddd
     | formail -I "X-Procmail: alphabet soup: $MATCH"

     :0 A
     alphabet/soup

-- 
Grtz, Ruud


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail