Log
This commit is contained in:
parent
949e288ce0
commit
778093f382
@ -1589,6 +1589,8 @@ class EmailCollector extends CommonObject
|
|||||||
$header = $imapemail->getHeader()->raw;
|
$header = $imapemail->getHeader()->raw;
|
||||||
$overview = $imapemail->getAttributes();
|
$overview = $imapemail->getAttributes();
|
||||||
} else {
|
} else {
|
||||||
|
$operationslog .= '<br>email = '.((string) $imapemail);
|
||||||
|
|
||||||
//$header = imap_headerinfo($connection, $imapemail);
|
//$header = imap_headerinfo($connection, $imapemail);
|
||||||
$header = imap_fetchheader($connection, $imapemail, 0);
|
$header = imap_fetchheader($connection, $imapemail, 0);
|
||||||
$overview = imap_fetch_overview($connection, $imapemail, 0);
|
$overview = imap_fetch_overview($connection, $imapemail, 0);
|
||||||
@ -3139,11 +3141,16 @@ class EmailCollector extends CommonObject
|
|||||||
if (!empty($targetdir) && empty($mode)) {
|
if (!empty($targetdir) && empty($mode)) {
|
||||||
if (empty($conf->global->MAIN_IMAP_USE_PHPIMAP)) {
|
if (empty($conf->global->MAIN_IMAP_USE_PHPIMAP)) {
|
||||||
dol_syslog("EmailCollector::doCollectOneCollector move message ".((string) $imapemail)." to ".$connectstringtarget, LOG_DEBUG);
|
dol_syslog("EmailCollector::doCollectOneCollector move message ".((string) $imapemail)." to ".$connectstringtarget, LOG_DEBUG);
|
||||||
|
$operationslog .= '<br>Move mail '.((string) $imapemail);
|
||||||
|
|
||||||
$res = imap_mail_move($connection, $imapemail, $targetdir, 0);
|
$res = imap_mail_move($connection, $imapemail, $targetdir, 0);
|
||||||
if ($res == false) {
|
if ($res == false) {
|
||||||
$errorforemail++;
|
$errorforemail++;
|
||||||
$this->error = imap_last_error();
|
$this->error = imap_last_error();
|
||||||
$this->errors[] = $this->error;
|
$this->errors[] = $this->error;
|
||||||
|
|
||||||
|
$operationslog .= '<br>Error in move '.$this->error;
|
||||||
|
|
||||||
dol_syslog(imap_last_error());
|
dol_syslog(imap_last_error());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -3199,6 +3206,7 @@ class EmailCollector extends CommonObject
|
|||||||
$output = $langs->trans('NoNewEmailToProcess');
|
$output = $langs->trans('NoNewEmailToProcess');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disconnect
|
||||||
if (!empty($conf->global->MAIN_IMAP_USE_PHPIMAP)) {
|
if (!empty($conf->global->MAIN_IMAP_USE_PHPIMAP)) {
|
||||||
$client->disconnect();
|
$client->disconnect();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user