Commit Graph

111 Commits

Author SHA1 Message Date
johnnyq 5094453550 Define processed and unprocessed email count for logging 2024-10-26 13:48:54 -04:00
johnnyq 41f2177788 Ticket Email Parser Add Debugging after each run to calculate emails processed and unprocessed including the execution time of the script 2024-10-26 13:42:48 -04:00
johnnyq d3cca2e633 Fix Invalid var 2024-10-26 13:21:13 -04:00
johnnyq 07d89ad09d Re-add Functions after test 2024-10-26 13:14:56 -04:00
johnnyq 01db0ddc3c Do not use the autoloader to load php mime mail parser 2024-10-26 13:09:21 -04:00
johnnyq 46572afc77 Mail Parser: Use UIDs instead of Message Sequence Numbers, this could potentially fix the issue of repeating tickets 2024-10-26 13:06:53 -04:00
johnnyq 6c402942e4 Mail Parser: Better way to set important flag then remove seen flag 2024-10-26 12:48:41 -04:00
johnnyq 72eaf3d269 Email Ticket Parser: Fix Flagged Email from getting marked as read, use imap_store function to flag emails not processed as this function keeps the email as unread 2024-10-26 12:26:03 -04:00
johnnyq 061e912123 Tidy 2024-10-20 12:48:14 -04:00
johnnyq ab9ae71ac7 Do not resanitize subject after passed to the create/update ticket function as its sanitized before passing to the functon, this caused unessesary slashes in the subject line if sql escape chars were used 2024-10-19 15:56:26 -04:00
johnnyq 6cd5290f4c Migrate cron_ticket_email_parser.php back to using php-mime-mail-parser libraries and php extensions php imap and php Mailparse while still keeping the new functionality from the webklex php-imap version of this script. There were wayyy to many dependcies with WebKlex and ran into way too many problems. This delays OAAUTH2 until we can find a better solution 2024-10-18 17:29:45 -04:00
wrongecho 1c404b9cf1 Add custom event handler to be triggered by some actions affecting tickets/quotes/invoices/contacts 2024-10-02 11:26:13 +01:00
Craig Hodges da3a6d636e Changed regex to only exclude from postmaster or daemon. 2024-09-30 19:07:01 -05:00
Craig Hodges bd5621ce1e Sends new ticket notifications to unknown (client id = 0) including logic to not process e-mail bounce messages. Fixed ticket description missing from new ticket notifications to others ().Added e-mail From: display name () to beginning of ticket description. 2024-09-29 23:46:45 -05:00
wrongecho eb831b5ca1 Email parser - bugfix saving the original message 2024-09-21 16:59:38 +01:00
wrongecho c65db3431d Tidying 2024-09-14 23:43:54 +01:00
johnnyq d803895f08 Remove the HTML line breaks in error output as the console is text only 2024-08-19 16:33:19 -04:00
johnnyq 85f2e8c244 Fix Cron Mail Ticket Parser script: It will now check if the ITFlow folder is created and subscribed before moving the mail 2024-08-19 16:24:45 -04:00
wrongecho d80334a7cf Ticketing updates - guest view & resolved vs closed
- Swap autclose for resolved to allow temporarily re-opening resolved tickets for 72 hrs after closure
- Add guest view URL for tickets
2024-08-17 23:24:15 +01:00
wrongecho 90e95a76b7 Add anonymous email parsing
Add option to allow unknown/anonymous email parsing for unknown contacts/domains.
This will be disabled by default due to the potential for spam, but can be turned on in the settings if required.
2024-08-10 22:39:47 +01:00
wrongecho d6f30b83f8 Add anonymous email parsing
Add option to allow unknown/anonymous email parsing for unknown contacts/domains.
This will be disabled by default due to the potential for spam, but can be turned on in the settings if required.
2024-08-10 22:35:52 +01:00
johnnyq f133981b52 Remove the UTF7 to 8 Encoding as it broke Thunderbird email parsing, somehow Roundcube webmail was fine 2024-06-28 17:21:43 -04:00
johnnyq 6bdfe1b713 Add Function to convert message text from UTF7 to UTF8 possibly fix the Google Issue not sure, we need further testing 2024-06-28 13:52:50 -04:00
johnnyq c27f9fd6a9 Set Charset to UTF-8 to avoid encoding issues on some mail servers 2024-06-28 11:39:34 -04:00
johnnyq 97c2928830 Remove Duplicate Line of Code to connect to IMAP Server and find inbox 2024-06-28 11:25:58 -04:00
johnnyq f57cf5cb91 Fix Plain Text Emails not showing in ticket replies by converting plain text emails to HTML for displaying 2024-06-27 18:50:37 -04:00
johnnyq 95fd0344c0 Fixed ticket Email processing showing array() 2024-06-27 17:23:45 -04:00
johnnyq 1c618892cc Removed WebKlex PHP-IMAP Dependency in post as it was spewing errors for people running older version of php below 8.2 - note this is still required for Mail Parser to work 2024-06-27 01:10:00 -04:00
johnnyq 5b3c6f4272 Better Handling of HTML Reply ticket emails, reduce the spacing trim out extra spaces reduce the line height etc 2024-06-26 13:14:16 -04:00
johnnyq b0c5d43867 Remove the reliance on php-imap extension to test imap connection in setting. Also removed the check for php-imap in the mai, parser as we use fully rely on webklex 2024-06-25 15:48:56 -04:00
johnnyq 40866e34e2 Remove the function to check if php-mailparse is installed. Its not needed and was causing breaing issues and is an unessesary check 2024-06-25 15:28:01 -04:00
johnnyq ee5e6d157d Update Cron Ticket Email Parser script to take in account of multiple variations of the word inbox 2024-06-22 13:45:39 -04:00
johnnyq 779527cf6a Migrated away from PHP Mail Parser to the new WebKlex PHP IMAP Mail Parser this will open the way to support OAUTH2 for Mail servers such as Microsoft 365 and Google Workspaces 2024-06-12 15:39:52 -04:00
Marcus Hill 041cbe15fa Email to ticket parsing - Save the original email
When creating a new ticket, save the original email in a .eml format and attach it to the ticket.

This will be useful for situations when you want to reply to the original thread but don't have access to the inbox. We could add this to all received emails if there is interest?
2024-06-09 21:34:54 +01:00
johnnyq 888552724a Set Timezone in all places and it needs to be set in and sperated it into a seperate include 2024-04-17 12:53:11 -04:00
Marcus Hill 7df1d419fa Ticket Statuses from DB / use left join instead of a function, hard-code system statuses 2024-03-29 23:20:52 +00:00
Marcus Hill 667a93210c Ticket Statuses from DB 2024-03-29 11:22:32 +00:00
johnnyq 1f1197be50 Missing var 2024-03-21 16:16:32 -04:00
johnnyq 5266f126cb Set Timezone in the CRON files as well as the command line PHP doesn't always respect the system timezone 2024-03-21 14:55:54 -04:00
Marcus Hill b9431645d3 Ticket Statuses
Standardize on 5 consistent ticket states:-
- New (Red/Danger)
- Open (Blue/Primary)
- On Hold (Green/Success)
- Auto Close (Dark/black)
- Closed (Dark/black)

Update parts of the app where these have deviated from, as they have not been updated everywhere.
Other states may be configurable in future via custom fields.
2024-03-03 00:13:29 +00:00
johnnyq 91eff8f9b6 no need to SQL escape , in the emails, so removed the \, escaping in post invoice, ticket and ticket_email_parser 2024-01-20 18:13:47 -05:00
johnnyq d3aa2e7239 Only allow A-Za-z- for Ticket Prefix 2024-01-20 16:45:39 -05:00
johnnyq 31d6605647 Updated Closed Ticket Email as well 2024-01-20 15:15:49 -05:00
johnnyq 0a32415b38 Updated ticket mail parser to not escape the entire subject and body of sending emails as this is all done by vars instead 2024-01-20 15:11:07 -05:00
johnnyq a656340c8b Fix mis-spelling sanitize not santize 2024-01-19 19:37:34 -05:00
johnnyq 79175b9e70 Sanitize Ticket Prefix and From Name in Cron Ticket Email Parser 2024-01-19 19:18:26 -05:00
johnnyq d33d11acd2 Set lock file cront ticket email parser once again from 300 sec aka 5 mins to 180 secs aka 3 mins 2024-01-11 00:34:36 -05:00
johnnyq a38e62c412 Set lock file cront ticket email parser from 600 sec aka 10 mins to 300 secs aa 5 mins, update telemetry to include website 2024-01-11 00:32:31 -05:00
johnnyq c9e92cb3bb Cleaned up cron ticket parser to work better with the new mail queuer 2023-12-27 20:35:23 -05:00
johnnyq e8a53cbd6a Update new mail queue function to use the proper mail from name and mail from email 2023-12-21 01:37:21 -05:00