Follow-up Comment #3, bug #10161 (project web-cyradm):
Roman, I've updated your patch, to also update "dest" if you have a local
address in your alias.
Example: New Alias -> [EMAIL PROTECTED]
Destinations -> [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
:)
Check this little update if it's ok for you and I'll check it in:
for($i = 0; $i < $result5->numRows(); $i++){
$resultrow = $result5->fetchRow();
$oldalias = $resultrow[0];
$newalias = preg_replace("/" . preg_quote($domain) . "/", $newdomain,
$resultrow[0]);
$updatealias = "UPDATE virtual SET alias = '$newalias' WHERE alias =
'$oldalias'";
$updateresult = $handle->query($updatealias);
$updatealias2 = "UPDATE virtual SET dest = '$newalias' WHERE dest =
'$oldalias'";
$updateresult2 = $handle->query($updatealias2);
P.S.: I know my style is ugly ;)
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=10161>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm