diff --git a/debian/changelog b/debian/changelog index 761b70b3..0ecd7ce0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.405.8) stable; urgency=low +hedera-web (1.405.9) stable; urgency=low * Initial Release. diff --git a/rest/edi/clean.php b/rest/edi/clean.php index 7eb58c28..55a61515 100644 --- a/rest/edi/clean.php +++ b/rest/edi/clean.php @@ -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"; } }