Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-split-references tweak
@ 2002-02-06 18:55 Paul Jarc
  2002-02-06 20:50 ` Paul Jarc
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Jarc @ 2002-02-06 18:55 UTC (permalink / raw)


I've found Message-IDs generated by Lotus Notes that contain a space
just before the ">".  (Yep, they're malformed.)  Gnus dutifully
preserves them in its References, but then it's unable to recognize
them for threading.  This patch maks them recognizable: everything
from one "<" to the next "<" is included in a reference except
trailing whitespace.  Any objections, or should I commit?  Might this
confuse some parts of Gnus, when references suddenly start containing
internal whitespace?

--- lisp/gnus-util.el   2002/01/27 11:16:57     6.46
+++ lisp/gnus-util.el   2002/02/06 18:59:13
@@ -470,5 +470,5 @@
   (let ((beg 0)
        ids)
-    (while (string-match "<[^> \t]+>" references beg)
+    (while (string-match "<[^<]+[^< \t]" references beg)
       (push (substring references (match-beginning 0) (setq beg (match-end 0)))
            ids))


paul



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

end of thread, other threads:[~2002-02-07 20:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-06 18:55 gnus-split-references tweak Paul Jarc
2002-02-06 20:50 ` Paul Jarc
2002-02-06 20:50   ` Jesper Harder
2002-02-06 21:32     ` Paul Jarc
2002-02-07  1:59       ` Jesper Harder
2002-02-07 16:30         ` Paul Jarc
2002-02-07 20:06         ` Paul Jarc

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).