Errores edi/clean solucionados

This commit is contained in:
Juan Ferrer Toribio 2017-07-10 13:37:04 +02:00
parent 9e97958f60
commit 8ecaa88461
2 changed files with 6 additions and 2 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.405.8) stable; urgency=low hedera-web (1.405.9) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -21,7 +21,7 @@ class Clean extends Edi\Method
]; ];
foreach ($folders as $folder) foreach ($folders as $folder)
if (imap_reopen ($imap, $this->mailbox .'.'. $folder)) if (imap_reopen ($imap, "{$this->mailbox}$folder"))
{ {
if ($messages = imap_search ($imap, $filter)) if ($messages = imap_search ($imap, $filter))
{ {
@ -39,6 +39,10 @@ class Clean extends Edi\Method
} }
echo "Total $deleted mails deleted\n"; echo "Total $deleted mails deleted\n";
echo "Deleting records from database\n";
$db->query ('DELETE FROM message WHERE created < #', [$date]);
echo "Done\n";
} }
} }