/[suikacvs]/messaging/suikawari/module/TomikouThemeKeijiban.sb
Suika

Contents of /messaging/suikawari/module/TomikouThemeKeijiban.sb

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jun 20 11:33:44 2002 UTC (22 years, 4 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
2002-06-20  wakaba <w@suika.fam.cx>

	* TomikouKeijiban.sb, TomikouHokushinKeijiban.sb,
	TomikouThemeKeijiban.sb: New modules.

1
2 =head1 NAME
3
4 Suikawari::TomikouHokushinKeijiban --- Suikawari module for Tomikou-no-mori
5 Theme Keijiban E<lt>http://tomikou.net/tokushuu/thema/E<gt>
6
7 =cut
8
9 ## This file is written in EUC-japan encoding.
10
11 package Suikawari::TomikouThemeKeijiban;
12 use strict;
13 use vars qw/$VERSION/;
14 $VERSION=do{my @r=(q$Revision: 1.1 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r};
15 use Message::MIME::Charset::Jcode 'jcode.pl';
16
17 sub require () {
18 qw/TomikouKeijiban/;
19 }
20
21 sub msg_regex ($) {
22 <<'EOH',
23 <a name="([0-9]+)-([0-9]+)-([0-9]+)\+([0-9]+):([0-9]+):([0-9]+)"><table border=1 cellspacing=0 cellpadding=2 width=600 bgcolor="#ffffff"><tr><td style="[^"]+"><a href="index.php\?t=([0-9A-Za-z]+)" style="[^"]+"><big>¢£<b>([\x00-\xFF]+?)</a></b></big></td></tr><tr><td style="background:([0-9A-Fa-f#]+);color:([0-9A-Fa-f#]+)"><big>¢£<b>([\x00-\xFF]+?)</b></big></td></tr><tr><td style="[^"]+"><big><a (?:href="mailto:([^"]+)" )?style="[^"]+">¢£<b>([\x00-\xFF]+?)</a></b></big>&nbsp;&nbsp;<small>[0-9]+ǯ[0-9]+·î[0-9]+Æü\(..\) [0-9]+:[0-9]+</small></td></tr><tr><td style="[^"]+">([\x00-\xFF]*?)</td></tr></table></a><br>
24 EOH
25 qw (date_year date_month date_day date_hour date_minute date_second
26 misc_theme_id misc_theme_name
27 misc_subject_background_color misc_subject_color subject from_mail from_name body);
28 }
29
30 ## Inherited
31 #sub meta_regex ($) {
32 #}
33
34 ## Inherited
35 #sub on_load_source ($$) {shift;
36 #}
37
38 sub source ($) {
39 if ($Bunshin::DEBUG) {
40 (file => 'Theme-ban.tmp');
41 } else {
42 (uri => 'http://www.tomikou.net/tokshuu/thema/index.php');
43 }
44 }
45
46 ## Inherited
47 #sub face ($) {
48 #}
49
50
51 sub _my_on_make ($$) {shift;
52 my $b = shift;
53 $b->default_parameter (list_name => '¥Æ¡¼¥Þ·Ç¼¨ÈÄ');
54 $b->default_parameter (list_id => 'theme.tomikou.net');
55 $b->default_parameter (urn_template => 'urn:x-tomikou-net:theme:%x_tomikou_theme_name;:%YYYY;:%MM;:%DD;');
56 $b->set_format (x_tomikou_theme_name => sub {$_[3]->{misc_theme_id}});
57 }
58
59 sub _my_msg_header_add ($$$) {shift;
60 my ($msg, $p) = @_;
61 if ($p->{misc_theme_id}) {
62 my $lid = $msg->header->field ('list-id');
63 $lid->value ( $p->{misc_theme_id} . '.' . $lid->value );
64 $lid->display_name ( $p->{misc_theme_name} ) if $p->{misc_theme_name};
65 }
66 }
67
68 ## Inherited
69 #sub on_make ($$) {
70 #}
71
72 =head1 SEE ALSO
73
74 Suikawari, Bunshin, TomikouKeijiban.sb
75
76 =head1 LICENSE
77
78 Copyright 2002 wakaba E<lt>w@suika.fam.cxE<gt>.
79
80 This program is free software; you can redistribute it and/or modify
81 it under the terms of the GNU General Public License as published by
82 the Free Software Foundation; either version 2 of the License, or
83 (at your option) any later version.
84
85 This program is distributed in the hope that it will be useful,
86 but WITHOUT ANY WARRANTY; without even the implied warranty of
87 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
88 GNU General Public License for more details.
89
90 You should have received a copy of the GNU General Public License
91 along with this program; see the file COPYING. If not, write to
92 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
93 Boston, MA 02111-1307, USA.
94
95 =head1 CHANGE
96
97 See F<ChangeLog>.
98 $Date: 2002/06/16 10:50:15 $
99
100 =cut
101
102 1;
103 ### Suikawari::TomikouKeijiban ends here

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24