Gnus development mailing list
 help / color / mirror / Atom feed
* PATCH: Make nnrss include RSS dc:subject
@ 2005-12-17  4:09 Mark Plaksin
  2005-12-19  5:19 ` Katsumi Yamaoka
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Plaksin @ 2005-12-17  4:09 UTC (permalink / raw)


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

How about this small patch to nnrss which makes it put the RSS dc:subject
in the article?  It is especially useful for del.icio.us RSS feeds--it lets
you see the tags that were assigned to a link.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnrss patch for dc:subject --]
[-- Type: text/x-patch, Size: 902 bytes --]

--- gnus-cvs/lisp/nnrss.el	2005-10-19 11:00:54.000000000 -0400
+++ gnus/lisp/nnrss.el	2005-12-16 22:57:45.000000000 -0500
@@ -533,7 +533,7 @@
 ;;; Snarf functions
 
 (defun nnrss-check-group (group server)
-  (let (file xml subject url extra changed author date
+  (let (file xml subject url extra changed author date feed-subject
 	     enclosure comments rss-ns rdf-ns content-ns dc-ns)
     (if (and nnrss-use-local
 	     (file-exists-p (setq file (expand-file-name
@@ -576,6 +576,8 @@
 	(setq extra (or extra
 			(nnrss-node-text content-ns 'encoded item)
 			(nnrss-node-text rss-ns 'description item)))
+        (if (setq feed-subject (nnrss-node-text dc-ns 'subject item))
+            (setq extra (concat feed-subject "<br /><br />\n" extra)))
 	(setq author (or (nnrss-node-text rss-ns 'author item)
 			 (nnrss-node-text dc-ns 'creator item)
 			 (nnrss-node-text dc-ns 'contributor item)))

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

end of thread, other threads:[~2006-04-13 10:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-17  4:09 PATCH: Make nnrss include RSS dc:subject Mark Plaksin
2005-12-19  5:19 ` Katsumi Yamaoka
2005-12-20  2:17   ` Katsumi Yamaoka
2005-12-20  6:34     ` Katsumi Yamaoka
2005-12-20 15:46       ` Mark Plaksin
2005-12-21  0:45         ` Katsumi Yamaoka
2006-04-13  6:07           ` Lars Magne Ingebrigtsen
2006-04-13  8:59             ` yamaoka
2006-04-13  9:11               ` Lars Magne Ingebrigtsen
2006-04-13  9:42                 ` Katsumi Yamaoka
2006-04-13 10:52                   ` 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).