function mailhandler_update_6213 in Mailhandler 6.2
Allow insecure authentication for existing mailboxes.
File
- ./
mailhandler.install, line 500 - Install, update and uninstall functions for the Mailhandler module.
Code
function mailhandler_update_6213() {
$ret = array();
$result = db_query('SELECT * FROM {mailhandler_mailbox}');
while ($row = db_fetch_array($result)) {
$row['settings'] = unserialize($row['settings']);
$row['settings']['insecure'] = TRUE;
drupal_write_record('mailhandler_mailbox', $row, 'mid');
}
return $ret;
}