Commit Graph

439 Commits

Author SHA1 Message Date
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
812c4ae9c2 Mail review stage 7d: the links in emails that open a ticket, invoice or quote without signing in stop working a set time after it is closed, paid or answered, 90 days to start and set in Admin > Settings > Security, with an expired page pointing to the client portal and Copy Client Link marked Expired; your own subject, heading, opening and closing text for the 13 emails about a ticket to clients, edited from Admin > Settings > Mail > Previews with square-bracket placeholders (database 4.3.4); 26.12.3 changelog 2026-11-30 21:36:58 -05:00
johnnyq
20b2d1883e Mail review stage 7c: emailed and texted replies wait a few seconds on the ticket page with Undo and Send now before they are posted, set in Admin > Settings > Tickets (database 4.3.3); ticket emails sent from another address than the mailbox ITFlow reads ask for replies at that mailbox with Reply-To, which can be turned off there; 26.12.3 changelog 2026-11-30 21:36:09 -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
b3ba5d7275 Mail review stage 7a: mail passwords, the OAuth client secret and the mail tokens are stored encrypted with a key from config.php's backup key, kept as typed only when there is no key, with a warning in Admin > Settings > Mail when they can't be read (database 4.3.1); pictures from other sites in client email are held back on a ticket, its quick look and its work order until Show pictures is clicked; the sign-in page no longer loads the mail server's password; 26.12.3 changelog 2026-11-30 21:34:43 -05:00
johnnyq
6cec0b8574 Mail review stage 6: bulk email leaves out contacts marked Email bounced or unsubscribed and says who was left out; each bulk email has an Unsubscribe link and List-Unsubscribe headers for one-click unsubscribe, the link asks first and offers Subscribe Again, unsubscribing covers every contact with the address, and agents and the client portal can change it (database 4.3.0); Send at uses the agent's time zone; bounces of bulk email come back to the ticket mailbox when the mail server and domains allow it; each email in a queue run goes out with its own envelope sender instead of the first one's; 26.12.3 changelog 2026-11-30 19:00:49 -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
039c1b11da Mail review stage 4: a failed email is retried only while its last try is within a day, so emails given up on under the old four tries stay Failed instead of being sent again and Failed shows their own count of tries; only a recipient address that doesn't exist is turned away for good and marks its contact Email bounced - relay refusals, full mailboxes and other policy refusals are tried again and two in a row stop the run with a notice to admins; a dismissed notice counts toward the hour; password links and invites go first; 26.12.3 changelog 2026-11-30 17:32:30 -05:00
johnnyq
17d2611b60 Mail review stage 3: email-to-ticket reads the receiving server's Authentication-Results and treats an email failing DMARC for a domain that asks for reject or quarantine, or SPF with nothing else passing, as from a stranger - a reply is an internal note that reopens nothing, a new email still makes a ticket with a note but copies nobody in and gets no answer, and it never makes a contact; someone who isn't a contact is answered without their own subject; 26.12.3 changelog 2026-11-30 16:50:51 -05:00
johnnyq
899f2259fe Mail review stage 2: the mail queue sends at most config_mail_send_per_minute a minute (database 4.2.9, Admin > Settings > Mail, Sending) over one connection with bulk email last, retries over about eight hours on a growing wait, stops for the minute when the server turns two away in a row, costs no email a try when the server can't be reached, doesn't retry an address turned away for good and marks its contact Email bounced, sends an email once when only someone copied in is turned away, tells admins once an hour at most instead of every agent per email, and gives each email a plain text part and ITFlow's own host name; 26.12.3 changelog 2026-11-30 16:50:04 -05:00
johnnyq
a9e5bc66db Mail review stage 1: people copied in on an email become a ticket's CCs only from the email that raises it or a reply to one of its emails, not a reply matched by the number in its subject alone; a subject too long for the mail queue is cut to fit and an email the queue turns away is logged rather than stopping the page or the mailbox; emailed files use the same list as attached ones, which gains heic, heif, tif, tiff, eml, xlsm, ppt, rtf and log, with an internal note naming any file left out; names with an apostrophe escaped once; 26.12.3 changelog 2026-11-30 16:49:01 -05:00
johnnyq
c98ea0e686 Ticket CCs in the API: ticket_ccs read, create and delete endpoints scoped through the ticket's client, adding one address or several with an optional email to each new CC, removing by id or by address at Modify as on the ticket page, closed tickets left as they are, ticket history and audit lines; tickets/create takes ticket_ccs before its first email goes out and tickets/read returns each ticket's CCs; 26.12.3 changelog 2026-11-30 14:12:08 -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
adbd8866c2 Fix identity provider gaps: a required provider is decided before any password or mail password is checked and the sign-in page says the same whatever was typed, account or not; required beats IMAP on the same domain; after five wrong passwords for an address in ten minutes its mail server isn't asked; Google signs in only Workspace accounts and Nextcloud has to say the address is verified; client secrets are sealed with the install key, with RMM's sealing moved to shared secretSeal and secretOpen; an IMAP server is tried when saved or turned on and Required waits for a first sign-in; joining, Forgot password, password links and welcome emails follow mail-password and required domains; Turn Off says who goes back to a password; 26.12.3 changelog entries 2026-11-30 01:36:20 -05:00
johnnyq
52e340b85c Print a ticket as a work order and an asset as a spec sheet: Print Work Order in the ticket menu, or the browser print, gives the letterhead, who and where with access notes, the job details, assets, description, client-visible fill-ins, tasks as boxes to tick, public replies oldest first and a sign-off with times, work done lines and signatures, never internal notes; the asset print button beside Copy Details gives its hardware, network, location and assignee, interfaces, devices in it, licenses, services and quick notes with a QR code that opens it, never credentials or license keys; both print black on white in either theme and the ticket menu now shows for every agent; 26.12.3 changelog entries 2026-11-29 22:36:50 -05:00
johnnyq
fffa5680db Add identity providers for agents and client contacts: Admin, Identity Providers under Integrations adds Microsoft 365, Google Workspace and Nextcloud (OIDC Identity Provider app) sign-in buttons and IMAP mail-password sign-in, each for agents, client contacts or both and for the email domains listed; no account is created by signing in; Microsoft, Google and Nextcloud stand in for ITFlow two-step sign-in while IMAP still asks for the code; a provider can be required, turning off password sign-in on its domains with passkeys and administrator passwords still working; credentials stay locked after a provider or mail password sign-in until the ITFlow password is typed; the client portal Microsoft Entra single sign-on moves to a Microsoft 365 provider keeping its redirect address; database 4.2.5 adds identity_providers and drops the old Entra settings; 26.12.3 changelog entries 2026-11-29 20:13:10 -05:00
johnnyq
85c151eec8 Document quick view reads like the document page: the page's typography, folder, template, Markdown, review and tags above what it says, what it is linked to as counts that open to their lists instead of every record listed, and Open Document, Edit to the edit page, Share and Export along the bottom; linkGroupsHtml compact mode takes how many links open their groups; the old document edit modal is gone; 26.12.3 changelog entries 2026-11-29 14:08:11 -05:00
johnnyq
f777bb212c Documents and articles outside the agent app read like the document page: the portal document and Help article pages, shared links and the public help center lay out what they say as on the agent document page, with a long one's Contents beside it in view as you scroll and marking the section being read, or above it on a phone; pictures open full size when clicked; a section picked from Contents stays marked, on the agent page too; 26.12.3 changelog entries 2026-11-29 13:28:40 -05:00
johnnyq
fcdb014786 Document and Knowledge Base article PDFs with the letterhead look: logo and company details on the first page, the name with the client, folder and last update, a running header on later pages, a footer with the company, Confidential or Knowledge Base, the date and page numbers, tables with lines, shaded code, checklist boxes, symbols the old font could not draw, and headings as bookmarks; WebP pictures now show in document PDFs and the client documentation PDF; 26.12.3 changelog entries 2026-11-29 13:13:36 -05:00
johnnyq
08f4c74253 Ticket pictures review fixes: Redact takes a picture selected on its own as well as text, a picture that can't be saved stays in the text instead of being lost and the Ticket Pictures job logs a warning and carries on past a ticket that fails, new tickets for several clients keep their pictures as files straight away, and deleting a client deletes its tickets with their attachments, pictures, tasks and history instead of leaving them behind; 26.12.3 changelog entries 2026-11-29 12:49:22 -05:00
johnnyq
e8c38c739e Ticket pictures kept as files: pictures pasted or dropped into a ticket, reply or note by agents, in the client portal or through the API, and the inline pictures of client emails are saved as the ticket's files instead of base64 inside the text, shown where they were put and left out of the ticket's file list; the portal, guest page, task approval page, emails and client exports show them from their own addresses; editing or redacting a picture away deletes it, and internal note or merged ticket pictures are copied when reused; a new Ticket Pictures cron job moves pictures already stored inside tickets into files a batch a minute; database 4.2.4 adds ticket_attachments.ticket_attachment_inline and the sweep's progress settings; 26.12.3 changelog entries 2026-11-29 02:28:27 -05:00
johnnyq
6cdbe60747 Document page modernized: headings in proportion to the text with styled tables, code and quotes; folder, template, Markdown and the review under the name, the review's menu with Mark Reviewed and how often; Edit, Share and an Export menu for PDF, Markdown and Print, Template moved to the more menu; Contents marks the section being read; Linked, Versions and History as tabs of one card, Linked as counts that open to their lists; linkGroupsHtml compact mode; 26.12.3 changelog entries 2026-11-29 01:06:42 -05:00
johnnyq
8b4fa5a1a0 Documents in Markdown: a document can be written in Markdown with Write and Preview or in the rich text editor and switched either way, pictures pasted or dropped into the Markdown are kept as files, New Document starts in the way last used, Import Markdown Files beside Upload makes a document from each .md file, a Markdown button beside PDF downloads a document as a .md file, and Markdown pasted into a document's rich text editor goes in as formatting; versions, restore, copy and the API carry the Markdown, and the API's document create and update no longer escape values twice; database 4.2.3 adds documents.document_markdown and document_versions.document_version_markdown, and league/commonmark 2.10 and league/html-to-markdown 5.2 are added to libs/vendor through composer; 26.12.3 changelog entries 2026-11-29 00:48:15 -05:00
johnnyq
a84c3eca79 Passkeys: bundle report-uri/passkeys-php 2.0.1 in libs/webauthn in place of lbuchs/WebAuthn 2.2.0, Report URI's maintained fork with the fixes from their penetration test - only attestation none is accepted, cross-origin requests and Token Binding are refused, the backup flags and credential id length are checked and the RP ID is matched on a dot boundary; functions/passkey.php uses the new namespace, constructor and processCreate arguments, and the 26.12.3 changelog names the library 2026-11-28 23:55:14 -05:00
johnnyq
d9c1c752bd Passkeys: agents and client portal contacts can add a passkey with their password and sign in with it instead of their email and password, counting as two-step sign-in; a passkey that supports PRF also opens an agent's credential vault, otherwise credentials stay locked until they type their password once; admins can turn passkeys off in Security settings, and resetting MFA, turning off a contact's two-step sign-in, archiving an agent and the incident password reset remove them; database 4.2.2 adds user_passkeys, users.user_passkey_handle and settings.config_login_passkeys, and lbuchs/WebAuthn 2.2.0 is bundled in libs/webauthn 2026-11-28 23:31:17 -05:00
johnnyq
eed334aaa4 Credential vault: each agent's and API key's copy of the master key is sealed with AES-256-GCM under a 600,000 round PBKDF2-SHA256 key with its full 256 bits instead of a 64 bit key, old copies still read and moved to the new format at the next sign-in or API call, Admin > Backup lists the copies still in the old format with a button to retire them; sign-in no longer keeps the plain master key in the session between the password and two-step steps, which also fixes the vault being closed after a mistyped two-step code; 26.12.2 changelog entries 2026-11-27 14:17:06 -05:00
johnnyq
370b80a67b Logs: the log settings are a Settings tab under Admin > Logs beside Audit Logs, Sign-ins and App Logs instead of a page in the Settings menu and overview, still found by Find a setting and the top bar search as Logs > Settings; settings pages can be put under an admin menu entry with an under key; references to Admin > Settings > Logs updated; 26.12.2 changelog entries 2026-11-27 13:49:31 -05:00
johnnyq
778889c460 Credentials: the 2FA secret key is kept encrypted with the vault as the username and password are, from the form, CSV import, the API, demo data and logins sent through a share, and decrypted for the live code, the Edit window, share links, exports and the API; keys already saved are encrypted by the first agent page after the update, only when the session vault opens to a real master key, each checked and written only over the value read; database 4.2.1 widens credential_otp_secret to 500; 26.12.2 changelog Security entry 2026-11-27 13:36:28 -05:00
johnnyq
46f9a1681d Payment reminders: a client with more than one late invoice gets one reminder listing all they owe, on the days of the oldest late invoice, with the statement PDF and one text, instead of a reminder per invoice on its own dates; an invoice page shows when the shared reminder goes; the monthly statement is skipped for a client sent one that day; statements count an invoice marked Paid as settled; 26.12.2 changelog entries 2026-11-27 12:59:45 -05:00
johnnyq
bfc91512c9 Managed instances: report usage counts each day by the instance's own date (tickets opened, resolved and by email, agent replies, invoices, payments, agents and client portal sign-ins, email sent and failed, API calls by key name), shown in a Usage part of the History card and a sortable Last 30 days column on the list, with Managed By saying only counts are sent, database 4.2.0 2026-11-25 16:06:39 -05:00
johnnyq
95c44f6c73 Managed instances: a History card on each instance's page with its agents against the seat limit, clients, storage, uptime from gaps between check-ins with the latest listed, errors by day with their categories and backups as a strip of days, over 30 days, 90 days or a year, kept for good from one row per instance per day recorded at check-in, database 4.1.9 2026-11-25 01:49:59 -05:00
johnnyq
96edfde0e9 Managed instances: problems on an instance can open tickets on its client (Admin > Managed Instances > Problem Tickets, off by default) after lasting 10 minutes, the same problem again goes on its ticket, a cleared one resolves it unless someone has written on it, the Health card links each problem to its ticket, database 4.1.8 2026-11-25 01:24:39 -05:00
johnnyq
42df246266 Managed instances now report their agents and waiting invites (name, email, role, MFA, last sign-in) at check-in, the manager shows them in an Agents card on the instance page, and the Managed By privacy text lists what is sent 2026-11-25 01:09:52 -05:00
johnnyq
1b7a84de40 Show which categories a managed instance's errors were logged under: its check-in sends the count per category, never the error text, which can hold client addresses and subjects; the manager names them in the health line and lists them under Errors today, where the count and each category sign in as support straight to the instance's App Logs filtered to those errors, a page an older instance ignores so its count stays plain; Managed By's list of what it tells its manager says so 2026-11-25 01:00:50 -05:00
johnnyq
41b14c7718 Send a managed instance's check-in report as one base64url string once its manager says it reads that, so a web application firewall in front of the manager stops answering 403 to the cron command and error text in a plain report; the manager says so in its connect and check-in answers and decodes the report before storing it as before, with 400 for one it can't read and 413 for one too large, and older managers keep getting plain JSON 2026-11-25 00:31:08 -05:00
johnnyq
7ab5154c2a Open tickets for network platform devices that go offline, with one ticket for a site whose gateway is down and for a Site Manager console that is offline, resolved when they are back 2026-11-23 01:05:26 -05:00
johnnyq
52390ca6a4 Show where each asset plugs in from network platforms, with the switch port or access point on the asset and what is plugged into each UniFi switch and access point, with database 4.1.7 2026-11-23 00:58:25 -05:00
johnnyq
47deaba513 Bring network platform sites' networks and VLANs into their clients' networks, matched by subnet and kept up detail by detail, with a platform card on the network page, with database 4.1.6 2026-11-23 00:57:43 -05:00
johnnyq
3171cb367d Add Network Platforms with UniFi device sync from a self-hosted controller, a UniFi console API key or Site Manager, matching assets by MAC address, with database 4.1.5 2026-11-23 00:56:56 -05:00
johnnyq
35cc39af87 Add screen pops: calls on an agent's desk phone pop up on agent pages with the contact, client, open tickets and New Ticket, count talk time while answered and offer Add to Ticket once the call record is in, with My desk phone in Preferences 2026-11-22 21:59:02 -05:00
johnnyq
5cedf3a491 Have Yealink and Polycom desk phones report themselves to ITFlow and become Phone assets of their domain client, matched by MAC address and kept up to date unless changed in ITFlow, with a phone system card on the asset and a Phones count on the Domains page 2026-11-22 21:57:42 -05:00
johnnyq
388f083a2b Add phone system integration with FusionPBX: Admin Phone Systems with setup lines for mod_xml_cdr and mod_cidlookup, domains linked to clients with suggestions, a Calls page per client and contact with calls matched to contacts, Add to Ticket with talk time as time worked, and caller ID names from ITFlow on desk phones 2026-11-22 21:56:35 -05:00
johnnyq
7705288817 Racks: an asset in a holder links to the holder from its slot on its page and quick look, so a server node links to its chassis, and a holder asset has a Devices in it card listing what is in each slot 2026-11-22 15:02:37 -05:00