Gnus development mailing list
 help / color / mirror / Atom feed
* Better References: parsing
@ 2001-02-26 16:42 Paul Jarc
  2001-02-26 17:26 ` ShengHuo ZHU
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Jarc @ 2001-02-26 16:42 UTC (permalink / raw)


Some user agents truncate References: when it gets long, and not very
intelligently, so it ends up as, e.g., "... <a@b.c> <d".  A followup
to such an article will have "... <a@b.c> <d <x@y.z>", which breaks
gnus-split-references.  This patch against current CVS helps.

--- gnus-util.el~	Mon Feb 26 11:27:44 2001
+++ gnus-util.el	Mon Feb 26 11:27:27 2001
@@ -382,7 +382,7 @@
   "Return a list of Message-IDs in REFERENCES."
   (let ((beg 0)
 	ids)
-    (while (string-match "<[^>]+>" references beg)
+    (while (string-match "<[^> \t]+>" references beg)
       (push (substring references (match-beginning 0) (setq beg (match-end 0)))
 	    ids))
     (nreverse ids)))

(Are ChangeLog entries desired for such small changes?  If so:
2001-02-26 11:27:27  Paul Jarc  <prj@po.cwru.edu>

	* gnus-util.el (gnus-split-references): Handle malformed References:.
)


paul



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

* Re: Better References: parsing
  2001-02-26 16:42 Better References: parsing Paul Jarc
@ 2001-02-26 17:26 ` ShengHuo ZHU
  0 siblings, 0 replies; 2+ messages in thread
From: ShengHuo ZHU @ 2001-02-26 17:26 UTC (permalink / raw)


prj@po.cwru.edu (Paul Jarc) writes:

> Some user agents truncate References: when it gets long, and not very
> intelligently, so it ends up as, e.g., "... <a@b.c> <d".  A followup
> to such an article will have "... <a@b.c> <d <x@y.z>", which breaks
> gnus-split-references.  This patch against current CVS helps.
> 
> --- gnus-util.el~	Mon Feb 26 11:27:44 2001
> +++ gnus-util.el	Mon Feb 26 11:27:27 2001
> @@ -382,7 +382,7 @@
>    "Return a list of Message-IDs in REFERENCES."
>    (let ((beg 0)
>  	ids)
> -    (while (string-match "<[^>]+>" references beg)
> +    (while (string-match "<[^> \t]+>" references beg)
>        (push (substring references (match-beginning 0) (setq beg (match-end 0)))
>  	    ids))
>      (nreverse ids)))
> 
> (Are ChangeLog entries desired for such small changes?  If so:
> 2001-02-26 11:27:27  Paul Jarc  <prj@po.cwru.edu>
> 
> 	* gnus-util.el (gnus-split-references): Handle malformed References:.
> )

Installed. Thanks.

ShengHuo



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

end of thread, other threads:[~2001-02-26 17:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-26 16:42 Better References: parsing Paul Jarc
2001-02-26 17:26 ` ShengHuo ZHU

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