mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 11:24:52 +00:00
Email Ticket Parser: Fix Flagged Email from getting marked as read, use imap_store function to flag emails not processed as this function keeps the email as unread
This commit is contained in:
@@ -483,7 +483,12 @@ if ($emails !== false) {
|
|||||||
imap_mail_move($imap, $email_number, 'ITFlow');
|
imap_mail_move($imap, $email_number, 'ITFlow');
|
||||||
} else {
|
} else {
|
||||||
// Flag the message for manual review
|
// Flag the message for manual review
|
||||||
imap_setflag_full($imap, $email_number, "\\Flagged");
|
|
||||||
|
// 2024-10-26 - JQ - Sets the Flag but keeps the message unread
|
||||||
|
imap_store($imap, $email_number, "+FLAGS", "\\Flagged", ST_UID);
|
||||||
|
|
||||||
|
// 2024-10-26 - JQ - Commented this function as it also marks the email as read.
|
||||||
|
//imap_setflag_full($imap, $email_number, "\\Flagged");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete the temporary message file
|
// Delete the temporary message file
|
||||||
|
|||||||
Reference in New Issue
Block a user