Re: Hook for changing msmtp account
- To: Nicolas KOWALSKI <niko@xxxxxxxxxxxxxxxxx>
- Subject: Re: Hook for changing msmtp account
- From: Salvatore Iovene <salvatore@xxxxxxxxxx>
- Date: Wed, 27 Feb 2008 22:10:58 +0200
- Cc: mutt-users@xxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:sender; bh=g4h0SXskf3z0GgpDNDYVnJcCM4vrubDOhrlf3pg63NA=; b=s/qdGWSilW2CgcoapFiQfimofu+N3ezAleffH8RKcJgo6U6K26YNclsKN38nFbERG5PxjtlCVzNL+d+vOQ48co7RKCBlz7piAMwwKPiOnKdONtaP1YjQZHAXuo0oVbFj2lztyGsSz8AL5zYscmc8UXAtAUsAjtw0IkncrH2FH0E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:sender; b=TELbJwHYeWEatORlWzy0ZszHZGAvDSHbWtM7HN0hMnTCpD02gI5LRHWDQvwyulM7jO4FlirE1dqKeGSsiL8NKFCyER32SKx3nQCUTMZUtuQWpKghRWOaEdj3pYqD9VJUl5b2P1SPBC8V/rd3UhU7vssJnTHbMkZcVg6cOYbhyak=
- In-reply-to: <87mypmfa3n.fsf@xxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- References: <20080227194505.GB24366@xxxxxxxxxx> <87mypmfa3n.fsf@xxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.13 (2006-08-11)
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