summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/Admin/chaddr.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-02-01 13:45:58 +0000
committerfukachan <fukachan>2003-02-01 13:45:58 +0000
commit8493708a52f55c8738edd77eb9eb9d0497d0b74c (patch)
treeb1741a1e2e18775a432267489803c73abce33ac5 /fml/lib/FML/Command/Admin/chaddr.pm
parentf6dfceee3619c991b91f57a03e935b2debb63c34 (diff)
downloadfml8-8493708a52f55c8738edd77eb9eb9d0497d0b74c.tar.gz
fml8-8493708a52f55c8738edd77eb9eb9d0497d0b74c.tar.bz2
fml8-8493708a52f55c8738edd77eb9eb9d0497d0b74c.zip
remove address matched by IO::Adapter in the case of $old_address
Diffstat (limited to 'fml/lib/FML/Command/Admin/chaddr.pm')
-rw-r--r--fml/lib/FML/Command/Admin/chaddr.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/fml/lib/FML/Command/Admin/chaddr.pm b/fml/lib/FML/Command/Admin/chaddr.pm
index ee22a2c9..01d120af 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.10 2003/02/01 05:27:52 fukachan Exp $
+# $FML: chaddr.pm,v 1.11 2003/02/01 06:08:39 fukachan Exp $
#
package FML::Command::Admin::chaddr;
@@ -104,6 +104,8 @@ sub process
# 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)) {
+ my $old_address_in_map = $cred->matched_address();
+
unless ($cred->has_address_in_map($map, $config, $new_address)) {
# remove the old address only if $new_address not included.
{
@@ -111,7 +113,7 @@ sub process
$obj->touch();
$obj->open();
- $obj->delete( $old_address );
+ $obj->delete( $old_address_in_map );
unless ($obj->error()) {
Log("delete $old_address from map=$map");
}