procmail
[Top] [All Lists]

Re: $= in action lines

1998-10-03 16:16:23
Bill McClatchie had written,

| > | I know that the following hasn't worked for several people in
| > | the past:
| > |
| > | | formail -I "X-score: $="

so he had to interrupt the recipe flow to assign VAL=$= and use $VAL in
the formail command.

I asked,

| > By "hasn't worked" do you mean that no X-Score: header was added, that the
| > wrong value was substituted for $=, or that $= was left as static text?

Bill answered,

| Been a while, but I was getting $= as the static text.

Sounds as though either you were using an old version of procmail that didn't
grok $= ... but I doubt that, as $= should have come in at the same time as
scoring ... or that you had something from $SHELLMETAS on the line and a
shell was getting invoked, and $= isn't a legal variable in that shell, so
it was left unsubstituted.  Could the recipe have been like this?

 :0 flags:
 * w^x conditions ...
 | formail -I "X-Score: $=" >> some_folder


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