From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69047 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general,gmane.emacs.gnus.user Subject: Re: nnimap and searching articles by message-id Date: Fri, 25 Sep 2009 16:05:38 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ocoyivkt.fsf@lifelogs.com> References: <87ljkbnvr2.fsf@marauder.physik.uni-ulm.de> <192987.27906.qm@web45214.mail.sp1.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253912796 9484 80.91.229.12 (25 Sep 2009 21:06:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2009 21:06:36 +0000 (UTC) Cc: info-gnus-english@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M17464@lists.math.uh.edu Fri Sep 25 23:06:29 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 1MrHzo-0006pI-Cw for ding-account@gmane.org; Fri, 25 Sep 2009 23:06:28 +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 1MrHzc-0000QI-7E; Fri, 25 Sep 2009 16:06:16 -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 1MrHza-0000Py-S1 for ding@lists.math.uh.edu; Fri, 25 Sep 2009 16:06:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MrHzZ-0000tT-5r for ding@lists.math.uh.edu; Fri, 25 Sep 2009 16:06:14 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MrI0B-0007wM-00 for ; Fri, 25 Sep 2009 23:06:51 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MrHzX-0006lM-Hn for ding@gnus.org; Fri, 25 Sep 2009 23:06:11 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Sep 2009 23:06:11 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Sep 2009 23:06:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:muEwUVmscS67w3FXuqjRUWE6uI4= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69047 gmane.emacs.gnus.user:12997 Archived-At: On Mon, 21 Sep 2009 16:25:11 -0700 (PDT) janko hrasko wrote: jh> --- On Sat, 9/19/09, Reiner Steib wrote: >> > It turns out that the IMAP server I am using >> >> Which IMAP server software is it? jh> It is a part of Oracle Beehive collaboration suite. >> >> > requires the message-id be stripped of the enclosing >> angle brackets >> > when searching for messages like so: >> > >> > UID SEARCH HEADER Message-Id "xxxx.yyyy@foobar.com" >> > >> > Not sure who is not compliant here: Gnus/nnimap or the >> IMAP server? >> >> Cc-ing the developer list. Maybe someone there >> knows. jh> It would be good to know. What do people think? A quick scan through the RFC2822 - Internet Message Format reveals the following, but I am not sure if that is enough to convince anyone. jh> Semantically, the angle bracket characters are not part of the jh> msg-id; the msg-id is what is contained between the two angle bracket jh> characters. jh> Thanks for the patch. It didn't work for what I needed (e.g. fetch jh> the parent article) until I applied analogous changes to the other jh> occurrence of search by message-id in nnimap.el: jh> nnimap-request-article-part. Can you and Reiner put together a patch? Should be a simple one. I think stripping off the angle brackets MAY cost some efficiency in other IMAP servers (maybe they hash by the full message ID), but I don't know. The SEARCH reference in RFC 3501 (http://www.ietf.org/rfc/rfc3501.txt) says that search by any field is by contained string, so as far as the standard is concerned stripping off the angle brackets is harmless. I would make it a user option unless we're sure Courier, Dovecot, Exchange, and UW IMAP will work the same way with and without the change. Ted