From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10316 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.user Subject: Re: Automatically authenticating at local imap server Date: Wed, 06 Feb 2008 10:17:33 +0100 Message-ID: <871w7qtpea.fsf@member.fsf.org> References: <87fxw9lr6x.fsf@gaura-nitai.dyndns.org> <87odax2jzi.fsf@member.fsf.org> <874pco7bot.fsf@member.fsf.org> <861w7ruyme.fsf@lifelogs.com> <874pcncbfq.fsf@arcor.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202289481 12536 80.91.229.12 (6 Feb 2008 09:18:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2008 09:18:01 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Feb 06 10:18:23 2008 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JMgQ9-0007Uc-J3 for gegu-info-gnus-english@m.gmane.org; Wed, 06 Feb 2008 10:18:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMgPh-0003vz-3J for gegu-info-gnus-english@m.gmane.org; Wed, 06 Feb 2008 04:17:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMgPf-0003vm-US for info-gnus-english@gnu.org; Wed, 06 Feb 2008 04:17:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMgPf-0003vK-7o for info-gnus-english@gnu.org; Wed, 06 Feb 2008 04:17:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMgPe-0003vD-Lq for info-gnus-english@gnu.org; Wed, 06 Feb 2008 04:17:51 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JMgPe-0001DR-1z for info-gnus-english@gnu.org; Wed, 06 Feb 2008 04:17:50 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JMgPT-0000R7-Q2 for info-gnus-english@gnu.org; Wed, 06 Feb 2008 09:17:39 +0000 Original-Received: from dslb-084-063-057-112.pools.arcor-ip.net ([84.63.57.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2008 09:17:39 +0000 Original-Received: from tassilo by dslb-084-063-057-112.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2008 09:17:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-057-112.pools.arcor-ip.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:r0l5jJsPv0aph2ZMmD6V6IS/pog= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10316 Archived-At: David writes: Hi David, hi Ted, >> You could use the Gnus registry if it's loaded. It will tell you the >> last place a message ID was seen (it learns this by looking at the >> visible messages every time you enter a group, and by hooking into >> spool/move/copy/delete on each backend). > > Yes, I guess the best way would be to first check the registry for the > group and do the additional mairix search only if the registry is not > loaded or does not know the location of the message. I don't want to > rely solely on the registry though, because of the limitations you > describe: Here's a works-for-me draft: --8<---------------cut here---------------start------------->8--- (setq gnus-registry-max-entries 10000 gnus-registry-use-long-group-names t) (gnus-registry-initialize) ;;;; Select an article by message-id with the registry (defun th-gnus-registry-select-article (message-id) (interactive "sMessage-ID: ") (let ((group-buffer (get-buffer gnus-group-buffer)) (group (gnus-registry-fetch-group message-id))) (pop-to-buffer group-buffer) (gnus-group-list-all-groups) (gnus-group-goto-group group t) (gnus-group-select-group 1) (gnus-summary-refer-article message-id))) (defun th-gnus-select-article-in-original-group (header) (interactive (gnus-interactive "H")) (th-gnus-registry-select-article (mail-header-message-id header))) --8<---------------cut here---------------end--------------->8--- I've bound th-gnus-select-article-in-original-group to "M-^" in nnmairix groups to get fast access to it. One annoying thing is that it seems I must use (gnus-group-select-group 1), if I provide 0 or nil, the group won't be selected. So you'll have another message in the group after you press "M-^" in the nnmairix group. Improvements welcome. Bye, Tassilo