procmail
[Top] [All Lists]

Braced block and $=

2001-05-17 15:31:30
There might be a bug in the way $= is handled if a receipe executes
a block:

    :0
    * -11^0
    * 4^0 something
    * 4^0 somethingelse
    * 4^0 andanother
    * 4^0 andsomeother
    {
        # do something if total >= 11
    }
    #
    :0
    * 8^0
    * $$=^0
    {
        # do something if total was >= 8
    }

The log indicates that $$=^0 is *_always_* zero. However:

    :0
    * -11^0
    * 4^0 something
    * 4^0 somethingelse
    * 4^0 andanother
    * 4^0 andsomeother
    ! someone(_at_)someplace(_dot_)com # removed the first block
    #
    :0
    * 8^0
    * $$=^0
    {
        # do something if total was >= 8
    }

works as expected.

Can anyone else verify this?

Or, did I do something wrong?

        John

BTW, its:

    procmail v3.13.1 1999/04/05, Copyright (c) 1999, Stephen R. van den Berg

-- 

John Conover        Tel. 408.370.2688  conover(_at_)rahul(_dot_)net
631 Lamont Ct.      Fax. 408.379.9602  http://www.johncon.com/
Campbell, CA 95008  Cel. 408.772.7733  

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