John Buttery <[EMAIL PROTECTED]> wrote on Sat, 02 Sep 2000:
> In other news, I tried the shell script idea
I think that's the right approach, though it could be done in just Mutt
macros too probably... But in a shell script you can use a temp
filename and check it doesn't exist and all that kind of things.
> but this block of code I
> have isn't working right either:
>
> while read LINE; do
> echo >> $TMPFILE "${LINE}";
> done
Just do this:
cat > $TMPFILE
That'll pipe all of the input into $TMPFILE. No need to implement any
per-line reading, when you don't really need it. :-)
Hope this helps,
Mikko
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
*** WANRING -- this signature quote is spellt wrong. ***