Mail review stage 8: Admin > Ignored Senders lists addresses and domains whose email the ticket mailbox sets aside with no ticket, reply, answer or Unprocessed Email entry, a domain taking its subdomains, each counting what it set aside and saving one that takes a contact's or client's email saying so; Ignore Sender in Unprocessed Email ignores the address or its domain and dismisses the others waiting, leaving contacts, client domains and public domains to an admin; Try an Email has the step; every queued email gets its own Message-ID and invoice and quote emails say what they are about, so a bounce marks the email it came back about as Bounced with the mail server's reason in a new Mail Queue tab, on the ticket reply for those it names and in the invoice or quote history, matched by address and subject when the report has no Message-ID; .gitignore leaves out uploads/mail_unprocessed and uploads/kb (database 4.3.5); 26.12.3 changelog

This commit is contained in:
johnnyq
2026-12-01 00:06:27 -05:00
parent 812c4ae9c2
commit d2d9732efb
31 changed files with 878 additions and 26 deletions

27
db.sql
View File

@@ -1751,6 +1751,26 @@ CREATE TABLE `domains` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_ignored_senders`
--
DROP TABLE IF EXISTS `email_ignored_senders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `email_ignored_senders` (
`ignored_sender_id` int(11) NOT NULL AUTO_INCREMENT,
`ignored_sender_match` varchar(255) NOT NULL,
`ignored_sender_note` varchar(255) NOT NULL DEFAULT '',
`ignored_sender_matches` int(11) NOT NULL DEFAULT 0,
`ignored_sender_matched_at` datetime DEFAULT NULL,
`ignored_sender_created_by` int(11) NOT NULL DEFAULT 0,
`ignored_sender_created_at` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`ignored_sender_id`),
UNIQUE KEY `ignored_sender_match` (`ignored_sender_match`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_queue`
--
@@ -1771,17 +1791,22 @@ CREATE TABLE `email_queue` (
`email_cal_str` text DEFAULT NULL,
`email_attachments` text DEFAULT NULL,
`email_headers` text DEFAULT NULL,
`email_message_id` varchar(255) DEFAULT NULL,
`email_about` varchar(50) DEFAULT NULL,
`email_queued_at` datetime NOT NULL DEFAULT current_timestamp(),
`email_failed_at` datetime DEFAULT NULL,
`email_error` varchar(500) DEFAULT NULL,
`email_attempts` tinyint(1) NOT NULL DEFAULT 0,
`email_sent_at` datetime DEFAULT NULL,
`email_bounced_at` datetime DEFAULT NULL,
`email_bounce` text DEFAULT NULL,
`email_ticket_reply_id` int(11) DEFAULT NULL,
`email_sensitive` tinyint(1) NOT NULL DEFAULT 0,
`email_bulk` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`email_id`),
KEY `email_status` (`email_status`,`email_queued_at`),
KEY `email_ticket_reply_id` (`email_ticket_reply_id`)
KEY `email_ticket_reply_id` (`email_ticket_reply_id`),
KEY `email_message_id` (`email_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;