From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80170 Path: news.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.gnus.general Subject: Re: settings for multiple smtp accounts Date: Tue, 04 Oct 2011 17:02:50 +0100 Message-ID: <87ehysrbh1.fsf@ucl.ac.uk> References: <87d3ecdg5n.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317749513 12669 80.91.229.12 (4 Oct 2011 17:31:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2011 17:31:53 +0000 (UTC) Cc: gnus mailing list To: zwz Original-X-From: ding-owner+M28464@lists.math.uh.edu Tue Oct 04 19:31:49 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RB8qJ-0001P3-CY for ding-account@gmane.org; Tue, 04 Oct 2011 19:31:47 +0200 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 1RB8or-00073f-4G; Tue, 04 Oct 2011 12:30:17 -0500 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 1RB8on-00073L-VF for ding@lists.math.uh.edu; Tue, 04 Oct 2011 12:30:13 -0500 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 1RB8ol-0007Bv-Rk for ding@lists.math.uh.edu; Tue, 04 Oct 2011 12:30:12 -0500 Original-Received: from vscane-c.ucl.ac.uk ([144.82.108.43]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RB8oh-00072T-CM for ding@gnus.org; Tue, 04 Oct 2011 19:30:07 +0200 Original-Received: from [85.210.131.216] (helo=localhost) by vscane-c.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1RB8oW-0006bt-DW; Tue, 04 Oct 2011 18:29:56 +0100 In-Reply-To: <87d3ecdg5n.fsf@gmail.com> (zwz's message of "Tue, 04 Oct 2011 21:45:24 +0800") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Face: av6A"vZ{AypDB`d^.T35oG%$E*Qh]4F)K=*$-NHz5{7WZfAFQFB]F@gf}l9`XLs9(iD?D/! nafKE,S#G!4W/flj=9(U{]t'lP,,5~:s*~;kKR Mail-Followup-To: zwz , gnus mailing list X-UCL-MailScanner-Information: Please contact the UCL Helpdesk, helpdesk@ucl.ac.uk for more information X-UCL-MailScanner: Found to be clean X-UCL-MailScanner-From: e.fraga@ucl.ac.uk X-Spam-Status: No X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80170 Archived-At: zwz writes: > There has been a good setting for multiple smtp accounts on emacswiki. > However, it has to list the email accounts literally, which is not > convenient for config-sharing with good privacy protection. > > Since all the smtp accounts are listed in .authinfo.gpg, I wonder if it > is possible to set up multiple smtp accounts so that it can infer the > right smtp server and port, from the "from" part of the email and > .authinfo.gpg directly. Indeed it is possible. Look at gnus-posting-styles and set the address field. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 + No Gnus v0.18