attrs = new HashMap(); attrs.put("-"+Provisioning.A_zimbraMailForwardingAddress, oldName); attrs.put("+"+Provisioning.A_zimbraMailForwardingAddress, newName);
attrs = new HashMap<String, String>(); attrs.put("-" + Provisioning.A_zimbraMailForwardingAddress, oldName); attrs.put("+" + Provisioning.A_zimbraMailForwardingAddress, newName);
    void renameAddressInAllDistributionLists(String oldName, String newName)    {        String addrs[] = new String[] { oldName };        List<DistributionList> lists = null;         HashMap attrs = null;                try {            lists = getAllDistributionListsForAddresses(addrs);        } catch (ServiceException se) {            ZimbraLog.account.warn("unable to rename addr "+oldName+" in all DLs ", se);            return;        }                for (DistributionList list: lists) {            // should we just call removeMember/addMember? This might be quicker, because calling            // removeMember/addMember might have to update an entry's zimbraMemberId twice            if (attrs == null) {                attrs = new HashMap();                attrs.put("-"+Provisioning.A_zimbraMailForwardingAddress, oldName);                attrs.put("+"+Provisioning.A_zimbraMailForwardingAddress, newName);                            }            try {                list.modifyAttrs(attrs);                //list.removeMember(oldName)                //list.addMember(newName);                            } catch (ServiceException se) {                // log warning an continue                ZimbraLog.account.warn("unable to rename "+oldName+" to "+newName+" in DL "+list.getName(), se);            }        }    }