From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80175 Path: news.gmane.org!not-for-mail From: zwz Newsgroups: gmane.emacs.gnus.general Subject: Re: settings for multiple smtp accounts Date: Thu, 06 Oct 2011 14:40:20 +0800 Message-ID: <87k48itygb.fsf@gmail.com> References: <87d3ecdg5n.fsf@gmail.com> <87ehysrbh1.fsf@ucl.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1317882921 9864 80.91.229.12 (6 Oct 2011 06:35:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 06:35:21 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28469@lists.math.uh.edu Thu Oct 06 08:35:17 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 1RBhY3-0002dw-Nl for ding-account@gmane.org; Thu, 06 Oct 2011 08:35:16 +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 1RBhX0-0000QZ-Hd; Thu, 06 Oct 2011 01:34:10 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RBhWy-0000QL-4Z for ding@lists.math.uh.edu; Thu, 06 Oct 2011 01:34:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RBhWu-0006iB-Dm for ding@lists.math.uh.edu; Thu, 06 Oct 2011 01:34:05 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RBhWr-0002MO-Lf for ding@gnus.org; Thu, 06 Oct 2011 08:34:01 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RBhWr-0002Q4-4X for ding@gnus.org; Thu, 06 Oct 2011 08:34:01 +0200 Original-Received: from 60.191.28.52 ([60.191.28.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Oct 2011 08:34:01 +0200 Original-Received: from zhangweize by 60.191.28.52 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Oct 2011 08:34:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 60.191.28.52 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:NB4Q/mdY5icMvQDLqiPnvMJcJGw= X-Spam-Score: -3.3 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80175 Archived-At: Eric S Fraga writes: > 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. But in this way, it still means one has to list the email address literally in the config file, doesn't it?