Philip Guenther <guenther(_at_)gac(_dot_)edu> wrote:
Philip> An action that looks like
Philip>
Philip> variable=|some command here
Philip>
Philip> is indeed the correct way to do it. The procmailrc(5) manpage mentions
Philip> this in its description of the '|' action. I'm assuming the "$HEAD"
Philip> on a line by itself is a typo, as procmail will just ignore this.
Indeed,
Philip> your logfile should mention so.
I was confused because I found some
HEAD=`$FORMAIL -X "" |sed -e 's/</\</g'`
type recipes in best-of-procmail.....
Does such formart also occasionally work?
Philip> Also, the 'c' flag is not needed on this recipe. If it was, what would
be
Philip> the purpose of a variable capture recipe without it?
I am not much sure about :0 things yet.
How often do I need it?
Do I need to :0 each time I formail as follows?
Or is there better way?
:0h
RSUBJECT=|$FORMAIL -rtxSubject:
:0b
RBODY=|$FORMAIL -I "" | sed 's/^/>/'
:0h
HEAD=|$FORMAIL -X "" |sed -e 's/</\</g'
:0b
BODY=|$FORMAIL -I "" |sed -e 's/</\</g'
_/_/_/ Mitsuru FURUKAWA _/_/_/
_/_/_/ Tokyo, Japan _/_/_/
_/_/_/ mailto:furu(_at_)009(_dot_)com _/_/_/
_/_/_/ http://www.009.com/furu/ _/_/_/