*** wp-mail-orig.php	2008-05-26 00:50:15.000000000 +0900
--- wp-mail.php	2008-07-05 09:16:30.000000000 +0900
***************
*** 9,14 ****
--- 9,23 ----
  /** Make sure that the WordPress bootstrap has ran before continuing. */
  require(dirname(__FILE__) . '/wp-load.php');
  
+ /** Keep certain intervals to fetch mail messages. */
+ if (! defined('WP_MAIL_INTERVAL'))
+ 	define('WP_MAIL_INTERVAL', 5);
+ 
+ $last_checked = get_option('mailserver_last_checked');
+ $interval = intval(WP_MAIL_INTERVAL);
+ if ($interval < 1 || $last_checked < 0 || $interval * 60 > (time() - $last_checked))
+ 	exit;
+ 
  /** Get the POP3 class for which to access the mailbox. */
  require_once(ABSPATH.WPINC.'/class-pop3.php');
  

