summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fml/lib/Mail/ThreadTrack/Analyze.pm6
-rw-r--r--fml/lib/Mail/ThreadTrack/DB.pm3
2 files changed, 7 insertions, 2 deletions
diff --git a/fml/lib/Mail/ThreadTrack/Analyze.pm b/fml/lib/Mail/ThreadTrack/Analyze.pm
index b3e00c4f..3b729ff4 100644
--- a/fml/lib/Mail/ThreadTrack/Analyze.pm
+++ b/fml/lib/Mail/ThreadTrack/Analyze.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: Analyze.pm,v 1.17 2001/11/26 09:12:38 fukachan Exp $
+# $FML: Analyze.pm,v 1.18 2001/11/27 11:21:46 fukachan Exp $
#
package Mail::ThreadTrack::Analyze;
@@ -570,6 +570,10 @@ sub _update_db
# message_id hash is { message_id => thread_id };
# RFC822 says msg-id = "<" addr-spec ">" ; Unique message id
my $mid = $header->get('message-id'); $mid =~ s/[\n\s]*$//;
+ if ($mid eq "") {
+ print STDERR "missing message-id $thread_id\n" if $debug;
+ return;
+ }
$rh->{ _message_id }->{ $mid } = $thread_id;
}
diff --git a/fml/lib/Mail/ThreadTrack/DB.pm b/fml/lib/Mail/ThreadTrack/DB.pm
index 7ae745ab..600fab6e 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.14 2001/11/20 07:28:50 fukachan Exp $
+# $FML: DB.pm,v 1.15 2001/11/20 09:43:21 fukachan Exp $
#
package Mail::ThreadTrack::DB;
@@ -188,6 +188,7 @@ sub db_mkdb
# analyze
my $file = File::Spec->catfile($spool_dir, $id);
my $fh = new FileHandle $file;
+ next unless (defined $fh); # for file missing
my $msg = Mail::Message->parse({ fd => $fh });
$self->analyze($msg);