diff options
| author | fukachan <fukachan> | 2002-12-20 03:40:11 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-12-20 03:40:11 +0000 |
| commit | eebea87256b7cc29db4ff30166e1b465f7b554aa (patch) | |
| tree | 70cd10fa56b5eff2ef501bc7a686b21739046359 /fml/lib/FML/Command/Admin/chaddr.pm | |
| parent | 33cc3216e24c18b345adb828c8e3b3ba7e5ca920 (diff) | |
| download | fml8-eebea87256b7cc29db4ff30166e1b465f7b554aa.tar.gz fml8-eebea87256b7cc29db4ff30166e1b465f7b554aa.tar.bz2 fml8-eebea87256b7cc29db4ff30166e1b465f7b554aa.zip | |
fix comments and error messages.
add defined() more.
Diffstat (limited to 'fml/lib/FML/Command/Admin/chaddr.pm')
| -rw-r--r-- | fml/lib/FML/Command/Admin/chaddr.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fml/lib/FML/Command/Admin/chaddr.pm b/fml/lib/FML/Command/Admin/chaddr.pm index ea28ec36..3f96029d 100644 --- a/fml/lib/FML/Command/Admin/chaddr.pm +++ b/fml/lib/FML/Command/Admin/chaddr.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: chaddr.pm,v 1.7 2002/09/11 23:18:07 fukachan Exp $ +# $FML: chaddr.pm,v 1.8 2002/09/22 14:56:44 fukachan Exp $ # package FML::Command::Admin::chaddr; @@ -33,7 +33,7 @@ change address from old one to new one. =cut -# Descriptions: standard constructor +# Descriptions: constructor. # Arguments: OBJ($self) # Side Effects: none # Return Value: OBJ @@ -89,18 +89,20 @@ sub process use FML::Credential; use FML::Log qw(Log LogWarn LogError); - # change all maps + # change all maps including this $address. my (@maps) = (); push(@maps, @$member_maps); push(@maps, @$recipient_maps); for my $map (@maps) { my $cred = new FML::Credential $curproc; + # XXX-TODO: this condition is correct ? + # XXX-TODO: we should remove old one when both old and new ones exist. # the current member/recipient file must have $old_address # but should not contain $new_address. if ($cred->has_address_in_map($map, $config, $old_address)) { unless ($cred->has_address_in_map($map, $config, $new_address)) { - # remove the old address. + # remove the old address only if $new_address not included. { my $obj = new IO::Adapter $map, $config; $obj->touch(); |
