;;; sb-noir-rss.el --- shimbun backend for noir-rss ;; Modified from sb-cnet-rss.el by Hiroyuki KUROSAKI ;; Below is the original copyright notice of sb-cnet-rss.el. ;; ;; Copyright (C) 2003 NAKAJIMA Mikio ;; Author: NAKAJIMA Mikio ;; Keywords: news ;; Created: Jun 14, 2003 ;; This file is a part of shimbun. ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, you can either send email to this ;; program's maintainer or write to: The Free Software Foundation, ;; Inc.; 59 Temple Place, Suite 330; Boston, MA 02111-1307, USA. ;;; Commentary: ;;; Code: (require 'shimbun) (require 'sb-rss) (luna-define-class shimbun-noir-rss (shimbun-rss) ()) (defvar shimbun-noir-rss-url "http://noir.s7.xrea.com/index.rdf") (defvar shimbun-noir-rss-groups '("blog")) (defvar shimbun-noir-rss-from-address "noir@st.rim.or.jp") (defvar shimbun-noir-rss-content-start "

.*

") (defvar shimbun-noir-rss-content-end "
.*
") (luna-define-method shimbun-index-url ((shimbun shimbun-noir-rss)) shimbun-noir-rss-url) (luna-define-method shimbun-rss-build-message-id ((shimbun shimbun-noir-rss) url date) (unless (string-match "http://noir.s7.xrea.com/archives/\\([0-9]+\\)" url) (error "Cannot find message-id base")) (concat (match-string-no-properties 1 url) "%%rss@noir.s7.xrea.com")) (provide 'sb-noir-rss) ;;; sb-noir-rss.el ends here