Debug v17
This commit is contained in:
parent
6992fec6c5
commit
49c9700da1
@ -35,8 +35,6 @@ include_once DOL_DOCUMENT_ROOT.'/emailcollector/class/emailcollectorfilter.class
|
|||||||
include_once DOL_DOCUMENT_ROOT.'/emailcollector/class/emailcollectoraction.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/emailcollector/class/emailcollectoraction.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/emailcollector/lib/emailcollector.lib.php';
|
include_once DOL_DOCUMENT_ROOT.'/emailcollector/lib/emailcollector.lib.php';
|
||||||
|
|
||||||
// use Webklex\PHPIMAP;
|
|
||||||
require DOL_DOCUMENT_ROOT.'/includes/webklex/php-imap/vendor/autoload.php';
|
|
||||||
use Webklex\PHPIMAP\ClientManager;
|
use Webklex\PHPIMAP\ClientManager;
|
||||||
use Webklex\PHPIMAP\Exceptions\ConnectionFailedException;
|
use Webklex\PHPIMAP\Exceptions\ConnectionFailedException;
|
||||||
use Webklex\PHPIMAP\Exceptions\InvalidWhereQueryCriteriaException;
|
use Webklex\PHPIMAP\Exceptions\InvalidWhereQueryCriteriaException;
|
||||||
@ -403,6 +401,8 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
|
|
||||||
if ($action == 'scan') {
|
if ($action == 'scan') {
|
||||||
if (!empty($conf->global->MAIN_IMAP_USE_PHPIMAP)) {
|
if (!empty($conf->global->MAIN_IMAP_USE_PHPIMAP)) {
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/includes/webklex/php-imap/vendor/autoload.php';
|
||||||
|
|
||||||
if ($object->acces_type == 1) {
|
if ($object->acces_type == 1) {
|
||||||
// Mode OAUth2 with PHP-IMAP
|
// Mode OAUth2 with PHP-IMAP
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/oauth.lib.php'; // define $supportedoauth2array
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/oauth.lib.php'; // define $supportedoauth2array
|
||||||
|
|||||||
@ -44,9 +44,6 @@ require_once DOL_DOCUMENT_ROOT .'/ticket/class/ticket.class.php';
|
|||||||
//require_once DOL_DOCUMENT_ROOT .'/holiday/class/holiday.class.php'; // Holidays (leave request)
|
//require_once DOL_DOCUMENT_ROOT .'/holiday/class/holiday.class.php'; // Holidays (leave request)
|
||||||
|
|
||||||
|
|
||||||
// use Webklex\PHPIMAP;
|
|
||||||
require DOL_DOCUMENT_ROOT .'/includes/webklex/php-imap/vendor/autoload.php';
|
|
||||||
|
|
||||||
use Webklex\PHPIMAP\ClientManager;
|
use Webklex\PHPIMAP\ClientManager;
|
||||||
use Webklex\PHPIMAP\Exceptions\ConnectionFailedException;
|
use Webklex\PHPIMAP\Exceptions\ConnectionFailedException;
|
||||||
use Webklex\PHPIMAP\Exceptions\InvalidWhereQueryCriteriaException;
|
use Webklex\PHPIMAP\Exceptions\InvalidWhereQueryCriteriaException;
|
||||||
@ -1026,6 +1023,9 @@ class EmailCollector extends CommonObject
|
|||||||
//$conf->global->SYSLOG_FILE = 'DOL_DATA_ROOT/dolibarr_mydedicatedlofile.log';
|
//$conf->global->SYSLOG_FILE = 'DOL_DATA_ROOT/dolibarr_mydedicatedlofile.log';
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php';
|
||||||
|
if (!empty($conf->global->MAIN_IMAP_USE_PHPIMAP)) {
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/includes/webklex/php-imap/vendor/autoload.php';
|
||||||
|
}
|
||||||
|
|
||||||
dol_syslog("EmailCollector::doCollectOneCollector start for id=".$this->id." - ".$this->ref, LOG_DEBUG);
|
dol_syslog("EmailCollector::doCollectOneCollector start for id=".$this->id." - ".$this->ref, LOG_DEBUG);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user