summaryrefslogtreecommitdiff
path: root/fml
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-04-03 03:33:59 +0000
committerfukachan <fukachan>2001-04-03 03:33:59 +0000
commitc227279c620c7b6f481e34b2b3cdfeadec17401d (patch)
treebc43310d44ddd104b9a3f6f537b7a426409903be /fml
parent2326bd89dda48bc97ebba2332c58bfc7319a9e8b (diff)
downloadfml8-c227279c620c7b6f481e34b2b3cdfeadec17401d.tar.gz
fml8-c227279c620c7b6f481e34b2b3cdfeadec17401d.tar.bz2
fml8-c227279c620c7b6f481e34b2b3cdfeadec17401d.zip
implemente $header_check_rules basic idea which contains
verify_message_id_uniqueness, verify_x_ml_info_uniqueness, verify_list_post_uniqueness. define the database directory for them in etc/defaults/header.cf.
Diffstat (limited to 'fml')
-rw-r--r--fml/etc/default_config.cf.ja14
-rw-r--r--fml/etc/defaults/directory.cf.ja8
-rw-r--r--fml/etc/defaults/header.cf.ja6
-rw-r--r--fml/etc/defaults/variablelist.ja.html6
-rw-r--r--fml/lib/FML/Header.pm24
5 files changed, 57 insertions, 1 deletions
diff --git a/fml/etc/default_config.cf.ja b/fml/etc/default_config.cf.ja
index 3336acc1..c72006a7 100644
--- a/fml/etc/default_config.cf.ja
+++ b/fml/etc/default_config.cf.ja
@@ -52,6 +52,14 @@ var_dir = $ml_home_dir/var
# Examples: /var/spool/ml/elena/tmp
tmp_dir = $ml_home_dir/tmp
+
+# Descriptions: 各種データファイルを置くディレクトリ
+# History: $VARDB_DIR
+# Value: directory
+# Examples: /var/spool/ml/elena/var/db
+db_dir = $var_dir/db
+
+
=head1 アクセス制御ルール
# Descriptions: 投稿への制限
@@ -180,6 +188,12 @@ header_check_rules = verify_message_id_uniqueness
verify_x_ml_info_uniqueness
verify_list_post_uniqueness
+header_message_id_cache_dir = $db_dir/message_id
+
+header_x_ml_info_cache_dir = $db_dir/x_ml_info
+
+header_list_post_cache_dir = $db_dir/list_post
+
# Descriptions: 記事のヘッダを書き換えるルール群
# Re: を切り落とす操作はデフォルトなので指定の必要なし
diff --git a/fml/etc/defaults/directory.cf.ja b/fml/etc/defaults/directory.cf.ja
index 1b863f32..90e7a981 100644
--- a/fml/etc/defaults/directory.cf.ja
+++ b/fml/etc/defaults/directory.cf.ja
@@ -26,3 +26,11 @@ var_dir = $ml_home_dir/var
# Value: directory
# Examples: /var/spool/ml/elena/tmp
tmp_dir = $ml_home_dir/tmp
+
+
+# Descriptions: 各種データファイルを置くディレクトリ
+# History: $VARDB_DIR
+# Value: directory
+# Examples: /var/spool/ml/elena/var/db
+db_dir = $var_dir/db
+
diff --git a/fml/etc/defaults/header.cf.ja b/fml/etc/defaults/header.cf.ja
index 4be9e014..6aa9007c 100644
--- a/fml/etc/defaults/header.cf.ja
+++ b/fml/etc/defaults/header.cf.ja
@@ -21,6 +21,12 @@ header_check_rules = verify_message_id_uniqueness
verify_x_ml_info_uniqueness
verify_list_post_uniqueness
+message_id_cache_dir = $db_dir/message_id
+
+x_ml_info_cache_dir = $db_dir/x_ml_info
+
+list_post_cache_dir = $db_dir/list_post
+
# Descriptions: 記事のヘッダを書き換えるルール群
# Re: を切り落とす操作はデフォルトなので指定の必要なし
diff --git a/fml/etc/defaults/variablelist.ja.html b/fml/etc/defaults/variablelist.ja.html
index 3a195200..c4b889a6 100644
--- a/fml/etc/defaults/variablelist.ja.html
+++ b/fml/etc/defaults/variablelist.ja.html
@@ -384,9 +384,13 @@ command_unsubscribe_type = confirmation
available_commands = help
get
mget
+ get
+ mget
subscribe
+ bye
+ remove
+ resign
unsubscribe
- chaddr
=head1 チケットシステム
diff --git a/fml/lib/FML/Header.pm b/fml/lib/FML/Header.pm
index 9b1416e0..922736f9 100644
--- a/fml/lib/FML/Header.pm
+++ b/fml/lib/FML/Header.pm
@@ -285,6 +285,30 @@ sub remove_subject_tag_like_string
}
+=head2 C<verify_list_post_uniqueness()>
+
+=cut
+
+
+sub verify_message_id_uniqueness
+{
+ my ($header, $config, $args) = @_;
+ Log("run verify_message_id_uniqueness");
+}
+
+sub verify_x_ml_info_uniqueness
+{
+ my ($header, $config, $args) = @_;
+ Log("run verify_x_ml_info_uniqueness");
+}
+
+sub verify_list_post_uniqueness
+{
+ my ($header, $config, $args) = @_;
+ Log("run verify_list_post_uniqueness");
+}
+
+
=head1 SEE ALSO
L<Mail::Header>