Gnus development mailing list
 help / color / mirror / Atom feed
From: Seb <spluque@gmail.com>
To: ding@lists.math.uh.edu
Subject: message-sendmail-extra-arguments as a group parameter
Date: Fri, 15 Feb 2013 13:58:23 -0600	[thread overview]
Message-ID: <8738wxqrhc.fsf@kolob.subpolar.dyndns.org> (raw)

Hi,

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.  According to the manual (Section 2.10
Group Parameters, `(VARIABLE FORM)' part), I've included (yanked from
the customize screen):

Variables:
            Set variables local to the group you are entering. More
INS DEL Variable: message-sendmail-extra-arguments
            Value: '("-a" "bsrc")

in a group where I want to use the "bsrc" account in ~/.msmtp.  This
wasn't sufficient because it only sets the variable in the summary
buffer.  The manual does suggest that in order for this to work in the
message or article buffer, then one would need to add:

(add-to-list 'gnus-newsgroup-variables
	     '(message-sendmail-extra-arguments . '("-a" "gmail")))

But the result is that as soon as I enter the group where I need the
"bsrc" account, then message-sendmail-extra-arguments has global value
'("-a" "bsrc")... Any suggestions?

Thanks,

-- 
Seb



             reply	other threads:[~2013-02-15 19:58 UTC|newest]

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

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=8738wxqrhc.fsf@kolob.subpolar.dyndns.org \
    --to=spluque@gmail.com \
    --cc=ding@lists.math.uh.edu \
    /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).