Command line send

2002-04-10 Thread Carl Stehman

Does Mutt have a command line  option to send an e-mail
message directly from the command line like
cat message |mail [EMAIL PROTECTED] does for sendmail on
standard Unix? without any interactive action needed?

Thanks

Carl Stehman





Re: Command line send

2002-04-10 Thread Joel Hammer

Yes. mutt does the same thing. I believe that mutt even has an extra command
line option or two. read:
man mutt
man mail
Joel

 On Tue, Apr 09, 2002 at 09:33:02PM -0400, Carl Stehman wrote:
 Does Mutt have a command line  option to send an e-mail
 message directly from the command line like
 cat message |mail [EMAIL PROTECTED] does for sendmail on
 standard Unix? without any interactive action needed?
 
 Thanks
 
 Carl Stehman
 



Re: Command line send

2002-04-10 Thread David T-G

Carl --

...and then Carl Stehman said...
% 
% Does Mutt have a command line  option to send an e-mail
% message directly from the command line like
% cat message |mail [EMAIL PROTECTED] does for sendmail on
% standard Unix? without any interactive action needed?

You mean like cat message | mutt [EMAIL PROTECTED] or so?  Um, yeah.

You should try it out before asking a list :-)


% 
% Thanks

HTH  HAND


% 
% Carl Stehman
% 


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg26964/pgp0.pgp
Description: PGP signature


Non-interactive command line send

2002-03-14 Thread Simon White

I have seen a few posts about this, but no matter how I try, I am missing
something to make mutt send without prompting me for a password for my IMAP
account, which is set up in my .muttrc file.

I have a script which grabs today's Garfield comic, and /should/ then send it
on to my wife. 

This is what I have:
mutt -x -s Daily\ Garfield -a ga$theimg.jpg [EMAIL PROTECTED] 
($theimg is the date in the format yymmdd, but that's not important)

Obviously the email address is that of my wife and not mine. I don't need
anything in the message body.

TIA

-- 
John Lennon:--v [Simon White. vim/mutt/Linux. [EMAIL PROTECTED] GIMPS: 39.66%] 
Sometimes we sit and read other people's interpretations of our lyrics
and think, 'Hey, that's pretty good.' If we liked it, we would keep our
mouths shut and just accept the credit as if it was what we meant all along.



Re: Non-interactive command line send

2002-03-14 Thread Sven Guckes

* Simon White [EMAIL PROTECTED] [2002-03-14 10:24]:
 I have a script which grabs today's Garfield comic,
 and /should/ then send it on to my wife.
 This is what I have:
 mutt -x -s Daily\ Garfield -a ga$theimg.jpg [EMAIL PROTECTED]

  echo smooches | mutt -s Daily Garfield -a ga$theimg.jpg [EMAIL PROTECTED]

now, if crontab does all this then you probably have to use /dir/mutt.

 I have seen a few posts about this, but no matter how I try,
 I am missing something to make mutt send without prompting me for a
 password for my IMAP account, which is set up in my .muttrc file.

hmm... make mutt use some non-standard setup file then
by applying the option -F file:

  echo smooches | mutt -F /dev/null ..

anyway, I find a page like this much mor effective:
  http://www-ttp.physik.uni-karlsruhe.de/cartoons/
(funnies in english and german)  enjoy! :-)

 Mail-Followup-To: Simon White [EMAIL PROTECTED],
 Mutt User List [EMAIL PROTECTED]

this is a closed list, isn't it?

Sven



Re: Non-interactive command line send

2002-03-14 Thread Simon White

14-Mar-02 at 12:39, Sven Guckes ([EMAIL PROTECTED]) wrote / schreibt :
 now, if crontab does all this then you probably have to use /dir/mutt.

You telepathic fiend you. (idiomatic word order, for your English notes Sven)

 hmm... make mutt use some non-standard setup file then
 by applying the option -F file:
 
   echo smooches | mutt -F /dev/null ..

Works a charm. Kudos to Markus as well, who sent this to me off list.

 anyway, I find a page like this much mor effective:
   http://www-ttp.physik.uni-karlsruhe.de/cartoons/
 (funnies in english and german)  enjoy! :-)

Cool page, however the beauty of email is offline consultation, which is why
my Garfield goes to my wife by email. She costs me enough on 'phone bills as
it is without reading all those good cartoons over my poor dialup line which
costs me at least $50 a month and I rarely do anything but local calls. But
then, that's Morocco. /Really/ puts bitching about $40 a month DSL into
perspective.

  Mail-Followup-To: Simon White [EMAIL PROTECTED],
  Mutt User List [EMAIL PROTECTED]
 
 this is a closed list, isn't it?

Don't follow... what am I doing wrong?

-- 
John Lennon:--v [Simon White. vim/mutt/Linux. [EMAIL PROTECTED] GIMPS: 39.82%] 
Sometimes we sit and read other people's interpretations of our lyrics
and think, 'Hey, that's pretty good.' If we liked it, we would keep our
mouths shut and just accept the credit as if it was what we meant all along.



Re: Non-interactive command line send

2002-03-14 Thread Ralf Hildebrandt

Am 14.03.2002 um 12:51:27 + schrieb Simon White folgendes:
 14-Mar-02 at 12:39, Sven Guckes ([EMAIL PROTECTED]) wrote / schreibt :
  now, if crontab does all this then you probably have to use /dir/mutt.
 
 You telepathic fiend you. (idiomatic word order, for your English notes Sven)

We have this in German as well. But we use a comma:
You telepathic fiend, you.

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   [EMAIL PROTECTED]
Charite Campus Virchow-Klinikum Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze - Fax.  +49 (0)30-450 570-916
Why you can't find your system administrators:
Hiding on the roof 
--Simon Burr [EMAIL PROTECTED]




Re: Non-interactive command line send

2002-03-14 Thread David T-G

Simon  Ralf --

...and then Ralf Hildebrandt said...
% 
% Am 14.03.2002 um 12:51:27 + schrieb Simon White folgendes:
%  
%  You telepathic fiend you. (idiomatic word order, for your English notes Sven)
% 
% We have this in German as well. But we use a comma:
% You telepathic fiend, you.

Same here in the US.


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




Re: Non-interactive command line send

2002-03-14 Thread Simon White

David, Ralph... 
 % We have this in German as well. But we use a comma:
 % You telepathic fiend, you.
 
 Same here in the US.

*Blush* so I should have used a comma too. My mistake. My English is
usually so good, too *sarcastic grin*.

-- 
John Lennon:--v [Simon White. vim/mutt/Linux. [EMAIL PROTECTED] GIMPS: 39.85%] 
Sometimes we sit and read other people's interpretations of our lyrics
and think, 'Hey, that's pretty good.' If we liked it, we would keep our
mouths shut and just accept the credit as if it was what we meant all along.



Re: Non-interactive command line send

2002-03-14 Thread Jeremy Blosser

On Mar 14, Sven Guckes [[EMAIL PROTECTED]] wrote:
 * Simon White [EMAIL PROTECTED] [2002-03-14 10:24]:
  I have a script which grabs today's Garfield comic,
  and /should/ then send it on to my wife.
  This is what I have:
  mutt -x -s Daily\ Garfield -a ga$theimg.jpg [EMAIL PROTECTED]
 
   echo smooches | mutt -s Daily Garfield -a ga$theimg.jpg [EMAIL PROTECTED]

FWIW you can also just redirect stdin from something like /dev/null if you
want a completely empty body.  Pretty standard *nix stuff.

mutt -s foo [EMAIL PROTECTED] -a img.jpg /dev/null



msg25542/pgp0.pgp
Description: PGP signature