From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.help Subject: Re: Multiple "outgoing" email accounts. Date: Sat, 08 Feb 2014 00:22:12 -0400 Organization: Aioe.org NNTP Server Message-ID: <87sirumdxn.fsf@moondust.localdomain> References: <87eh3g0yro.fsf@gmail.com> <87bnykm0ja.wl%hskuhra@eumx.net> <87bnyj2946.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391833512 26094 80.91.229.3 (8 Feb 2014 04:25:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 04:25:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 08 05:25:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WBzTi-00008W-Nu for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 05:25:18 +0100 Original-Received: from localhost ([::1]:44872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBzTi-0004CP-AC for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 23:25:18 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: A/aOcvrYi8h0Dz5xhehW6g.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:YFGVJxiVMLUI19bWeo2l79zmrDA= Original-Xref: usenet.stanford.edu gnu.emacs.help:203699 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95969 Archived-At: "William G Gardella" writes: > N.B. that in emacs24, you can also specify which SMTP server to use > for message-mode on a per message basis with an > "X-Message-SMTP-Method:" header, e.g. > > X-Message-SMTP-Method: smtp smtp.foo.org 465 > > This eliminates much of the need for the setting of individual > smtpmail-* variables in these multiple accounts configurations for > message-mode MUAs like mu4e and Gnus. This technique also lets you > switch between use of smtpmail and use of your system's local sendmail > binary: > > X-Message-SMTP-Method: sendmail > > See (info "(message) Mail Variables") for more info. I've been looking at using this header for in my set up for multiple email accounts and I find myself with questions that I haven't found the answers to yet in the documentation: !. Does the header get removed before the mail is sent? 2. Can one omit the port number and leave that to be retrieved from the .authinfo file? 3. Is there a command to insert the X-Message-SMTP-Method header? 4. When entering the value for the X-Message-SMTP-Method header, is there a way to use completion to select from available smtp servers, or from the entries in .authinfo? It would seem like an excessive amount of work, and error prone, to type in something like X-Message-SMTP-Method: smtp smtp.fsf.org 587 other-user every time I want to send an email.