mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Added Cron task to update Certificate Expiry fields
This commit is contained in:
@@ -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");
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user