Fix do imap expunge only if no error
This commit is contained in:
parent
565057700b
commit
0f58368d5d
@ -2888,7 +2888,7 @@ class EmailCollector extends CommonObject
|
|||||||
if (!empty($conf->global->MAIN_IMAP_USE_PHPIMAP)) {
|
if (!empty($conf->global->MAIN_IMAP_USE_PHPIMAP)) {
|
||||||
$client->disconnect();
|
$client->disconnect();
|
||||||
} else {
|
} else {
|
||||||
if (empty($mode)) {
|
if (empty($mode) && empty($error)) {
|
||||||
imap_expunge($connection); // To validate any move
|
imap_expunge($connection); // To validate any move
|
||||||
}
|
}
|
||||||
imap_close($connection);
|
imap_close($connection);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user