procmail
[Top] [All Lists]

Re: $MATCH being called incorrectly?

2003-04-09 02:28:06
On Wed, Apr 09, 2003 at 12:20:32AM -0700, Vince LaMonica wrote:

:0bDfw
* ^Subject:[   ]*[^    ]+[     ]+super dupper secret text
* ^Subject:[   ]*\/[^  ]+
| cat > $HOME/dump_dir/$MATCH-file.txt \
; $DBACCESS informix1 < $HOME/dump_dir/$MATCH-file.txt \
; $FORMAIL -I"From:vjl(_at_)vjl(_dot_)org" 
-I"To:vjl(_at_)crichton(_dot_)vjl(_dot_)org" \
-I"Subject: your $MATCH test job is done" | $SENDMAIL -oi -t -f \
vjl(_at_)vjl(_dot_)org

Hi, Vince,

I was about to write:

Glad you found your problem.  Regarding matching, you don't need
to pass all headers through the parser twice to read the Subject:
twice.  You can grab on the first pass, then shorten your $MATCH.

        :0 flags
        * ^Subject:[    ]*\/[^  ]+[     ]+note spelling of "super-duper" :-)
        * MATCH ?? ^^\/[^       ]+
        | your action

However, then I remembered that you are still using procmail 3.10,
as you were kind enough to state.  So I don't think that will work.
Tra-la-la, we now return you to your previously working recipe.

-- 
dman

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