Gnus development mailing list
 help / color / mirror / Atom feed
* [Patch] gnus-article-refer-article
@ 2003-02-07 20:05 Frank Weinberg
  2003-02-07 20:28 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Weinberg @ 2003-02-07 20:05 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

Hi,

when faced with a message-ID of the form <news:$ID>
gnus-article-refer-article fails miserably. The following patch corrects
this.

Suggested ChangeLog entry:

2003-02-07  Frank Weinberg  <frank@usenet-rundfahrt.de>

        * gnus-art.el (gnus-article-refer-article): Strip leading "news:"
          from message-ID

Frank


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gnus-art.el.patch --]
[-- Type: text/x-patch, Size: 480 bytes --]

--- gnus-art.el.orig	Fri Feb  7 20:18:45 2003
+++ gnus-art.el	Fri Feb  7 20:22:35 2003
@@ -4741,7 +4741,7 @@
   (let ((point (point)))
     (search-forward ">" nil t)		;Move point to end of "<....>".
     (if (re-search-backward "\\(<[^<> \t\n]+>\\)" nil t)
-	(let ((message-id (match-string 1)))
+	(let ((message-id (replace-regexp-in-string "<news:" "<" (match-string 1))))
 	  (goto-char point)
 	  (set-buffer gnus-summary-buffer)
 	  (gnus-summary-refer-article message-id))

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

end of thread, other threads:[~2003-02-08 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-07 20:05 [Patch] gnus-article-refer-article Frank Weinberg
2003-02-07 20:28 ` Lars Magne Ingebrigtsen
2003-02-08 14:54   ` Reiner Steib

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