Gnus development mailing list
 help / color / mirror / Atom feed
From: "Łukasz Stelmach" <stlman@poczta.fm>
To: ding@gnus.org
Subject: Re: message-sendmail-extra-arguments as a group parameter
Date: Sat, 16 Feb 2013 18:56:41 +0100	[thread overview]
Message-ID: <87fw0w87mu.fsf%stlman@poczta.fm> (raw)
In-Reply-To: <8738wxqrhc.fsf@kolob.subpolar.dyndns.org>

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

Seb <spluque@gmail.com> writes:

> I'm using msmtp to send mail through SMTP.  I have two SMTP servers
> defined in ~/.msmtp, and setting the following:
>
>       message-send-mail-function 'message-send-mail-with-sendmail
>       sendmail-program "/usr/bin/msmtp"
>       message-sendmail-extra-arguments '("-a" "gmail")
>
> does send mail through the "gmail" account in ~/.msmtp.  Now I need to
> send mail depending on the group.

I assume you use different sender address too and you set it with
gnus-posting-styles. If this is your case then I can recommend adding
the following to your global configuration

(setq message-sendmail-f-is-evil nil
      message-sendmail-envelope-from 'header)

From now on msmtp will be started with '-f <from-addr>' will choose the
appropriate account.

-- 
Miłego dnia,
Łukasz Stelmach

[-- Attachment #2: Type: application/pgp-signature, Size: 619 bytes --]

      reply	other threads:[~2013-02-16 17:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-15 19:58 Seb
2013-02-16 17:56 ` Łukasz Stelmach [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fw0w87mu.fsf%stlman@poczta.fm \
    --to=stlman@poczta.fm \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).