summaryrefslogtreecommitdiff
path: root/fml/lib/Mail/ThreadTrack.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-11-07 04:05:25 +0000
committerfukachan <fukachan>2001-11-07 04:05:25 +0000
commit81f046b88550bbe35c557b216b4833221d0c72d8 (patch)
tree87b57a51ae26386b224b21bdd905cc085eb19c74 /fml/lib/Mail/ThreadTrack.pm
parent497120e54b4ba4186e96a31905e98fc70f495ae2 (diff)
downloadfml8-81f046b88550bbe35c557b216b4833221d0c72d8.tar.gz
fml8-81f046b88550bbe35c557b216b4833221d0c72d8.tar.bz2
fml8-81f046b88550bbe35c557b216b4833221d0c72d8.zip
define add_filter() method
Diffstat (limited to 'fml/lib/Mail/ThreadTrack.pm')
-rwxr-xr-xfml/lib/Mail/ThreadTrack.pm24
1 files changed, 23 insertions, 1 deletions
diff --git a/fml/lib/Mail/ThreadTrack.pm b/fml/lib/Mail/ThreadTrack.pm
index a98b9c82..001c98ff 100755
--- a/fml/lib/Mail/ThreadTrack.pm
+++ b/fml/lib/Mail/ThreadTrack.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: ThreadTrack.pm,v 1.9 2001/11/04 13:43:50 fukachan Exp $
+# $FML: ThreadTrack.pm,v 1.10 2001/11/05 14:34:50 fukachan Exp $
#
package Mail::ThreadTrack;
@@ -438,6 +438,28 @@ sub _set_status
}
+=head2 add_filter( { key => value } )
+
+add filter rule to ignore in thread database.
+
+ my $thread = new Mail::ThreadTrack;
+ $thread->set_filter( { 'subject' => 'fml cvs weekly changes' } );
+
+=cut
+
+
+sub add_filter
+{
+ my ($self, $hash) = @_;
+
+ # update filter list
+ my ($k, $v);
+ while (($k, $v) = each %$hash) {
+ $self->{ _filterlist }->{ $k } = $v;
+ }
+}
+
+
=head2 log( $str )
=cut