summaryrefslogtreecommitdiff
path: root/fml/lib/FML/User
diff options
context:
space:
mode:
authorfukachan <fukachan>2005-08-17 10:41:27 +0000
committerfukachan <fukachan>2005-08-17 10:41:27 +0000
commit41e2f697ec5326de6cb5e90b8489be636c102149 (patch)
tree65b4c4488ec8cb3ddee298daa51a225006f27ec4 /fml/lib/FML/User
parent1f4d4978f1e407e50b54b6c225a318ce49685ebf (diff)
downloadfml8-41e2f697ec5326de6cb5e90b8489be636c102149.tar.gz
fml8-41e2f697ec5326de6cb5e90b8489be636c102149.tar.bz2
fml8-41e2f697ec5326de6cb5e90b8489be636c102149.zip
import_from_mail_header() -> add() with args changed (nuke $curproc).
Diffstat (limited to 'fml/lib/FML/User')
-rw-r--r--fml/lib/FML/User/Info.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/fml/lib/FML/User/Info.pm b/fml/lib/FML/User/Info.pm
index a7b67242..2f339231 100644
--- a/fml/lib/FML/User/Info.pm
+++ b/fml/lib/FML/User/Info.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: Info.pm,v 1.3 2004/07/23 13:09:49 fukachan Exp $
+# $FML: Info.pm,v 1.4 2005/05/27 03:03:40 fukachan Exp $
#
package FML::User::Info;
@@ -52,7 +52,7 @@ sub new
}
-=head2 import_from_mail_header($curproc, $info)
+=head2 add($info)
top level entrance to update user database based on header
information.
@@ -61,12 +61,13 @@ information.
# Descriptions: update user database based on header information.
-# Arguments: OBJ($self) OBJ($curproc) HASH_REF($info)
+# Arguments: OBJ($self) HASH_REF($info)
# Side Effects: update db.
# Return Value: none
-sub import_from_mail_header
+sub add
{
- my ($self, $curproc, $info) = @_;
+ my ($self, $info) = @_;
+ my $curproc = $self->{ _curproc };
my $address = $info->{ address };
my $header = $curproc->incoming_message_header();
my $from = $header->get('from');