procmail
[Top] [All Lists]

Trouble with "??"

1996-10-29 10:51:24
Hi.

Haven't used "??" before -- not much on it in the man pages, and
I'm not sure if I'm doing something wrong or whether I might have
a version problem here.

The relevant recipe:
    :0 iW
    * ^Subject:.*test-this-thing
    * !^FROM_DAEMON
    * !^From:.*digest
    * !^From .*bitnet
    * !^X-Loop:(_dot_)*stanr(_at_)(_dot_)*tiac(_dot_)net
    {
        VERBOSE=YES
        SUBJ=`formail -rtzxSubject:`
        PW=`gawk '/^[   ]*[Bb][Ee][Gg][Ii][Nn]/{print $2;exit}' -`
        :0 BiW: nscrab.lock
        * PW ?? ^[0-9]
        ntest_found
    
        :0 iW: nscrab.lock
        ntest_not_found
    }

SUBJ is only set for later use after I pass this hurdle.  I am using
named lockfiles for similar reasons.)

My test message contains the line "begin 123456" and PW is
set to "123456" as expected, but the test for "PW starts with a digit"
fails, as shown in the log file:
    procmail: [11498] Tue Oct 29 12:13:27 1996
    procmail: Executing "formail,-rtzxSubject:"
    procmail: [11498] Tue Oct 29 12:13:27 1996
    procmail: Assigning "SUBJ=Re: test-this-thing"
    procmail: Executing "gawk '/^[      ]*[Bb][Ee][Gg][Ii][Nn]/{print $2;exit}' 
-"
    procmail: [11498] Tue Oct 29 12:13:28 1996
->  procmail: Assigning "PW=123456"
->  procmail: No match on "PW ?? ^[0-9]"
    procmail: Locking "nscrab.lock"
    procmail: Assigning "LASTFOLDER=ntest_not_found"
    procmail: Opening "ntest_not_found"
    procmail: Acquiring kernel-lock
    procmail: [11498] Tue Oct 29 12:13:29 1996
    ...

So, what am I doing wrong?

"procmail -v" says it's 3.06pre3, whereas the man pages are for 3.10,
so is it possible "??" didn't work back then?  (I can probably get my
ISP to upgrade if necessary.)

Thanks in advance,
Stan Ryckman (stanr(_at_)tiac(_dot_)net)

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