Errores edi/clean solucionados
This commit is contained in:
parent
9e97958f60
commit
8ecaa88461
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.405.8) stable; urgency=low
|
||||
hedera-web (1.405.9) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue