0
1
Fork 0

TPV mail cleaning bug fixed

This commit is contained in:
Juan 2018-09-13 14:59:49 +02:00
parent 38a6a7a3ac
commit 8cc05e174e
3 changed files with 3 additions and 3 deletions

2
debian/changelog vendored
View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "1.406.20", "version": "1.406.21",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {

View File

@ -82,7 +82,7 @@ class ConfirmMail extends Vn\Lib\Method {
$filter = sprintf('BEFORE "%s"', $date->format('D, j M Y')); $filter = sprintf('BEFORE "%s"', $date->format('D, j M Y'));
foreach ($folders as $folder) foreach ($folders as $folder)
if (imap_reopen($imap, $mailbox.'.'.$folder)) if (imap_reopen($imap, $mailbox.$folder))
if ($messages = imap_search($imap, $filter)) { if ($messages = imap_search($imap, $filter)) {
foreach ($messages as $message) foreach ($messages as $message)
imap_delete($imap, $message); imap_delete($imap, $message);