Re: stdin as mbox

2007-08-22 Thread Thomas Roessler
The short answer is no.

The longer answer is that you can probably wrap something around
mutt that captures stdin, dumps it into a temporary file, runs mutt,
and then removes that temporary file.
-- 
Thomas Roessler   <[EMAIL PROTECTED]>






On 2007-08-21 18:21:41 -0700, [EMAIL PROTECTED] wrote:
> From: [EMAIL PROTECTED]
> To: mutt-users@mutt.org
> Date: Tue, 21 Aug 2007 18:21:41 -0700
> Subject: stdin as mbox
> X-Spam-Level: 
> X-Bogosity: Ham, tests=bogofilter, spamicity=0.00, version=1.1.5
> 
> Is it possible to send stdin as an mbox to mutt?
> 
> Thanks, Malahal.
> 
> 


Re: stdin as mbox

2007-08-21 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday, August 21 at 06:21 PM, quoth [EMAIL PROTECTED]:
>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.XXX`
 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-


stdin as mbox

2007-08-21 Thread malahal
Is it possible to send stdin as an mbox to mutt?

Thanks, Malahal.