Commit Graph

16 Commits

Author SHA1 Message Date
johnnyq
2ad57e2865 Contact alternate email (DB 4.4.1): one more address per contact in the contact window under Email, shown on their page, quick look and the Reach column, searched by the contacts, clients, tickets and global searches, exported and imported as Alternate Email and in the API as contact_email_alt, and recognized on incoming email as theirs - a new ticket as them at their client even with unknown senders off, and their reply by ticket number, conversation or subject - with the ticket's from line showing the address it came from while everything ITFlow sends still goes to their Email and neither address is copied in; the duplicate warning, Try an Email, Unprocessed Email and the ignored sender and routing rule warnings count it too, and the same-as-Email warning shows while typing (contactEmailSql(), contactHasEmail(), contactEmailMatchSql()); 26.12.4 changelog 2026-12-02 13:36:49 -05:00
johnnyq
a28838e52d One decision for where an email goes: ticketMailDecide() in functions/ticket_mail_decide.php runs the thread, ticket number, forwarding agent, routing rule, contact and domain, out-of-office, similar subject, contact, routed client, domain and unknown sender steps once and returns the decision with its steps, the email parser carries it out and Try an Email shows it so the two can no longer disagree, a CC whose address has an apostrophe is found again on a same-subject reply, an out-of-office is checked after the ticket number in Try an Email as the mailbox does, and an out-of-office that isn't set aside is left in the inbox; 26.12.4 changelog 2026-12-02 12:34:31 -05:00
johnnyq
e27c38d6a7 Email routing rules: Admin > Email Routing sends the new tickets by email from an address or a domain, optionally only those with given words in the subject, to a client and contact with a category, priority, assigned agent and ticket template, the most exact rule winning and a rule deciding the client over the sender's own contact or domain, taking email even with unknown senders off, answering and copying in the sender only when they are the ticket's contact, telling the assigned agent, skipping what has been archived, and warning on save about other clients' contacts or domains and ignored senders, while replies, ignored senders and out-of-office replies are handled as before; Try an Email shows the rule (DB 4.3.9, functions/mail_route.php, admin/email_routing_rules.php); 26.12.4 changelog 2026-12-02 11:44:50 -05:00
johnnyq
94cc5b1197 Forwarded client emails: an email an agent forwards to the ticket mailbox is read from its forwarded part (Gmail, Outlook desktop and web, Apple Mail, Thunderbird, common European languages, or attached as an email) and becomes a ticket for the client whose email it is - their contact, a new contact at their domain, or no client for anyone else even with unknown senders off, who is then not answered or copied in - with what the agent wrote above it as their internal note and a history line saying who forwarded it, never a reply on a similar-subject ticket but linked as related, while ticket numbers, replies, colleagues' emails and forged ones are taken as before; Try an Email says so (functions/ticket_mail_forward.php); 26.12.4 changelog 2026-12-02 01:45:44 -05:00
johnnyq
89645add5e Shared support mailbox: with From unknown senders too off the email parser moves out of the inbox only what is ITFlow's, leaving flagged in the inbox a bounce or delay notice that is not about a ticket, an email ITFlow sent or a contact, a stranger's out-of-office reply that answers no email ITFlow sent, and email from the mailbox's own address that ITFlow did not send, which is still never a ticket; ITFlow's own email is told by its Message-ID, the mail queue, a ticket number in the subject or a ticket email it answers; nothing changes with unknown senders on; Try an Email says what is left; 26.12.3 changelog 2026-12-01 11:52:00 -05:00
johnnyq
0da838103e Mail review stage 8 follow-up: a bounce naming an address the email was not sent to (mail sent on to another mailbox) or naming nobody is the recipient's on an email to one person, saying where it came back from, and on an email to several marks nobody on it, keeps the named address and has the reply say a bounce came back and from where; an invoice's or quote's history gets one line for a bounce, not one for each report; Ignored Senders takes a domain with an international ending (xn--); mailIgnoreAdd returns the new id; Try an Email names the From unknown senders too switch and says to clear the flag on an email left in the inbox; 26.12.3 changelog 2026-12-01 01:33:46 -05:00
johnnyq
836ac34a25 Leave email from someone who isn't a contact at a domain no client has (unknown senders off), or whose sender checks failed, in the inbox flagged as before 7b so a mailbox shared with other email keeps it, with Unprocessed Email keeping only email that was taken and failed; drop Ignore Sender from Unprocessed Email; Try an Email, the Tickets setting help and the 26.12.3 changelog say so 2026-12-01 00:52:56 -05:00
johnnyq
d2d9732efb 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 2026-12-01 00:06:27 -05:00
johnnyq
8f68de0f65 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 2026-11-30 21:35:30 -05:00
johnnyq
e57faeeb3a Mail review stage 5: a website form's email is answered at the visitor in its Reply-To, who becomes the ticket's CC under the client whose domain the site is on or none, and Reply-To at the sender's own domain is taken as the sender; someone who isn't a contact is answered without their subject or the ticket's link, and a forged ticket or one with no contact no longer emails the client's colleagues; a client's reply on a ticket nobody is assigned goes to the new-ticket address or the admins, and bounce and closed-ticket notices go to the assigned agent or the admins instead of every agent; an email with no From is from nobody rather than itflow-guest@example.com; a forged email no longer clears Email bounced; an address that is a contact at two clients goes to the one whose domain it is or where they last raised a ticket, with a note; an agent's emailed reply that went to the client is their public reply and the first response; 26.12.3 changelog 2026-11-30 18:22:59 -05:00
johnnyq
b8db50adfa Rename watchers to CCs in the database and code: database 4.2.8 renames ticket_watchers to ticket_ccs with its columns and index, functions, settings, form and post names, the Add CC modal file, JavaScript IDs, the email preview key and the To line group follow; the ticket email parser waits while a database update is pending instead of flagging email it cannot take; 26.12.3 changelog updated 2026-11-30 14:01:11 -05:00
johnnyq
ee3f31ff05 Call watchers CCs everywhere they show: the ticket's Linked card, Add CC, New Ticket's CC field, the reply To line, email footnotes and the copied-in email, ticket history, audit log, messages, Try an Email, settings, mail previews, Dispatch and the resolve and schedule windows; the code, the ticket_watchers table and the API keep their names for now; 26.12.3 changelog reworded 2026-11-30 13:51:33 -05:00
johnnyq
b22ed53ab3 Clean up incoming ticket mail: a bounce is read first whatever the settings, marking the contacts it failed for and noting the ticket the email was about, found by the bounced email's Message-ID or subject, and never makes a ticket; only a mail server's own address or a bounce report counts, so an address with mta in it is a person; out-of-office replies are a note on the ticket they answer without reopening it or a notice; mail from systems and lists still makes tickets but is never answered; ITFlow's automatic emails carry Auto-Submitted and X-Auto-Response-Suppress, at most five an hour to one address; a watcher's or guest's reply is the client's reply, named by database 4.2.7, reopening the ticket and passed on; a near-same subject is a reply only from the ticket's contact or a watcher and otherwise a new ticket linked as related; a reply to a closed ticket is kept on it as a note and only contacts and watchers are told it is closed; Try an Email follows; 26.12.3 changelog entries 2026-11-30 13:34:24 -05:00
johnnyq
42ea7e58a5 Keep a ticket's emails in one conversation: every client email about a ticket has the subject [TCK-123] and its subject and carries Message-ID, In-Reply-To and References, kept per ticket in ticket_mail_threads, and the email parser finds a reply's ticket by those headers first, then by the number in brackets with the prefix that ticket was given; one email goes to the contact with the watchers and colleagues copied in, switchable in Admin, Settings, Tickets; a client's reply by email, text or portal is passed on to the people following the ticket who weren't on it, by email only when it answers one of the ticket's emails; others in To and Cc on a client's or watcher's email become watchers, never your own domain or agents; the same email twice makes one ticket and a merged ticket's replies go to the ticket it went into; database 4.2.6; 26.12.3 changelog entries 2026-11-30 13:08:24 -05:00
johnnyq
b208ed0069 Stop ITFlow's own mail looping back: its own addresses are never made watchers or emailed about a ticket, mail from them is set aside in the ITFlow folder without a ticket, and Email new tickets to can't be the mailbox ITFlow reads; take email someone opened in the hour before the parser got to it; a domain whose mail server can't be found is retried like any failed email and one taking mail at its own address is accepted; 26.12.3 changelog entries 2026-11-30 12:37:03 -05:00
johnnyq
61488305cb Admin: invite several agents at once with one role, try an email against the support mailbox to see what it would become without sending anything, and a weekly summary email to the owners with the week beside the week before and what needs a look (db 4.0.7) 2026-11-19 21:05:51 -05:00