1
1
Fork 0

provide a way to disable mailbox integration

This commit is contained in:
Friendika 2011-04-18 20:20:04 -07:00
commit a0179235d2
9 changed files with 198 additions and 161 deletions

View file

@ -287,6 +287,11 @@ function poller_run($argv, $argc){
$xml = fetch_url($contact['poll']);
}
elseif($contact['network'] === NETWORK_MAIL) {
$mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
if($mail_disabled)
continue;
$mbox = null;
$x = q("SELECT `prvkey` FROM `user` WHERE `uid` = %d LIMIT 1",
intval($importer_uid)