From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69061 Path: news.gmane.org!not-for-mail From: Peter Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap and searching articles by message-id Date: Fri, 25 Sep 2009 23:41:06 +0000 (UTC) Message-ID: References: <87ljkbnvr2.fsf@marauder.physik.uni-ulm.de> <192987.27906.qm@web45214.mail.sp1.yahoo.com> <87ocoyivkt.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1254163529 16233 80.91.229.12 (28 Sep 2009 18:45:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Sep 2009 18:45:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17478@lists.math.uh.edu Mon Sep 28 20:45:22 2009 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 1MsLDt-0006mI-V3 for ding-account@gmane.org; Mon, 28 Sep 2009 20:45:22 +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 1MsLDe-0001ri-Cq; Mon, 28 Sep 2009 13:45:06 -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 1MsLDd-0001rR-2X for ding@lists.math.uh.edu; Mon, 28 Sep 2009 13:45:05 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MsLDc-0001Pe-67 for ding@lists.math.uh.edu; Mon, 28 Sep 2009 13:45:04 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MsLEF-0006PR-00 for ; Mon, 28 Sep 2009 20:45:43 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MsLDb-0006fp-4F for ding@gnus.org; Mon, 28 Sep 2009 20:45:03 +0200 Original-Received: from inet-bc01-o.oracle.com ([148.87.1.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Sep 2009 20:45:03 +0200 Original-Received: from jhrasko1 by inet-bc01-o.oracle.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Sep 2009 20:45:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 73 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 148.87.1.167 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 (.NET CLR 3.5.30729)) X-Spam-Score: -0.3 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69061 Archived-At: Here is what I am running with now. It works fine for me, although I am not sure what is the effect of the change in nnimap-retrieve-which-headers that Reiner first proposed. *** /scratch/ppovinec/emacs23/share/emacs/23.0.96/lisp/gnus/nnimap.el.orig Sat Jun 20 21:37:54 2009 --- /scratch/ppovinec/emacs23/share/emacs/23.0.96/lisp/gnus/nnimap.el Fri Sep 25 16:28:31 2009 *************** *** 252,257 **** --- 252,266 ---- :type 'boolean :group 'nnimap) + (defcustom nnimap-search-mid-strip-angles t ;; nil + "Strip angles around Message-ID search. + + Some non-compliant (???) IMAP servers require to strip the angles + around Message-ID when doing an UID SEARCH." + :version "23.2" ;; No Gnus 0.12 + :group 'nnimap + :type '(choice boolean)) + (defvoo nnimap-need-unselect-to-notice-new-mail t "Unselect mailboxes before looking for new mail in them. Some servers seem to need this under some circumstances.") *************** *** 654,660 **** articles))))) (mapcar (lambda (msgid) (imap-search ! (format "HEADER Message-Id \"%s\"" msgid))) articles)))) (defun nnimap-group-overview-filename (group server) --- 663,672 ---- articles))))) (mapcar (lambda (msgid) (imap-search ! (format "HEADER Message-Id \"%s\"" ! (if nnimap-search-mid-strip-angles ! (gnus-replace-in-string msgid "[<>]" "") ! msgid)))) articles)))) (defun nnimap-group-overview-filename (group server) *************** *** 950,956 **** (when (nnimap-possibly-change-group group server) (let ((article (if (stringp article) (car-safe (imap-search ! (format "HEADER Message-Id \"%s\"" article) nnimap-server-buffer)) article))) (when article --- 962,971 ---- (when (nnimap-possibly-change-group group server) (let ((article (if (stringp article) (car-safe (imap-search ! (format "HEADER Message-Id \"%s\"" ! (if nnimap-search-mid-strip-angles ! (gnus-replace-in-string article "[<>]" "") ! article)) nnimap-server-buffer)) article))) (when article