;;; sb-bbc.el --- shimbun backend for BBC UK ;; Copyright (C) 2003, 2004, 2005 Koichiro Ohba ;; Author: Koichiro Ohba ;; Keywords: news ;; Created: Jun 18, 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-bbc (shimbun-rss) ()) (defvar shimbun-bbc-url "http://news.bbc.co.uk/rss/newsonline_uk_edition/world/rss091.xml") (defvar shimbun-bbc-groups '("news")) (defvar shimbun-bbc-from-address "newsonline@bbc.co.uk") (defvar shimbun-bbc-content-start "\\(\\)") (defvar shimbun-bbc-content-end "") (luna-define-method shimbun-rss-build-message-id ((shimbun shimbun-bbc) url date) ;;; ;; (shimbun-bbc-build-message-id url)) ;; ;;(defun shimbun-bbc-build-message-id (url) ;;; (if (string-match "/hi/\\(.+\\)\\.stm" url) (let ((elems (nreverse (split-string (match-string 1 url) "/")))) (concat "<" (car elems) "@" (mapconcat 'identity (cdr elems) ".") ".bbc.co.uk>")) (error "Cannot find message-id base"))) (provide 'sb-bbc) ;;; sb-bbc.el ends here