From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83219 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: [nnimap gmail] confused by phenomena Date: Fri, 24 May 2013 00:11:13 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87y5b5mjni.fsf@topper.koldfront.dk> References: <87obc3jn69.fsf@newsguy.com> <87ehcxonp4.fsf@topper.koldfront.dk> <87ehcxv2ue.fsf@newsguy.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1369347164 12020 80.91.229.3 (23 May 2013 22:12:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 May 2013 22:12:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31485@lists.math.uh.edu Fri May 24 00:12:42 2013 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 1UfdkY-0002M2-9V for ding-account@gmane.org; Fri, 24 May 2013 00:12:42 +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 1UfdjT-00022J-Kq; Thu, 23 May 2013 17:11:35 -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 1UfdjR-000222-He for ding@lists.math.uh.edu; Thu, 23 May 2013 17:11:33 -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 1UfdjP-0003Rx-8t for ding@lists.math.uh.edu; Thu, 23 May 2013 17:11:32 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UfdjN-0003Pe-9d for ding@gnus.org; Fri, 24 May 2013 00:11:29 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UfdjL-0001gy-Qw for ding@gnus.org; Fri, 24 May 2013 00:11:27 +0200 Original-Received: from 2505ds5-by.0.fullrate.dk ([89.150.142.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 00:11:27 +0200 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 00:11:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 74 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk OpenPGP: id=21BDE416; url=http://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83219 Archived-At: Harry Putnam writes: > I guess I don't understand your reasoning here. Is it not possible > for gnus to find the correct line by the uid? The what? "uid"?! > Nothing partial involved but an exact match on uid (LOGNAME). "LOGNAME"? Your authinfo looks like this: machine imap.gmail.com login hputnam3@gmail.com password xxxxxxxx port imap machine imap.gmail.com login harrygp3@gmail.com password xxxxxxxx port imap And your select methods are: (add-to-list 'gnus-secondary-select-methods '(nnimap "hputnam3" (nnimap-address "imap.gmail.com"))) (add-to-list 'gnus-secondary-select-methods '(nnimap "harrygp3" (nnimap-address "imap.gmail.com"))) What I am saying is: Imagine you are a machine. How would you, from the select method, find the correct authinfo line? I would have guessed something like matching nnimap-address with machine or perhaps nnimap-address+nnimap-port with machine+port, but I can't imagine anyone implementing "Hey, let's see if the select method name is a partial match of the authinfo login field"¹. If you had named your select methods exactly the same as the authinfo login fields, I could understand your guess (I wouldn't expect it to work, but doing complete match is much more likely than partial). I'm sorry I am sounding much more harsh than I mean to - I really do agree that the documentation of this sucks (i.e. I couldn't find it), but I also think that what you are expecting is... magic. o o o Oh, and I think Eric S Fraga's suggestion is the obvious one to try, i.e. try this: (add-to-list 'gnus-secondary-select-methods '(nnimap "a-nice-name" (nnimap-address "imap.gmail.com"))) (add-to-list 'gnus-secondary-select-methods '(nnimap "the-other" (nnimap-address "imap.gmail.com"))) machine a-nice-name login hputnam3@gmail.com password xxxxxxxx port imap machine the-other login harrygp3@gmail.com password xxxxxxxx port imap Where you can replace "a-nice-name" and "the-other" with whatever you want; I merely choose something different than "hputnam3" and "harrygp3" to make it explicit that they don't have to have anything to do with your email-addresses/the login fields. Actually, I just tried that with two gmail-accounts, and it worked. Best regards, Adam ¹ Ok, maybe stranger things have happened, but still... -- "Hur långt man än har kommit Adam Sjøgren är det alltid längre kvar" asjo@koldfront.dk