- To: Matthew Hannigan <mlh@xxxxxxxxxx>
- Subject: Re: [SLUG] mutt Reply-To:
- From: david <david@xxxxxxxxxxxxx>
- Date: Fri, 02 May 2008 17:56:13 +1000
- Cc: slug@xxxxxxxxxxx
- Reply-to: david@xxxxxxxxxxxxx
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 user@host < /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 <user@host>' < /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: user@host" -s "subject line" -a file
> > another_user@host < /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 ;-)