Re: send attachment interactively from command line

2008-12-05 Thread bill lam
On Fri, 05 Dec 2008, Marianne Promberger wrote:
> Let's assume you want to attach file "~/tmp/foo.txt"
> 
> At the command line, type:
> 
> mutt -a ~/tmp/foo.txt [ENTER]
 
Thanks, This works very well. Also thanks Micheal for suggesting the
-e command so that I can source different profiles.
  
-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩310 張泌  寄人
別夢依依到謝家  小廊回合曲闌斜  多情只有春庭月  猶為離人照落花


Re: send attachment interactively from command line

2008-12-05 Thread Michael Kjorling
On 5 Dec 2008 16:22 +0800, by [EMAIL PROTECTED] (bill lam):
> I want it to start mutt, auto press "m" to compose a new message, then
> I type in the "To", "subject", and mutt calls editor for me to input

Look into mutt's -e command line switch.

-- 
Michael Kjörling .. [EMAIL PROTECTED] .. http://michael.kjorling.se
* . No bird soars too high if he soars with his own wings . *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x 758F8749 BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *



signature.asc
Description: Digital signature


Re: send attachment interactively from command line

2008-12-05 Thread Marianne Promberger
On Friday, 05 December 2008, 16:22 (UTC+0800), bill lam wrote:

> I want it to start mutt, auto press "m" to compose a new message, then
> I type in the "To", "subject", and mutt calls editor for me to input
> body text. And it adds the file that I included in the command line
> flag to its attachment list. Everything should work inside mutt and it
> will not send the email automatically.  Like the "sendto: email as
> attachment" under m$ window file explorer or nautilus in gnome.
> 

Let's assume you want to attach file "~/tmp/foo.txt"

At the command line, type:

mutt -a ~/tmp/foo.txt [ENTER]

Is that what you want?

m.



Re: send attachment interactively from command line

2008-12-05 Thread bill lam
On Fri, 05 Dec 2008, Kyle Wheeler wrote:
> On Friday, December  5 at 01:35 PM, quoth bill lam:
> > Some other mua such as thunderbird can be invoked from command line to 
> > a send a file as attachment interactively such that it creates a new 
> > email with that file as attachment. Other details such recipient, 
> > subject or body message can be entered before sending.  Is that 
> > possible with mutt?
> 
> What do you mean "interactively"? You want a dialog box? A series of 
> prompts? Or do you just want to be able to pass mutt some flags that 
> specify who to send to?
> 

I want it to start mutt, auto press "m" to compose a new message, then
I type in the "To", "subject", and mutt calls editor for me to input
body text. And it adds the file that I included in the command line
flag to its attachment list. Everything should work inside mutt and it
will not send the email automatically.  Like the "sendto: email as
attachment" under m$ window file explorer or nautilus in gnome.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩179 王維  奉和聖製從蓬萊向興慶閣道中留春雨中春望之作應制
渭水自縈秦塞曲  黃山舊遶漢宮斜  鑾輿迥出千門柳  閣道迴看上苑花
雲裡帝城雙鳳闕  雨中春樹萬人家  為乘陽氣行時令  不是宸遊玩物華


Re: send attachment interactively from command line

2008-12-04 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday, December  5 at 01:35 PM, quoth bill lam:
> Some other mua such as thunderbird can be invoked from command line to 
> a send a file as attachment interactively such that it creates a new 
> email with that file as attachment. Other details such recipient, 
> subject or body message can be entered before sending.  Is that 
> possible with mutt?

What do you mean "interactively"? You want a dialog box? A series of 
prompts? Or do you just want to be able to pass mutt some flags that 
specify who to send to?

~Kyle
- -- 
A man cannot be held responsible for what his mind does while he's 
asleep.
 -- Jean Luc Picard
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkk43v0ACgkQBkIOoMqOI14iOQCgnGkzB/lAQGvmUNa9a2yUIEma
aNYAoK2i5XGtUxXqemPPurw//Y6uV1PM
=8iQg
-END PGP SIGNATURE-


send attachment interactively from command line

2008-12-04 Thread bill lam
Some other mua such as thunderbird can be invoked from command line to
a send a file as attachment interactively such that it creates a new
email with that file as attachment. Other details such recipient,
subject or body message can be entered before sending.  Is that
possible with mutt?

Thank you in advance.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩274 韓翃  寒食
春城無處不飛花  寒食東風御柳斜  日暮漢宮傳蠟燭  輕煙散入五侯家