" ")))
(link (nth 2 e))
(enclosure (nth 7 e))
+ (comments (nth 8 e))
(mail-header-separator "")
mime-edit-insert-user-agent-field)
- (when (or text link enclosure)
+ (when (or text link enclosure comments)
(if (eq 'html (nnrss-body-presentation-method))
(progn
(mime-edit-insert-text "html")
(insert "<p><a href=\"" (car enclosure) "\">"
(cadr enclosure) "</a> " (nth 2 enclosure)
" " (nth 3 enclosure) "</p>\n"))
+ (when comments
+ (insert "<p><a href=\"" comments "\">comments</a></p>\n"))
(insert "</body></html>\n"))
(mime-edit-insert-text "plain")
(when text
(when enclosure
(insert (car enclosure) " "
(nth 2 enclosure) " "
- (nth 3 enclosure) "\n")))
+ (nth 3 enclosure) "\n"))
+ (when comments
+ (insert comments "\n")))
(mime-edit-translate-body)))
(when nnrss-content-function
(funcall nnrss-content-function e group article))))
(defun nnrss-check-group (group server)
(let (file xml subject url extra changed author date
- enclosure rss-ns rdf-ns content-ns dc-ns)
+ enclosure comments rss-ns rdf-ns content-ns dc-ns)
(if (and nnrss-use-local
(file-exists-p (setq file (expand-file-name
(nnrss-translate-file-chars
(setq date (or (nnrss-node-text dc-ns 'date item)
(nnrss-node-text rss-ns 'pubDate item)
(message-make-date)))
+ (setq comments (nnrss-node-text rss-ns 'comments item))
(when (setq enclosure (cadr (assq (intern (concat rss-ns "enclosure")) item)))
(let ((url (cdr (assq 'url enclosure)))
(len (cdr (assq 'length enclosure)))
(and author (nnrss-mime-encode-string author))
date
(and extra (nnrss-decode-entities-string extra))
- enclosure)
+ enclosure
+ comments)
nnrss-group-data)
(puthash (or url extra) t nnrss-group-hashtb)
(setq changed t))