Hiya.
On Sat, May 24, 2003 at 05:03:09PM -0500, David W. Tamkin wrote:
I say it's the extra quotes here:
:0 fhw
* FMARGS ?? [-]
| formail "${FMARGS}"
Paul, you have to let formail separate the various -A options from one
another. That additional set of outer quotes around ${FMARGS} is
killing you
I've tried:
:0 fhw
* FMARGS ?? [-]
| formail ${FMARGS}
to no avail. The verbose log then looks like:
procmail: [73063] Sat May 24 18:33:27 2003
procmail: Match on "[-]"
procmail: Executing
"formail,-A"X-List-Post:,spam-l(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM",-A"X-List-Help:,spam-l-request(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM",-A"X-List-Archive:,http://PEACH.EASE.LSOFT.COM/scripts/wa.exe?LIST=SPAM-L",-A"X-List-Subscribe:,mailto:listserv(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM?body=subscribe,spam-l",-A"X-List-Unsubscribe:,mailto:listserv(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM?body=signoff,spam-l""
Usage: formail [-vbczfrktqY] [-D nnn idcache] [-p prefix] [-l folder]
[-xXaAiIuU field] [-R ofield nfield]
Or: formail [+nnn] [-nnn] [-bczfrktedqBY] [-D nnn idcache] [-p prefix]
[-n [nnn]] [-m nnn] [-l folder] [-xXaAiIuU field] [-R ofield nfield]
-s [prg [arg ...]]
procmail: Program failure (64) of "formail"
procmail: Rescue of unfiltered data succeeded
procmail: Assigning "VERBOSE=off"
So it seems it's parsing the various options' internal spaces as option
separators. If that's a problem, I suppose I could get around it by
specifying a separate variable for each option, including the "-a", and
double-quote each of them.
(you don't need those braces either, but they don't hurt).
the more consistently I use it, the less I have to think about it.
(Come to think of it, you don't need the brackets around the hyphen.)
Ya, another habit I got into years ago with grep on a command line. :)
Suggestion: use -a instead of -A. If the list becomes RFC2369-compliant
...
Good point. Thanks. :)
--
Paul Chvostek
<paul(_at_)it(_dot_)ca>
Operations / Abuse / Whatever
it.canada, hosting and development http://www.it.ca/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail