Re: Loading standard input as mailbox

2001-03-14 Thread Gary Johnson
On Wed, Mar 14, 2001 at 12:25:34PM +0200, Dirk Laurie wrote: > I can write a little script, e.g. > > # /bin/sh > MBOX=$$ > cat > /tmp/$MBOX > mutt -f /tmp/$MBOX > rm /tmp/$MBOX > > but mutt seems to know that it is not being invoked from a terminal > and tries to go into send mode. > > Am I mi

Loading standard input as mailbox

2001-03-14 Thread Dirk Laurie
I can't pipe a startup mailbox to mutt, because cat mailbox | mutt is treated as an instruction to mail what is piped in. Some Unix commands use the filename "-" as an alias for standard input, but cat mailbox | mutt -f - does not work. Of course, this trivial example can be handled by mut