mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 07:07:14 +00:00
Clear mail bodies after successful delivery
This commit is contained in:
@@ -385,7 +385,8 @@ if (mysqli_num_rows($sql_queue) > 0) {
|
||||
(string)$config_mail_oauth_access_token_expires_at
|
||||
);
|
||||
|
||||
mysqli_query($mysqli, "UPDATE email_queue SET email_status = 3, email_sent_at = NOW(), email_attempts = 1 WHERE email_id = $email_id");
|
||||
// Scrub the body on delivery - it can carry share decryption keys and temporary passwords
|
||||
mysqli_query($mysqli, "UPDATE email_queue SET email_status = 3, email_sent_at = NOW(), email_attempts = 1, email_content = '', email_cal_str = '' WHERE email_id = $email_id");
|
||||
|
||||
} catch (Exception $e) {
|
||||
mysqli_query($mysqli, "UPDATE email_queue SET email_status = 2, email_failed_at = NOW(), email_attempts = 1 WHERE email_id = $email_id");
|
||||
@@ -459,7 +460,8 @@ if (mysqli_num_rows($sql_failed_queue) > 0) {
|
||||
(string)$config_mail_oauth_access_token_expires_at
|
||||
);
|
||||
|
||||
mysqli_query($mysqli, "UPDATE email_queue SET email_status = 3, email_sent_at = NOW(), email_attempts = $email_attempts WHERE email_id = $email_id");
|
||||
// Scrub the body on delivery - it can carry share decryption keys and temporary passwords
|
||||
mysqli_query($mysqli, "UPDATE email_queue SET email_status = 3, email_sent_at = NOW(), email_attempts = $email_attempts, email_content = '', email_cal_str = '' WHERE email_id = $email_id");
|
||||
|
||||
} catch (Exception $e) {
|
||||
mysqli_query($mysqli, "UPDATE email_queue SET email_status = 2, email_failed_at = NOW(), email_attempts = $email_attempts WHERE email_id = $email_id");
|
||||
|
||||
Reference in New Issue
Block a user