From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72404 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap ports and protocols Date: Fri, 01 Oct 2010 18:25:42 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87mxqyj5iz.fsf@mid.gehheimdienst.de> <87lj6hyky6.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285950376 23053 80.91.229.12 (1 Oct 2010 16:26:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 16:26:16 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20776@lists.math.uh.edu Fri Oct 01 18:26:15 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 1P1iQx-0000sq-US for ding-account@gmane.org; Fri, 01 Oct 2010 18:26:08 +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 1P1iQn-0005bv-G2; Fri, 01 Oct 2010 11:25:57 -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 1P1iQl-0005bj-SV for ding@lists.math.uh.edu; Fri, 01 Oct 2010 11:25:55 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P1iQh-0000Gz-KZ for ding@lists.math.uh.edu; Fri, 01 Oct 2010 11:25:55 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P1iQg-0005CF-00 for ; Fri, 01 Oct 2010 18:25:50 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P1iQg-0000kg-GV for ding@gnus.org; Fri, 01 Oct 2010 18:25:50 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 18:25:50 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 18:25:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 44 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEX7+/z+/v7+//Ty8vII CAn+//f+/vmRkJHi4uNfXl/9/fr///8/QELBwcH///ezjhBiAAABhUlEQVQ4jaWTPUsDMRjHc5tw FC4tdAkOZugiBKVLQVykYyc/QgcXP0AoctDxQBQ7HdIv0Vhsi0EnB4cuTj2HWw4Ep3wGk7skvZc4 +V/y8svzf54ndwHDqkZbLTAchZFSPxr0pQb54m6yBR+IFzJjoQMwLyaMV8UMqMsCa7S5rYKY7s7U uKafVfAYT/KjrbQGWiebqQ99cBr4VUB365iGlO7oTRUk569pmiRRpMuwIE0VSMOkXi5UYsh2uvir wX8CBt2gi3EP7cHMTFdY6sgBxiQjAqMGeCFCKjvWy6UFzxJkIus1QFsIfCkEaYCx3CQyiQv8XAgX IOL73gXaeVUl8KBnT7IoyXoNsKr3YQDHudP1HphLeJMEGycFfHtZGBNzindKgHev7D7rgJnHHWKy D+gCMsccIjeYuQBTEczpJSNY/ZWZHAy5kizV7+MKUQAxR0gewR2FKcAg9MqVwRIISvdSGBdWDAbA uEGorfSHCoCnXh8EOvYQDOMp8OSxBciV77Pl1/svsCPndTIJL6IAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: =?iso-8859-1?Q?Bj=F6rk's?= _Nattura_: "Nattura (Switch Remix)" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:CKYA7ur3PVoojajZ7egjEEGnFzw= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72404 Archived-At: Ted Zlatanov writes: > My example on extending nnimap-stream could handle this (posted earlier > this morning in this thread). Yes, that would work, but I find that variables that have complex syntaxes (and we have enough of them) are something users fiddle with and complain when they break, so if that could be avoided, it would be a plus. > Yet another is to save a "nnimap-stream" token in the netrc file. This is my current idea I had like five minutes ago, so it should be great. :-) To take nnimap-stream as the example: 1) we'd change the default to nil, signalling that we want Gnus to figure it out on its own. If it has a value, then the user has obviously chosen it, which makes the rest of the stuff irrelevant. 2) if it's nil, then we're in DWIM mode. We then call (nnimap-guess-connection-method server). It'd try the stuff we talked about earlier, and return its result. 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? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen