summaryrefslogtreecommitdiff
path: root/fml/lib/Mail/Message
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-03-31 02:25:42 +0000
committerfukachan <fukachan>2002-03-31 02:25:42 +0000
commitf7746ad3ed4dbb66557073b7cd753c872cf22fce (patch)
treefde03370484d074351eb0487a1c99d836755c81d /fml/lib/Mail/Message
parent7b80663d6d3539c6200608e33b93f334ec4ad47a (diff)
downloadfml8-f7746ad3ed4dbb66557073b7cd753c872cf22fce.tar.gz
fml8-f7746ad3ed4dbb66557073b7cd753c872cf22fce.tar.bz2
fml8-f7746ad3ed4dbb66557073b7cd753c872cf22fce.zip
Mail::Message::Spool::spool arg changes: $spool_dir -> $base_dir
Diffstat (limited to 'fml/lib/Mail/Message')
-rw-r--r--fml/lib/Mail/Message/Spool.pm24
1 files changed, 12 insertions, 12 deletions
diff --git a/fml/lib/Mail/Message/Spool.pm b/fml/lib/Mail/Message/Spool.pm
index 3a0ff5cf..1b91303c 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.3 2002/12/24 02:26:34 fukachan Exp $
+# $FML: Spool.pm,v 1.1 2002/03/30 15:29:43 fukachan Exp $
#
package Mail::Message::Spool;
@@ -46,7 +46,7 @@ sub new
return article file path.
$args = {
- spool_dir => $spool_dir,
+ base_dir => $base_dir,
id => $id,
use_subdir => 0, # 1 or 0
};
@@ -62,22 +62,22 @@ sub filepath
{
my ($self, $args) = @_;
- if (defined $args->{ spool_dir } && defined $args->{ id }) {
- my $spool_dir = $args->{ spool_dir };
- my $id = $args->{ id };
- my $is_hash = 0;
- my $file = '';
- my $unit = 1000;
- my $subdir = int($id/$unit);
+ if (defined $args->{ base_dir } && defined $args->{ id }) {
+ my $base_dir = $args->{ base_dir };
+ my $id = $args->{ id };
+ my $is_hash = 0;
+ my $file = '';
+ my $unit = 1000;
+ my $subdir = int($id/$unit);
if (defined $args->{ use_subdir }) {
$is_hash = 1;
use File::Spec;
- $file = File::Spec->catfile($spool_dir, $subdir, $id);
+ $file = File::Spec->catfile($base_dir, $subdir, $id);
}
else {
use File::Spec;
- $file = File::Spec->catfile($spool_dir, $id);
+ $file = File::Spec->catfile($base_dir, $id);
}
return $file;
@@ -100,7 +100,7 @@ if ($0 eq __FILE__) {
)) {
print "$id\t=>\t";
print $obj->filepath({
- spool_dir => '/var/spool/ml/elena/spool',
+ base_dir => '/var/spool/ml/elena/spool',
id => $id,
use_subdir => $is_hash,
}), "\n";