procmail
[Top] [All Lists]

$MATCHing on the left

1999-09-03 15:23:10
Hi all,

I should start this off by saying that I've created a solution [in the
recipe below], but I'm not happy with my results. I'll let the recipe
explain:

:0wbDc #case sens. process body only
* ^From: Joe Average <joeave(_at_)foo(_dot_)mer(_dot_)bar>
* ^Subject: Same Text Here Always.*\/[fwsyxzm0-9]+
| gzip -fc > $HOME/backup/$MATCH-results.gz

        :awb:$MATCH-results.lock
        | perl_script_here

The problem is that I originally wanted the part that I'm $MATCHing to be
the first part of the subject. Eg: w2000 Same Text Here Always. I only
want to match the 5 character string to use as the name of the gzip file
and the lockfile. I was unable to stop the $MATCH though [it would match
the entire subject]. <using v3.10pre4 fyi>

Any ideas are greatly appreciated...

/vjl/

-- 
Vince J. LaMonica    // T e a m    // Photographer: aviation, sports,
vjl(_at_)cullasaja(_dot_)com \XX/ A M I G A  // nature, art, travel, documentary

 In the cathedrals of New York and Rome
 there is a feeling that you should just go home
 and spend a lifetime finding out just where that is  [-Jay Clifford]

       This e.mail was composed on Sep 3, 1999 at 3:04pm PDT.

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