<<< Date Index >>>     <<< Thread Index >>>

Re: stdin as mbox



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, August 21 at 06:21 PM, quoth malahal@xxxxxxxxxx:
>Is it possible to send stdin as an mbox to mutt?

No... mutt needs to be able to seek to random locations in an mbox, 
which would force it to either keep the entire thing in memory, or to 
create a file to keep it in... at which point, you may as well put it 
in a file yourself and point mutt at it. For example:

     #!/bin/sh
     tmpfile=`mktemp -t foo.XXXXXXXXXXX`
     cat - >$tmpfile
     mutt -f $tmpfile
     rm $tmpfile

~Kyle
- -- 
My definition of marriage:....it resembles a pair of shears, so joined 
that they cannot be separated; often moving in opposite directions, 
yet always punishing anyone who comes between them.
                                                        -- Sydney Smith
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFGy6MGBkIOoMqOI14RArfyAKDlLY6Kv0jKCdnWC7/TuCSeDh9NgwCgsXn/
Il2+sJX7t6xxHBIr8PNZ75A=
=gvVW
-----END PGP SIGNATURE-----