0 and strpos(mail, '@" . $testdomain . "') = 0;"; } else { $sanitize_query = "update users set mail = concat('" . $testemailaddress . "+', replace(mail, '@', '_'), '@" . $testdomain . "') where uid <> 0 and instr(mail, '@" . $testdomain . "') = 0;"; } drush_print("Sanitization sql:"); drush_print($sanitize_query); if (!drush_get_context('DRUSH_SIMULATE')) { if (drush_confirm(dt('Would you like to sanitize the database of the destination site %dest?', array('%dest' => $destination)))) { $result = drush_do_site_command($destination_settings, "sql-query", array($sanitize_query) /*, array('s' => drush_get_context('DRUSH_SIMULATE')) */); drush_print($result['output']); } } } }