From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66750 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: multiple Gmail accounts + nnimap + ~/.authinfo Date: Wed, 09 Apr 2008 15:20:16 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86bq4i7pbz.fsf@lifelogs.com> References: <86hceb6ikt.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1207772310 361 80.91.229.12 (9 Apr 2008 20:18:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2008 20:18:30 +0000 (UTC) Cc: Ding Mailing List Original-X-From: ding-owner+M15233@lists.math.uh.edu Wed Apr 09 22:19:03 2008 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.50) id 1Jjgl3-0003Y3-Uh for ding-account@gmane.org; Wed, 09 Apr 2008 22:19:02 +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 1JjgkF-0001FQ-90; Wed, 09 Apr 2008 15:18:11 -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 1JjgkE-0001FF-3f for ding@lists.math.uh.edu; Wed, 09 Apr 2008 15:18:10 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Jjgk6-0002RS-HP for ding@lists.math.uh.edu; Wed, 09 Apr 2008 15:18:09 -0500 Original-Received: from mail.blockstar.com ([170.224.69.95]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JjgkG-0001wB-00 for ; Wed, 09 Apr 2008 22:18:12 +0200 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com (unknown [38.98.147.130]) by mail.blockstar.com (Postfix) with ESMTP id 8A3F43E800E for ; Wed, 9 Apr 2008 13:25:04 -0700 (PDT) X-Hashcash: 1:20:080409:ding@gnus.org::m4jvMkZMJ891TGki:00007xG2 Original-Newsgroups: gnu.emacs.gnus 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" User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:3EFd1Zk4OHzpIXLIn7xvg7yYCaA= In-Reply-To: (Suno Ano's message of "Wed, 09 Apr 2008 20:30:44 +0200") Posted-To: gnu.emacs.gnus X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66750 Archived-At: The following message is a courtesy copy of an article that has been posted to gnu.emacs.gnus as well. On Wed, 09 Apr 2008 20:30:44 +0200 Suno Ano wrote= :=20 >> | On Wed, 09 Apr 2008 12:31:30 -0500, >> | Ted Zlatanov >> | from the organization of =D0=A2=D0=B5=D0=BE=D0=B4=D0=BE=D1=80 =D0=97= =D0=BB=D0=B0=D1=82=D0=B0=D0=BD=D0=BE=D0=B2 @ Cienfuegos >> | who can be reached at: tzz@lifelogs.com >> | (whose comments are cited below with " Ted> "), >> | had this to say in article <86hceb6ikt.fsf@lifelogs.com> >> | in newsgroups gmane.emacs.gnus.user >> | concerning the subject of Re: multiple Gmail accounts + nnimap + ~/.au= thinfo >> | (see for mo= re details) Ted> ...Assuming your method is called "gmail1"? SA> well, it's called "@gmail.com" but then that should not make a SA> difference to calling it just "gmail1" - yes? Right, it was just for the example. Ted> We could also make 'machine' a more complex field, but I don't Ted> like that approach. SA> Why is it you do not like it? It's harder to parse and write. I usually try to keep files like ~/.authinfo free of Gnus-specific extensions because other systems may break when they parse it. Another approach is to have a specific authinfo file for each server. I don't like that approach much. Ted> Any opinions? SA> Well, before I used nnimap I used nnml as back end. With this back end SA> and the following snippet it worked like charm. Maybe we could try it SA> this way for nnimap too? What do others think about it? SA> (add-to-list 'mail-sources `(imap :server ,priv-imap-gmail-mail-serv= er SA> :user ,priv-gmail1-mail-user SA> :password ,priv-imap-gmail1-password SA> :port 993 SA> :stream ssl SA> :authentication login SA> ) SA> ) mail-source.el and nnimap.el get authentication info in very different ways currently. In fact I'm in the process of writing auth-source.el (it's about 50% finished now) which will unite mail-source.el, nnimap.el, SMTP, and all the other Gnus authentication hooks into one sensible structure. You can look at the auth-source.el code to see what I mean. Currently it doesn't support multiple accounts per server, so it's good you brought up that use case. I've added the necessary code to auth-source.el, and will add server support to netrc.el when we agree on how that should look in ~/.authinfo.. Ted