From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82901 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C5=81ukasz?= Stelmach Newsgroups: gmane.emacs.gnus.general Subject: Re: message-sendmail-extra-arguments as a group parameter Date: Sat, 16 Feb 2013 18:56:41 +0100 Message-ID: <87fw0w87mu.fsf%stlman@poczta.fm> References: <8738wxqrhc.fsf@kolob.subpolar.dyndns.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1361037534 4782 80.91.229.3 (16 Feb 2013 17:58:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2013 17:58:54 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31167@lists.math.uh.edu Sat Feb 16 18:59:13 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 1U6m2a-0002M0-EO for ding-account@gmane.org; Sat, 16 Feb 2013 18:59:12 +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 1U6m15-0000Fi-Ae; Sat, 16 Feb 2013 11:57:39 -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 1U6m13-0000FU-9k for ding@lists.math.uh.edu; Sat, 16 Feb 2013 11:57:37 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1U6m11-0003oT-6F for ding@lists.math.uh.edu; Sat, 16 Feb 2013 11:57:36 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1U6m0z-00025X-6u for ding@gnus.org; Sat, 16 Feb 2013 18:57:33 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U6m1H-0001nc-AX for ding@gnus.org; Sat, 16 Feb 2013 18:57:51 +0100 Original-Received: from p54af4923.dip0.t-ipconnect.de ([84.175.73.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Feb 2013 18:57:51 +0100 Original-Received: from stlman by p54af4923.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Feb 2013 18:57:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54af4923.dip0.t-ipconnect.de User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:9C5hw3RRrUu0/jv1Pt8eeu/Rpj4= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82901 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Seb 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=20now on msmtp will be started with '-f ' will choose the appropriate account. =2D-=20 Mi=C5=82ego dnia, =C5=81ukasz Stelmach --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQF8BAEBCgBmBQJRH8iCXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5MEY5NEM3QTI4NzRFNDc2ODMwNEMxNEYw MEI2OTc2QzYzOTFEMzcxAAoJEAC2l2xjkdNxCP4IAJL5e70FAowdib/8HQ7yGMhL snkagdCudb5cq7YYvfCWzQyaLSqImOnFt6EXRApSjxnCLhUlcXfwtQodC+fMtY3j TGOzlvuCfaCmzviwMi3Am/prpCEvlHXs11CHtNOSrfPzkZpO+N2o91CI1pz/ldPa 9IRCt3J3FkJr/hHCDYSKfoy+kiGnQNOyNgqXly4fANq+HtgMveDSPhtRZIaE1irE W+LhYGN1DyxP5SEpDDd7+tKe0NI3dsST54YalSpqANhsN51u/rFPZTgXJkAwFes8 aQPXC/MNmT1qr1LXXgxQzIrh5yIQ0QiUDbabIHFXc0l2hEBLGi9Xv0VqSdc3qtg= =P/rB -----END PGP SIGNATURE----- --=-=-=--