Re: [SLUG] mutt Reply-To:

2008-05-02 Thread david
On Fri, 2008-05-02 at 14:10 +1000, Matthew Hannigan wrote:
 On Fri, May 02, 2008 at 02:01:25PM +1000, david wrote:
  On Thu, 2008-05-01 at 13:16 +1000, John Clarke wrote:
   On Thu, May 01, 2008 at 01:07:50 +1000, david wrote:
   
I'm using mutt in a script to send out emails. 

$ mutt -s subject -a file [EMAIL PROTECTED]  /dev/null

Is there any way to add a Reply-To: header? I can't find it in google or
   
   This might work:
   
   mutt -s subject -a file -e 'my_hdr Reply-To [EMAIL PROTECTED]'  
   /dev/null
   
  
  Thanks for the replies. This works fine. It also works if you drop the
  quoted -e argument into .muttrc
  
  
  $ mutt -e my_hdr Reply-To: [EMAIL PROTECTED] -s subject line -a 
  file
  [EMAIL PROTECTED]  /dev/null
  
  David.
 
 It's good you got a fix but I thought it must be possible to
 give the entire message like giving it to sendmail - because
 you can 'E' on a draft and see / edit the entire message inclding
 headers.
 
 The man page mentions:
 
-H draft
 Specify a draft file which contains header
 and body to use to send a message.
 
 
 So that should work - if you know how to prepare a complete,
 sensible header and body.


In my case, I was just looking for an email way to send files to clients
from within a script. But you have a point. Next time ;-) 

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] mutt Reply-To:

2008-05-01 Thread david
On Thu, 2008-05-01 at 13:16 +1000, John Clarke wrote:
 On Thu, May 01, 2008 at 01:07:50 +1000, david wrote:
 
  I'm using mutt in a script to send out emails. 
  
  $ mutt -s subject -a file [EMAIL PROTECTED]  /dev/null
  
  Is there any way to add a Reply-To: header? I can't find it in google or
 
 This might work:
 
 mutt -s subject -a file -e 'my_hdr Reply-To [EMAIL PROTECTED]'  
 /dev/null
 

Thanks for the replies. This works fine. It also works if you drop the
quoted -e argument into .muttrc


$ mutt -e my_hdr Reply-To: [EMAIL PROTECTED] -s subject line -a file
[EMAIL PROTECTED]  /dev/null

David.



-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] mutt Reply-To:

2008-05-01 Thread Matthew Hannigan
On Fri, May 02, 2008 at 02:01:25PM +1000, david wrote:
 On Thu, 2008-05-01 at 13:16 +1000, John Clarke wrote:
  On Thu, May 01, 2008 at 01:07:50 +1000, david wrote:
  
   I'm using mutt in a script to send out emails. 
   
   $ mutt -s subject -a file [EMAIL PROTECTED]  /dev/null
   
   Is there any way to add a Reply-To: header? I can't find it in google or
  
  This might work:
  
  mutt -s subject -a file -e 'my_hdr Reply-To [EMAIL PROTECTED]'  
  /dev/null
  
 
 Thanks for the replies. This works fine. It also works if you drop the
 quoted -e argument into .muttrc
 
 
 $ mutt -e my_hdr Reply-To: [EMAIL PROTECTED] -s subject line -a 
 file
 [EMAIL PROTECTED]  /dev/null
 
 David.

It's good you got a fix but I thought it must be possible to
give the entire message like giving it to sendmail - because
you can 'E' on a draft and see / edit the entire message inclding
headers.

The man page mentions:

   -H draft
Specify a draft file which contains header
and body to use to send a message.


So that should work - if you know how to prepare a complete,
sensible header and body.

Matt






-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] mutt Reply-To:

2008-04-30 Thread david
I'm using mutt in a script to send out emails. 

$ mutt -s subject -a file [EMAIL PROTECTED]  /dev/null

Is there any way to add a Reply-To: header? I can't find it in google or
man mutt.

Is there any other scripted way of doing it? Preferably bash.

thanks

David.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] mutt Reply-To:

2008-04-30 Thread John Clarke
On Thu, May 01, 2008 at 01:07:50 +1000, david wrote:

 I'm using mutt in a script to send out emails. 
 
 $ mutt -s subject -a file [EMAIL PROTECTED]  /dev/null
 
 Is there any way to add a Reply-To: header? I can't find it in google or

This might work:

mutt -s subject -a file -e 'my_hdr Reply-To [EMAIL PROTECTED]'  
/dev/null


Cheers,

John
-- 
 Oh yes - it's the old type random commands into vi and see what
 happens problem.
At least it wasn't TECO. Vi beeps too early to do much damage.
-- Tim Connors
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] mutt Reply-To:

2008-04-30 Thread AnĂ­bal Monsalve Salazar
On Thu, May 01, 2008 at 01:16:34PM +1000, John Clarke wrote:
This might work:

mutt -s subject -a file -e 'my_hdr Reply-To [EMAIL PROTECTED]'  
 /dev/null

I prefer:

(echo -e Subject: test\nTo: [EMAIL PROTECTED]: [EMAIL PROTECTED]: [EMAIL 
PROTECTED]: blahblah; cat /etc/hostname) | /usr/lib/sendmail -t


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] mutt Reply-To:

2008-04-30 Thread Robert Thorsby
On 01/05/08 13:07:50, david wrote:
 I'm using mutt in a script to send out emails. 
 
   $ mutt -s subject -a file [EMAIL PROTECTED]  /dev/null
 
 Is there any way to add a Reply-To: header? I can't
 find it in google or man mutt.
 
 Is there any other scripted way of doing it?
 Preferably bash.

I don't use mutt but some MUAs (eg, msmtp, E-MailRelay) treat the first 
paragraph of body text, if the para contains only Headers that are 
properly formatted, as headers.

I frequently use bash to either splice in some headers or expand 
existing headers (eg, to expand [EMAIL PROTECTED] to John Smith 
[EMAIL PROTECTED]) with the two mail clients mentioned above.

Robert Thorsby
MSOOXML - Not the best standard money can buy.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] mutt Reply-To:

2008-04-30 Thread Scott Ragen
[EMAIL PROTECTED] wrote on 01/05/2008 01:07:50 PM:

 I'm using mutt in a script to send out emails. 
 
 $ mutt -s subject -a file [EMAIL PROTECTED]  /dev/null
 
 Is there any way to add a Reply-To: header? I can't find it in google or
 man mutt.
 
 Is there any other scripted way of doing it? Preferably bash.
 

Set REPLYTO environment variable?
Its in the mutt man page.

Cheers,

Scott

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] mutt Reply-To:

2008-04-30 Thread david
On Thu, 2008-05-01 at 13:41 +1000, Scott Ragen wrote:
 [EMAIL PROTECTED] wrote on 01/05/2008 01:07:50 PM:
 
  I'm using mutt in a script to send out emails. 
  
  $ mutt -s subject -a file [EMAIL PROTECTED]  /dev/null
  
  Is there any way to add a Reply-To: header? I can't find it in google or
  man mutt.
  
  Is there any other scripted way of doing it? Preferably bash.
  
 
 Set REPLYTO environment variable?
 Its in the mutt man page.
 

I thought that was for invoking the REPLY-TO: when replying. I need to
create a REPLY-TO: in the original email. Am I wrong?


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html