<<< Date Index >>>     <<< Thread Index >>>

Re: Hook for changing msmtp account



On Wed, Feb 27, 2008 at 08:55:08PM +0100, Nicolas KOWALSKI wrote:
> Salvatore Iovene <salvatore@xxxxxxxxxx> writes:
> 
> > I use mutt+msmtp and want to use a different msmtp account according
> > to what my "From:" is.
> >
> > How can I do this?
> 
> In my ~/.muttrc, I have:
> 
> #
> # Mail sending
> #
> set sendmail="/usr/bin/msmtp"
> set use_envelope_from=yes
> set use_from=yes
> 
> 
> In my ~/.msmtprc, I have:
> 
> #
> # main account
> #
> account mainaccount
> host smtp.isp.tld
> from mainaccount@xxxxxxx
> 
> #
> # another
> #
> account anotheraccount
> host smtp.isp2.tld2
> from anotheraccount@xxxxxxxxx
> 
> #
> # specify default
> #
> account default : mainaccount

So you mean that mutts automatically selects the msmtp account by
looking at the From: header?

-- 
|_|0|_| - Salvatore Iovene
|_|_|0| - http://www.iovene.com/
|0|0|0| - http://www.iovene.com/pubkey.asc

Attachment: signature.asc
Description: Digital signature