From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82900 Path: news.gmane.org!not-for-mail From: Seb Newsgroups: gmane.emacs.gnus.general Subject: message-sendmail-extra-arguments as a group parameter Date: Fri, 15 Feb 2013 13:58:23 -0600 Organization: University of Manitoba Message-ID: <8738wxqrhc.fsf@kolob.subpolar.dyndns.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360958358 23877 80.91.229.3 (15 Feb 2013 19:59:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 19:59:18 +0000 (UTC) To: ding@lists.math.uh.edu Original-X-From: ding-owner+M31166@lists.math.uh.edu Fri Feb 15 20:59:39 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U6RRa-0008Gy-Ol for ding-account@gmane.org; Fri, 15 Feb 2013 20:59:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1U6RQV-0003So-Sr; Fri, 15 Feb 2013 13:58:31 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1U6RQU-0003Sb-MW for ding@lists.math.uh.edu; Fri, 15 Feb 2013 13:58:30 -0600 Original-Received: from mail-ia0-f171.google.com ([209.85.210.171]) by mx2.math.uh.edu with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) (envelope-from ) id 1U6RQT-00088l-LV for ding@lists.math.uh.edu; Fri, 15 Feb 2013 13:58:30 -0600 Original-Received: by mail-ia0-f171.google.com with SMTP id z13so3663661iaz.30 for ; Fri, 15 Feb 2013 11:58:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:mail-followup-to:date:message-id :user-agent:organization:mime-version:content-type; bh=SyHzupkdRe48mrD1JeTwTFEImqsmw8AmLjkTIRz0kQU=; b=a/0+kBzEgyLnxr108xVtff4c04yvcDUV2eb095hYYsVEG4DaPHMNvfsKz9g7prOmdg pDdeoKU43bwIlxk5rj0eFiEq/DfT1rHc8cG0X+MJy67pdu2YDDobIeJ0GG8+CZdrKIfb /BaCaC2w6XmYPJmZ6OpUGVCwSlmVQp+sWSFmrS8RBoCAC6IjGN1q35zDQlo2LIiNXdVA 4CitJG7r1d/jMiyXbVZIUHw9+UwSOkWYUljDs+E7m5EhqGLz0Iqa0xY7MYeRS8Y1HvZK Po8JdC9c+zt/VAz4XAALWVtEQa19soQWd2o0JR/wYQCpdk+u98rPBawe4YUtCsgKNEk/ 4kLQ== X-Received: by 10.50.36.229 with SMTP id t5mr3472831igj.18.1360958306083; Fri, 15 Feb 2013 11:58:26 -0800 (PST) Original-Received: from smtp.gmail.com (S0106c8d719636840.wp.shawcable.net. [24.77.164.163]) by mx.google.com with ESMTPS id wv1sm5272568igb.0.2013.02.15.11.58.24 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 15 Feb 2013 11:58:25 -0800 (PST) Mail-Followup-To: ding@lists.math.uh.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82900 Archived-At: 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