procmail
[Top] [All Lists]

Re: I'm a lazy sod

2003-04-20 07:29:39
Paul asked,

Is it:

  * 1^1 $ B ?? ${FOO}

or

  * $ 1^1 B ?? ${FOO}

or are they the same?

Both are valid and equivalent. Pick the one you consider prettier or whichever you feel like typing.

Neither seems to work for me.

What happens instead? Maybe there's some problem with the content or previous assignment of the variable. Perhaps occurrences of $FOO overlap when you think they don't, or they don't when you think they do, so you and procmail come up with different counts? Maybe you should be using $\FOO because of magic characters in the value of $FOO?

What about verifying the lack of existence of such variable content:
>
  * !$ B ?? ${FOO}

or

  * $ ! B ?? ${FOO}

Both are valid and equivalent. Pick the one you consider prettier or whichever you feel like typing.

I can't seem to figure out from documentation whether flags or
condition modifiers come first, or whether the order of the condition
modifiers is significant.

The order is insignificant. The meat of the condition -- the size test, the regexp, or the single question mark of an exit code test and the command string that follows it -- must come last; but the "$" modifier, a "var ??" limiter, w^x for scoring, and "!" for negation may appear in any sequence after the introductory asterisk.


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