On Sat, May 24, 2003 at 05:51:20PM -0500, David W. Tamkin wrote:
So it seems it's parsing the various options' internal spaces as option
separators.
So it does. Maybe if you used <backslash><space> when you set them the
way you used <backslash><quote>, they'd survive. But right now it seems
you can't get the internal spaces to stay hard without hardening the
spaces between options.
Almost there. It's funny, actually. Recipe actions and log entry:
{ FMARGS = "${FMARGS} -a\"List-Post:\ ${POST}\"" }
...
| formail ${FMARGS}
procmail: Executing
"formail,-a"List-Post:\,spam-l(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM",-a"List-Help:\,spam-l-request(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM",-a"List-Archive:\,http://PEACH.EASE.LSOFT.COM/scripts/wa.exe?LIST=SPAM-L",-a"List-Subscribe:\,mailto:listserv(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM?body=subscribe\,spam-l",-a"List-Unsubscribe:\,mailto:listserv(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM?body=signoff\,spam-l""
The backslash doesn't escape the space. May even qualify as a bug. At
the very least, it's a "factor".
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.
I had been thinking of suggesting that.
That *should* work, but...
:0
* POST ?? .+
{ FMPOST = "-a\"List-Post: ${POST}\"" }
:0
* HELP ?? .+
{ FMHELP = "-a\"List-Help: ${HELP}\"" }
...
LOG="FMARGS = '${FMID}' '${FMPOST}' '${FMHELP}' '${FMARCHIVE}'
'${FMSUBSCRIBE}' '${FMUNSUBSCRIBE}'$NL"
VERBOSE=on
:0 fhw
| formail "${FMID}" "${FMPOST}" "${FMHELP}" "${FMARCHIVE}" "${FMSUBSCRIBE}"
"${FMUNSUBSCRIBE}"
VERBOSE=off
merely begets:
FMARGS = '' '-a"List-Post: spam-l(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM"'
'-a"List-Help: spam-l-request(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM"'
'-a"List-Archive: http://PEACH.EASE.LSOFT.COM/scripts/wa.exe?LIST=SPAM-L"'
'-a"List-Subscribe:
mailto:listserv(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM?body=subscribe
spam-l"' '-a"List-Unsubscribe:
mailto:listserv(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM?body=signoff
spam-l"'
procmail: [29143] Sat May 24 21:51:06 2003
procmail: Executing "formail,,-a"List-Post:
spam-l(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM",-a"List-Help:
spam-l-request(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM",-a"List-Archive:
http://PEACH.EASE.LSOFT.COM/scripts/wa.exe?LIST=SPAM-L",-a"List-Subscribe:
mailto:listserv(_at_)PEACH(_dot_)EASE(_dot_)LSOFT(_dot_)COM?body=subscribe
spam-l",-a"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 ... while the "Executing" line looks a little better, there's still
no joy. I remain confused....
--
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