From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75198 Path: news.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.gnus.general Subject: carriage-returns and nnimap Date: Fri, 17 Dec 2010 07:58:29 -0500 Message-ID: <87hbech7yi.fsf@andy.bu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292590798 11260 80.91.229.12 (17 Dec 2010 12:59:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Dec 2010 12:59:58 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23553@lists.math.uh.edu Fri Dec 17 13:59:54 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 1PTZua-0001pC-SH for ding-account@gmane.org; Fri, 17 Dec 2010 13:59:53 +0100 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 1PTZtY-0003Sc-AJ; Fri, 17 Dec 2010 06:58:48 -0600 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 1PTZtW-0003SS-Jn for ding@lists.math.uh.edu; Fri, 17 Dec 2010 06:58:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PTZtU-0000xg-UC for ding@lists.math.uh.edu; Fri, 17 Dec 2010 06:58:45 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PTZtT-00026Y-JM for ding@gnus.org; Fri, 17 Dec 2010 13:58:43 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PTZtR-0001JK-F0 for ding@gnus.org; Fri, 17 Dec 2010 13:58:41 +0100 Original-Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Dec 2010 13:58:41 +0100 Original-Received: from cohen by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Dec 2010 13:58:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ODAL2WWpiFEGsC96eHERel6xyrg= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75198 Archived-At: I had noticed that gnus-registry-split-fancy-with-parent had stopped working with "sender" splitting. I finally decided to track this down. Looking at the registry I noticed that the "sender" and "subject" fields (and some others) had a spurious space at the end of them (which is wrong), while an old copy of the registry (from months ago) has no such spaces (which is right). I can't pinpoint exactly when this changed so I'm not sure of the exact cause. Tracing this a bit I found that 'gnus-get-newsgroup-headers translates \r into spaces, so I suspect that this is where the extra spaces are coming from. I added a call to 'nnheader-remove-cr-followed-by-lf in 'gnus-get-newsgroup-headers just before the \r->space translation and it seems to fix the problem. I didn't want to just push this in case I've missed something. The whole carriage-return thing in nnimap confuses me. Regards, Andy diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index ceaa014..dbd25ca 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -6262,6 +6262,7 @@ The resulting hash table is returned, or nil if no Xrefs were found." gnus-newsgroup-ignored-charsets))) (with-current-buffer nntp-server-buffer ;; Translate all TAB characters into SPACE characters. + (nnheader-remove-cr-followed-by-lf) (subst-char-in-region (point-min) (point-max) ?\t ? t) (subst-char-in-region (point-min) (point-max) ?\r ? t) (ietf-drums-unfold-fws)