| « Upgraded to b2evolution 2.4.2 | Welcome to my new blog location » |
Once again some quick PHP hacking to get this to work:
PHP:
--- getmail.php.dist Sun Apr 27 23:40:39 2008 | |
+++ getmail.php Sun Apr 27 23:43:40 2008 | |
@@ -18,6 +18,7 @@ | |
require_once dirname(__FILE__).'/../conf/_config.php'; | |
| |
require_once $inc_path.'_main.inc.php'; | |
+require_once $inc_path.'items/model/_itemlist.class.php'; | |
| |
if( !$Settings->get('eblog_enabled') ) | |
{ | |
@@ -200,6 +201,10 @@ | |
} | |
} | |
$ddate_U = mktime($ddate_H, $ddate_i, $ddate_s, $ddate_m, $ddate_d, $ddate_Y); | |
+ $ddate_U = $ddate_U + 2 * 3600; | |
+ $ar = localtime($ddate_U,true); | |
+ if ($ar['tm_isdst']) { $ddate_U + 3600; } | |
+ $ddate_U = $ddate_U + date('Z'); | |
$post_date = date('Y-m-d H:i:s', $ddate_U); | |
} | |
} | |
@@ -368,7 +373,7 @@ | |
| |
$pop3->quit(); | |
| |
- timer_stop($output_debugging_info); | |
+ #timer_stop($output_debugging_info); | |
exit; | |
| |
break; |
The first and last diff, I had to find from browsing the forums, the last bit I took from my 0.9.2 hacked version....to make the time stamp valid. The 2 * 3600, is hard coding the time offset between local time and server time....
What isn't present in the diff, is that I don't use usename:password or subject prefix....I simply trust that email coming a certain addresses correspond to a given user. So, far it has worked.