Prevent deleting the email when fax sender is not authorized (#6981)
* Prevent deleting the email when fax sender is not authorized
This commit is contained in:
parent
e6860a54b9
commit
46b7c5536a
|
|
@ -262,11 +262,14 @@ if (!empty($result) && @sizeof($result) != 0) {
|
|||
|
||||
//reset variables
|
||||
unset($fax_numbers);
|
||||
}
|
||||
|
||||
//delete email
|
||||
if (imap_delete($connection, $email_id, FT_UID)) {
|
||||
imap_expunge($connection);
|
||||
//delete email
|
||||
if (imap_delete($connection, $email_id, FT_UID)) {
|
||||
imap_expunge($connection);
|
||||
}
|
||||
}
|
||||
else {
|
||||
//unauthorized sender
|
||||
}
|
||||
}
|
||||
unset($authorized_senders);
|
||||
|
|
|
|||
Loading…
Reference in New Issue