summaryrefslogtreecommitdiff
path: root/fml/lib/Mail
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-04-03 11:32:57 +0000
committerfukachan <fukachan>2002-04-03 11:32:57 +0000
commitc6078a19cf75b629679bf0e511d2804fb3e1b8d5 (patch)
treea888f5d4bdac79dabd3563b06f05c5963ccc247b /fml/lib/Mail
parent06df1cc364822a8176ea12b4881cd9fbb1d9a881 (diff)
downloadfml8-c6078a19cf75b629679bf0e511d2804fb3e1b8d5.tar.gz
fml8-c6078a19cf75b629679bf0e511d2804fb3e1b8d5.tar.bz2
fml8-c6078a19cf75b629679bf0e511d2804fb3e1b8d5.zip
clean up doc & codes, FNF-ify
Diffstat (limited to 'fml/lib/Mail')
-rw-r--r--fml/lib/Mail/Message/Spool.pm20
1 files changed, 16 insertions, 4 deletions
diff --git a/fml/lib/Mail/Message/Spool.pm b/fml/lib/Mail/Message/Spool.pm
index 3a870203..43ad7f17 100644
--- a/fml/lib/Mail/Message/Spool.pm
+++ b/fml/lib/Mail/Message/Spool.pm
@@ -2,7 +2,7 @@
#
# Copyright (C) 2002 Ken'ichi Fukamachi
#
-# $FML: Spool.pm,v 1.2 2002/03/31 02:25:44 fukachan Exp $
+# $FML: Spool.pm,v 1.3 2002/03/31 09:42:36 fukachan Exp $
#
package Mail::Message::Spool;
@@ -12,19 +12,25 @@ use Carp;
=head1 NAME
-Mail::Message::Spool - utilities for Spool style format
+Mail::Message::Spool - utilities to handle directory such as article spool
=head1 SYNOPSIS
use Mail::Message::Spool;
- my $Spool = new Mail::Message::Spool;
+ my $spool = new Mail::Message::Spool;
+ my $file = $spool->filepath($args);
=head1 DESCRIPTION
+C<Mail::Message::Spool> class provides utility functions to handle a
+directory such as article spool.
+
=head1 METHODS
=head2 new()
+standard constructor.
+
=cut
@@ -43,7 +49,8 @@ sub new
=head2 filepath($args)
-return article file path.
+return article file path. If you use hierarchical subdirectories,
+this filepath() conversion is useful.
$args = {
base_dir => $base_dir,
@@ -51,6 +58,8 @@ return article file path.
use_subdir => 0, # 1 or 0
};
+where C<base_dir> and C<id> are mandatory.
+
=cut
@@ -88,6 +97,9 @@ sub filepath
}
+#
+# test
+#
if ($0 eq __FILE__) {
my $obj = new Mail::Message::Spool;