From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72420 Path: news.gmane.org!not-for-mail From: Sivaram Neelakantan Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap ports and protocols Date: Fri, 01 Oct 2010 23:48:54 +0530 Message-ID: <8239spojxt.fsf@gmail.com> References: <87mxqyj5iz.fsf@mid.gehheimdienst.de> <87lj6hyky6.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285957179 25148 80.91.229.12 (1 Oct 2010 18:19:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 18:19:39 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20792@lists.math.uh.edu Fri Oct 01 20:19:38 2010 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 1P1kCm-00019d-PF for ding-account@gmane.org; Fri, 01 Oct 2010 20:19:37 +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 1P1kCP-0006aZ-Kf; Fri, 01 Oct 2010 13:19:13 -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 1P1kCN-0006aG-Qg for ding@lists.math.uh.edu; Fri, 01 Oct 2010 13:19:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P1kCM-0006rU-Lb for ding@lists.math.uh.edu; Fri, 01 Oct 2010 13:19:11 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P1kCG-0006ng-00 for ; Fri, 01 Oct 2010 20:19:04 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P1kCG-00011m-FX for ding@gnus.org; Fri, 01 Oct 2010 20:19:04 +0200 Original-Received: from 122.179.43.11 ([122.179.43.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 20:19:04 +0200 Original-Received: from nsivaram.net by 122.179.43.11 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 20:19:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 122.179.43.11 User-Mail-Address: nsivaram.net@gmail.com User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (windows-nt) Cancel-Lock: sha1:Lr4O+eLDP7w6kVvE/T8cfW2mags= X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-903--1684h-0s--0d--H*M:fsf, 0.000-800--1493h-0s--0d--H*u:Emacs, 0.000-789--1472h-0s--0d--H*u:Gnus, 0.000-511--953h-0s--0d--H*r:sk:1AlnuQ-, 0.000-511--953h-0s--0d--HX-Spam-Relays-External:80.91.229.12 Spam tokens: 0.856-110--1280h-22461s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.856-110--1280h-22461s--0d--H*RU:quimby.gnus.org Autolearn status: no 0.0 FREEMAIL_FROM Sender email is freemail (nsivaram.net[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72420 Archived-At: On Fri, Oct 01 2010,Lars Magne Ingebrigtsen Lars Magne Ingebrigtsen wrote: [snipped 23 lines] > 3) this is saved in a new Gnus/Emacs file, called... er... > ~/emacs.d/emacs-memoize, which would have a format like > > (nnimap connection-method ("imaps" ssl)) > > one per line, so that the user can edit it by hand, if necessary. The > meaning here would be DOMAIN (so that many different packages can use > the same mechanism), TOKEN (that has some meaning in that domain), and > the VALUE. > > 4) nnimap would call this with the macro > (gnus-memoize 'nnimap 'connection-method > (nnimap-guess-connection-method server)) > > So it's like a normal memoizer, only it saves stuff to a file, too. > > Does this sound halfway sane? As long as a info message goes into the *Messages* buffer telling the user where it's trying to pick up the last used method/credentials from i.e. the file it read to guess the login method, the approach looks good. There's nothing quite maddening like "smart" choices made mysteriously and you don't know where to root around to fix it. :-) sivaram --