Mail review stage 7b: email the ticket mailbox couldn't take is kept in Tickets > Unprocessed Email and moved to the ITFlow folder instead of left flagged in the inbox (database 4.3.2), where agents view it, make a ticket at a client for a contact or a new contact, add it to a ticket with the sender as a CC if wanted, try it again, dismiss it or download it, the email parser making the ticket or reply on its next run; the tickets list says how many are waiting; sorted ones are kept 30 days and unsorted 90; 26.12.3 changelog

This commit is contained in:
johnnyq
2026-11-30 21:35:30 -05:00
parent b3ba5d7275
commit 8f68de0f65
20 changed files with 1253 additions and 24 deletions

33
db.sql
View File

@@ -1785,6 +1785,39 @@ CREATE TABLE `email_queue` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_unprocessed`
--
DROP TABLE IF EXISTS `email_unprocessed`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `email_unprocessed` (
`email_unprocessed_id` int(11) NOT NULL AUTO_INCREMENT,
`email_unprocessed_message_id` varchar(255) NOT NULL DEFAULT '',
`email_unprocessed_from_email` varchar(255) NOT NULL DEFAULT '',
`email_unprocessed_from_name` varchar(255) NOT NULL DEFAULT '',
`email_unprocessed_subject` varchar(500) NOT NULL DEFAULT '',
`email_unprocessed_preview` varchar(500) NOT NULL DEFAULT '',
`email_unprocessed_received_at` datetime DEFAULT NULL,
`email_unprocessed_reason` varchar(500) NOT NULL DEFAULT '',
`email_unprocessed_file` varchar(255) NOT NULL DEFAULT '',
`email_unprocessed_action` varchar(20) NOT NULL DEFAULT '',
`email_unprocessed_action_client_id` int(11) NOT NULL DEFAULT 0,
`email_unprocessed_action_contact_id` int(11) NOT NULL DEFAULT 0,
`email_unprocessed_action_ticket_id` int(11) NOT NULL DEFAULT 0,
`email_unprocessed_action_add` tinyint(1) NOT NULL DEFAULT 0,
`email_unprocessed_action_by` int(11) NOT NULL DEFAULT 0,
`email_unprocessed_action_at` datetime DEFAULT NULL,
`email_unprocessed_done_at` datetime DEFAULT NULL,
`email_unprocessed_ticket_id` int(11) NOT NULL DEFAULT 0,
`email_unprocessed_created_at` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`email_unprocessed_id`),
KEY `email_unprocessed_done_at` (`email_unprocessed_done_at`,`email_unprocessed_action`),
KEY `email_unprocessed_message_id` (`email_unprocessed_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `expense_import_rules`
--