summaryrefslogtreecommitdiff
path: root/fml/lib/Tie
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-08-07 14:37:24 +0000
committerfukachan <fukachan>2002-08-07 14:37:24 +0000
commit2b3e1ac2ca97113eb7ed2284dd18750ee5f2222d (patch)
tree2c9012ac4a7e9aac6ad5b768431fa67d8a43f199 /fml/lib/Tie
parent992ae6a64e5a2317f87d81a423e50efde3ec5505 (diff)
downloadfml8-2b3e1ac2ca97113eb7ed2284dd18750ee5f2222d.tar.gz
fml8-2b3e1ac2ca97113eb7ed2284dd18750ee5f2222d.tar.bz2
fml8-2b3e1ac2ca97113eb7ed2284dd18750ee5f2222d.zip
bug fix the default day type handling
Diffstat (limited to 'fml/lib/Tie')
-rw-r--r--fml/lib/Tie/JournaledDir.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/fml/lib/Tie/JournaledDir.pm b/fml/lib/Tie/JournaledDir.pm
index 44712297..7bccf913 100644
--- a/fml/lib/Tie/JournaledDir.pm
+++ b/fml/lib/Tie/JournaledDir.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: JournaledDir.pm,v 1.12 2002/08/03 13:13:28 fukachan Exp $
+# $FML: JournaledDir.pm,v 1.13 2002/08/07 00:08:02 fukachan Exp $
#
package Tie::JournaledDir;
@@ -140,7 +140,7 @@ sub _file_name
elsif ($unit eq 'day') {
use Mail::Message::Date;
my $date = new Mail::Message::Date time;
- $fn = $date->YYYYMMDD();
+ $fn = $date->YYYYMMDD( time - $i * 24 * 3600 );
}
use File::Spec;
@@ -222,7 +222,10 @@ sub __gen_hash
my ($k, $v);
use FileHandle;
+ FILE:
for my $f (reverse @$files) {
+ next FILE unless -f $f;
+
tie %db, 'Tie::JournaledFile', {
'last_match' => 1,
'file' => $f,