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
mutt -f mailbox,
but the file mailbox may itself be the output of some other program,
e.g. formail.
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 missing a simple trick?
Dirk