Added Cron task to update Certificate Expiry fields

This commit is contained in:
johnnyq
2023-09-11 15:21:16 -04:00
parent b77886cc7e
commit b80d730910
2 changed files with 84 additions and 6 deletions

View File

@@ -313,8 +313,7 @@ if (!$imap) {
exit("Could not connect to IMAP");
}
// Check for the ITFlow_Processed mailbox that we move messages to once processed
//$imap_folder = 'INBOX/ITFlow_Processed';
// Check for the ITFlow mailbox that we move messages to once processed
$imap_folder = 'ITFlow';
$list = imap_list($imap, "{{$imap_mailbox}}", "*");
if (array_search("{{$imap_mailbox}}$imap_folder", $list) === false) {
@@ -433,10 +432,6 @@ if ($emails) {
if ($email_processed) {
imap_mail_move($imap, $email, $imap_folder);
}
//else {
// echo "Failed to process email - flagging for manual review.";
// imap_setflag_full($imap, $email, "\\Flagged");
//}
}