Commit Graph

125 Commits

Author SHA1 Message Date
johnnyq
aa87a11f12 Removed setup from the cron script wording 2025-01-29 15:59:21 -05:00
johnnyq
34b94af965 Copied the cron scripts from /script dir back to / and updated all require pathes 2025-01-29 12:32:45 -05:00
johnnyq
d5a03d3afc remove cron key from the code and remove old cron script and setup and update cli scripts as they now reside in scripts directory 2025-01-25 21:44:46 -05:00
johnnyq
5f76a7989b Move portal to client and rename and reorganize some client portal files 2025-01-23 17:12:11 -05:00
johnnyq
2c51289d75 Remove mysqli connection vars when passing mail data to addToMailQueue Function 2025-01-22 20:56:24 -05:00
wrongecho
68cfa12f1e Anonymous/Guest tickets - Add the anon email as a watcher 2024-12-14 17:31:06 +00:00
johnnyq
32d5e333c6 Renamed error_logs to app_logs, created app logs list view and renamed function logError to logApp, updated some of the log functions in cron and ticket mail parser to use the new appLog 2024-12-10 22:06:35 -05:00
johnnyq
20a24b6ec6 Fix PHP error on login check if Array last_visited is set 2024-11-16 16:33:23 -05:00
johnnyq
95ec0b2979 UI Update Setup: Move locale settings to its own screen 2024-11-15 15:28:20 -05:00
johnnyq
278ba079c3 Updated cron mail queue and cron email ticket parser to use new logAction and tidy up code 2024-11-15 13:40:04 -05:00
johnnyq
01c9e8604f Updated the cron php script to use app notify removed the _esc from ids in cron ticket email parser as ids are always escaped as ints 2024-11-07 12:30:07 -05:00
johnnyq
d35880e658 Disabled logging execution time of the mail parser 2024-10-30 21:04:16 -04:00
johnnyq
0ee5828bf3 Fix contact creation when emailing into the ticket parser with domain matching a client 2024-10-30 19:54:47 -04:00
johnnyq
ab3d915bdc Mail Ticket Parser Fix: Allow Unencrypted IMAP connections 2024-10-29 13:36:30 -04:00
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