|
|
 |
FN-FORUM: Wordpress email to blog
date posted 7th August 2004 21:06
Hi
just found and fixed a bug in the wp mail hack here:
http://blade.lansmash.com/index.php?p=39#comments
whereby a cron job where no mail was found would exit the POP3 server
badly and cause the mailbox to be locked.
in wp-mail.php, look for and replace so that the exit statement looks more
like this:
$count = $pop3->login(get_settings('mailserver_login'),
get_settings('mailserver_pass'));
if (0 == $count) {
$pop3->quit();
die(__('There does not seem to be any new mail.'));
}
This quits the POP3 before abruptly ending and appears to resolve the
locked inbox issue.
This might only apply to certain hosts, but it affected at least two of
mine.
hth
Tony
|
 |
|