Merge
This commit is contained in:
commit
fab5253406
|
@ -21,7 +21,7 @@ class Clean extends Edi\Method
|
|||
];
|
||||
|
||||
foreach ($folders as $folder)
|
||||
if (imap_reopen ($imap, $this->mailbox .'.'. $folder))
|
||||
if (imap_reopen ($imap, "{$this->mailbox}$folder"))
|
||||
{
|
||||
if ($messages = imap_search ($imap, $filter))
|
||||
{
|
||||
|
@ -39,6 +39,10 @@ class Clean extends Edi\Method
|
|||
}
|
||||
|
||||
echo "Total $deleted mails deleted\n";
|
||||
|
||||
echo "Deleting records from database\n";
|
||||
$db->query ('DELETE FROM message WHERE created < #', [$date]);
|
||||
echo "Done\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ class Update extends Vn\Lib\Method
|
|||
|
||||
$tmpDir = '/tmp/floricode';
|
||||
|
||||
// Establece una conexión FTP
|
||||
// Establece una conexi<EFBFBD>n FTP
|
||||
|
||||
$ftpConf = $db->getRow ('SELECT host, user, password FROM ftp_config');
|
||||
|
||||
|
@ -79,7 +79,7 @@ class Update extends Vn\Lib\Method
|
|||
if (!$fileName)
|
||||
throw new Exception ("Import file for table $table does not exist");
|
||||
|
||||
// Si los datos están actualizados omite la tabla
|
||||
// Si los datos están actualizados omite la tabla
|
||||
|
||||
$lastUpdated = substr ($fileName, -10, 6);
|
||||
$lastUpdated = DateTime::createFromFormat ('dmy', $lastUpdated);
|
||||
|
|
Loading…
Reference in New Issue