Gnus development mailing list
 help / color / mirror / Atom feed
* carriage-returns and nnimap
@ 2010-12-17 12:58 Andrew Cohen
  2010-12-17 14:09 ` Ted Zlatanov
  2010-12-17 16:16 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 8+ messages in thread
From: Andrew Cohen @ 2010-12-17 12:58 UTC (permalink / raw)
  To: ding

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)




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-12-17 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-17 12:58 carriage-returns and nnimap Andrew Cohen
2010-12-17 14:09 ` Ted Zlatanov
2010-12-17 14:18   ` Andrew Cohen
2010-12-17 15:36     ` Ted Zlatanov
2010-12-17 16:17     ` Lars Magne Ingebrigtsen
2010-12-17 16:16 ` Lars Magne Ingebrigtsen
2010-12-17 16:25   ` Andrew Cohen
2010-12-17 16:33     ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).