|
|
 |
RE: FN-FORUM: Wordpress email to blog
date posted 7th August 2004 23:49
There's a moral to this story, don't get PHP to look at your mailbox. Get
the JavaMail API to do it instead.
:)
I'm sorry but no outside process should be able to shutdown the server like
that. That's bad news.
jaseb
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] Behalf Of Tony
Crockford
Sent: 07 August 2004 21:59
To: FN-FORUM / [EMAIL REMOVED]
Subject: FN-FORUM: Wordpress email to blog
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
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|