1
0
Fork 0

Bugfix for better mail import

This commit is contained in:
Michael 2017-09-23 22:53:44 +00:00
commit d72e6b2c82
4 changed files with 41 additions and 32 deletions

View file

@ -328,7 +328,7 @@ function onepoll_run(&$argv, &$argc){
unlink($cookiejar);
} elseif ($contact['network'] === NETWORK_MAIL || $contact['network'] === NETWORK_MAIL2) {
logger("Mail: Fetching", LOGGER_DEBUG);
logger("Mail: Fetching for ".$contact['addr'], LOGGER_DEBUG);
$mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
if ($mail_disabled)
@ -363,10 +363,10 @@ function onepoll_run(&$argv, &$argc){
}
if ($mbox) {
$msgs = email_poll($mbox,$contact['addr']);
$msgs = email_poll($mbox, $contact['addr']);
if (count($msgs)) {
logger("Mail: Parsing ".count($msgs)." mails for ".$mailconf[0]['user'], LOGGER_DEBUG);
logger("Mail: Parsing ".count($msgs)." mails from ".$contact['addr']." for ".$mailconf[0]['user'], LOGGER_DEBUG);
$metas = email_msg_meta($mbox,implode(',',$msgs));
if (count($metas) != count($msgs)) {