Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a80ef9ce

Přidáno uživatelem David Raška před asi 9 roky(ů)

Fixes in tatrabanka e-mail importer:
Downloading less e-mails
Timestamp comparison fixed
Import in reversed order
Removed exception for unknown body encoding

Zobrazit rozdíly:

application/libraries/importers/Txt_Tatra_Banka_Statement_File_Importer.php
throw new Exception($m . ' (' . implode(" > ", imap_errors()) . ')');
}
$emails = imap_search($inbox, 'ALL');
if ($last_download > 0)
{
$last_download_prev = $last_download - (60 * 60 * 24); // - 1 day
$emails = imap_search($inbox, 'SINCE "'.date('j F Y', $last_download_prev).'"');
}
else
{
$emails = imap_search($inbox, 'ALL');
}
$first = TRUE;
......
$first = FALSE;
}
if ($header->udate <= $last_download)
if (intval($header->udate) <= intval($last_download))
{
continue;
break;
}
$body = imap_fetchbody($inbox,$email_number, 1);
......
continue;
}
$all_mails[] = $body;
array_unshift($all_mails, $body);
}
}
......
$body = quoted_printable_decode($body);
break;
case ENCOTHER:
throw new Exception("Unsupported IMAP encoding: ENCOTHER");
break;
}

Také k dispozici: Unified diff