summaryrefslogtreecommitdiff
path: root/fml/lib/Mail/ThreadTrack
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-11-16 10:09:14 +0000
committerfukachan <fukachan>2001-11-16 10:09:14 +0000
commit20f3ee36be0360a407d0389cf5082db6f8f357a9 (patch)
treef7c7bf3e74f5dba23266ace52eff363085f0c7d1 /fml/lib/Mail/ThreadTrack
parent75b6c1f718ec789692efaa7e9b478c53c460e5b3 (diff)
downloadfml8-20f3ee36be0360a407d0389cf5082db6f8f357a9.tar.gz
fml8-20f3ee36be0360a407d0389cf5082db6f8f357a9.tar.bz2
fml8-20f3ee36be0360a407d0389cf5082db6f8f357a9.zip
fix _status but in unpolite way. XXX fix it !
Diffstat (limited to 'fml/lib/Mail/ThreadTrack')
-rw-r--r--fml/lib/Mail/ThreadTrack/DB.pm14
1 files changed, 10 insertions, 4 deletions
diff --git a/fml/lib/Mail/ThreadTrack/DB.pm b/fml/lib/Mail/ThreadTrack/DB.pm
index 50b1fa58..126855a2 100644
--- a/fml/lib/Mail/ThreadTrack/DB.pm
+++ b/fml/lib/Mail/ThreadTrack/DB.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: DB.pm,v 1.10 2001/11/07 04:07:02 fukachan Exp $
+# $FML: DB.pm,v 1.11 2001/11/09 13:30:57 fukachan Exp $
#
package Mail::ThreadTrack::DB;
@@ -166,8 +166,9 @@ sub db_close
sub db_mkdb
{
my ($self, $min_id, $max_id) = @_;
- my $config = $self->{ _config };
- my $spool_dir = $config->{ spool_dir };
+ my $config = $self->{ _config };
+ my $spool_dir = $config->{ spool_dir };
+ my $saved_args = $self->{ _saved_args }; # original $args
use Mail::Message;
use File::Spec;
@@ -175,9 +176,10 @@ sub db_mkdb
my $count = 0;
print STDERR "db_mkdb: $min_id -> $max_id\n" if $debug;
for my $id ( $min_id .. $max_id ) {
- print STDERR "." if $count++ % 25 == 0;
+ print STDERR "." if $count++ % 10 == 0;
print STDERR "process $id\n" if $debug;
+ # XXX this code is workaround, we should create more clever way.
# XXX overwrite (tricky)
$self->{ _config }->{ article_id } = $id;
@@ -186,6 +188,10 @@ sub db_mkdb
my $fh = new FileHandle $file;
my $msg = Mail::Message->parse({ fd => $fh });
$self->analyze($msg);
+
+ # XXX this code is workaround, we should create more clever way.
+ # XXX remove current status (tricky ;)
+ delete $self->{ _status };
}
print STDERR "\n" if $count > 0;
}