From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81195 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Multi-SMTP Date: Thu, 02 Feb 2012 07:56:21 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87y5slpf62.fsf@lifelogs.com> References: <87k44576et.fsf@gnus.org> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328187423 12759 80.91.229.3 (2 Feb 2012 12:57:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 12:57:03 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29476@lists.math.uh.edu Thu Feb 02 13:57:03 2012 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 1RswDc-0002Fd-2d for ding-account@gmane.org; Thu, 02 Feb 2012 13:56:52 +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 1RswDV-0005Hp-IX; Thu, 02 Feb 2012 06:56:45 -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 1RswDU-0005He-1L for ding@lists.math.uh.edu; Thu, 02 Feb 2012 06:56:44 -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 1RswDP-0001Z8-QG for ding@lists.math.uh.edu; Thu, 02 Feb 2012 06:56:43 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RswDO-0008US-Cw for ding@gnus.org; Thu, 02 Feb 2012 13:56:38 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RswDK-00028G-Ot for ding@gnus.org; Thu, 02 Feb 2012 13:56:34 +0100 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 13:56:34 +0100 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 13:56:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 42 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:lhC/XGurWgkZ9i8vfWN5Mg0YTAk= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81195 Archived-At: On Thu, 02 Feb 2012 13:42:50 +0100 Lars Ingebrigtsen wrote: LI> I'm wondering how the multi-SMTP stuff should work. LI> One approach would be to use group parameters, and add tokens like LI> (smtp (smtpmail "smtp.gmail.com" 583)) or something. Use a plist, please. The tokens should be either (smtp (smtpmail :machine "smtp.gmail.com" :port 583 :user "cafe" :password "mocha")) which would then call to auth-source if the user name or password are not provided, or (smtp 'function-or-symbol) ;; eval to get the plist, for easy auth-source integration The latter format would have 'sendmail as a special case. The function call would get enough parameters to determine the right thing to do. LI> Message would then put this info into a header that would be saved, so LI> that saving to drafts/queues etc would work. LI> So that would be LI> X-Message-Outgoing-SMTP: smtpmail smtp.gmail.com 583 LI> If you want sendmail, then that would be LI> X-Message-Outgoing-SMTP: sendmail LI> That would be a pretty flexible mechanism, and allow for easy LI> customisations by users. Works for me, though the first one should be a plist. LI> On the Gnus side, one could then add "intelligent" rules for determining LI> where to send mail, although I'm not sure just how. :-) If the LI> Received line of the message you're answering contains smtp.work.com, LI> then use that as the outgoing MTA for your work email? Hm... Group/topic parameters should be sufficient IMO. Ted