Wed 98-01-14 dattier(_at_)wwa(_dot_)com (David W. Tamkin) list.procmail
| The problem is that the spaces between the colon and the value are getting
| broken apart. But if you quote "$field1" and "$field2" in the formail
| command, then you'll get null parameters when they are empty, and formail
| won't like that either. So let's dig in.
|
| field1
| :0
| * flag1 ?? yes
| { field1 = "-A 'X-header1: value'" }
|
| :0fh
| | formail -A "X-my: required" $field1
David, I can't get this work with 3.11p7 The following simple tests says:
field = "-A 'X-header1: value'"
:0 fh
| formail -rt $field
procmail: Assigning "field=-A 'X-header1: value'"
procmail: Executing "formail,-rt,-A,'X-header1:,value'"
Usage: formail [-bczfrktqY] [-D nnn idcache] [-p prefix] [-l folder]
And If I use "-A 'X-header1:value'", there is no space before colon,
formail succeeds, but the results are not expected.
To: ...
Subject: ...
References: ...
'X-header1:value'
procmail: Assigning "field=-A 'X-header1:value'"
procmail: Executing "formail,-rt,-A,'X-header1:value'"
Did I miss something?
jari