Commit Graph

57 Commits

Author SHA1 Message Date
Marcus Hill 0de99fda61 Mail parse - Handle blank/unexpected emails better 2023-11-09 22:18:57 +00:00
johnnyq 5c0ab72d69 Moved creating lock file after all other checks have passed to prevent locking if a certian check has not passed, turned off imap extend log as it could cause mysql errors also remove lock before exiting if cannnot connect to imap 2023-11-01 13:59:35 -04:00
johnnyq 3c8a026b7c Fixed Cron mail queue and email parser missing ' 2023-10-27 13:05:29 -04:00
johnnyq f9d3d3b2f9 Also Added logging to cron mail queue and mail parser when attempting to execute when its already executing by checking to see if the lock file is present 2023-10-25 18:05:19 -04:00
johnnyq c30e0f7768 Remove Lock files older than 10 Mins aka 600 Secs and log it for Cron Email Parser and Cron Mail Queue 2023-10-25 17:57:35 -04:00
Marcus Hill 31be8034e7 Revert different change covered in separate PR 2023-10-21 15:27:21 +01:00
Marcus Hill 7aadad3597 Expand range of allowed file extensions for email to ticket attachments 2023-10-21 14:40:14 +01:00
o-psi 53c11edc8c Update constructs to not have parenthesis. 2023-10-20 15:25:52 -05:00
Marcus Hill 4ac7841882 Email parsing for all domains registered under a client
- Add support for email parsing/contact creation for all domains registered under a client in the domains module, rather than just the client main website.

- Additionally fix domain_created_at bug and move the new ticket auto-reply message to the email queue instead

Future work: Make ticket parsing work with HTML emails (HTML emails break agent notifs)
2023-10-07 15:51:58 +01:00
Marcus Hill 526503d786 Agent new ticket notifs - add more spacing 2023-09-30 23:21:30 +01:00
johnnyq ca82a567d7 When client replies to a ticket via email update the status to Client-Replied 2023-09-19 18:29:17 -04:00
johnnyq 5d74226762 Fix unlinking lock file 2023-09-19 11:40:11 -04:00
johnnyq 946f8d0b97 Initial start of Maintenance under settings 2023-09-19 11:39:11 -04:00
johnnyq 080a79c59d Fix Replicating email opps 2023-09-19 11:10:51 -04:00
johnnyq 65cf8519d0 Added file locks on the mail queue and ticket parse cron jobs to prevent over runs, reverted last commit back to not marking all messages in ticket parse as read 2023-09-19 10:51:52 -04:00
johnnyq d56c8a91d1 Fix a possible race condition with duplicating tickets: Revert marking Email body peeking and flag all other emails not matching the ticket parser 2023-09-19 02:13:46 -04:00
johnnyq f2a3c54ed7 Do not change ticket status upon ticket reply, just update the ticket update timestamp 2023-09-18 18:51:54 -04:00
johnnyq 8fa76daf3a Update cron ticket parser to set new ticket status to Pending-Assignment instead of Open 2023-09-17 18:42:17 -04:00
johnnyq 6bd2919c18 Do not mark unprocessed email as read 2023-09-15 17:02:07 -04:00
johnnyq b80d730910 Added Cron task to update Certificate Expiry fields 2023-09-11 15:21:16 -04:00
johnnyq 277c5bad68 Also subscribe the mail folder so it shows up under mail folders 2023-09-10 22:06:22 -04:00
johnnyq f4963cbc45 Change folder name for ITFlow Proessed mail to ITFlow and put in the root instead of INBOX Folder. Also dont flag all other mail 2023-09-10 21:41:35 -04:00
johnnyq 97521d1df7 added more actionable notifications 2023-09-05 16:44:31 -04:00
Marcus Hill b7108436fd Add notify by email function when a new ticket is created 2023-08-27 12:24:15 +01:00
johnnyq b6dc255f8d FEATURE - Ticket Watchers - Initial Commit for DB Structure for ticker wathers 2023-08-01 13:03:58 -04:00
Haymaker aa984b92ef add credentials for imap 2023-07-04 18:52:00 -04:00
Marcus Hill 0240d316e7 Ticket parser: Better handle clients replying to closed tickets 2023-06-24 22:10:06 +01:00
wrongecho 9fd57cef43
Update cron_ticket_email_parser.php
Codesmell
2023-05-20 20:20:05 +01:00
wrongecho eb2c42f4a3
Update cron_ticket_email_parser.php
Remove attachments to-do item as completed.
2023-05-20 19:47:33 +01:00
johnnyq 11eb104383 Fix carriage return and new lines in reply emails see https://forum.itflow.org/d/169-carriage-return-and-line-feeds-showing-in-ticket-email 2023-05-16 11:07:24 -04:00
johnnyq 37fb696e63 Replace the remaining php files with nullable_htmlentites() 2023-05-11 18:27:48 -04:00
johnnyq 072c2f9e14 Fix cron stating cron key is always invalid 2023-05-02 13:45:23 -04:00
johnnyq 3f2f663b7b Check to see if args is set 2023-05-01 16:56:29 -04:00
johnnyq f7ee489293 BREAKING CRON CHANGES: must generate a cron key before using cron. Cron will need updated like so php /full/path/to/cron.php [KEY] and same with cron_ticket_parse.php 2023-05-01 16:51:20 -04:00
johnnyq 8cf1bd8911 Set Working directory of cron parser upon initializtion which fixes relative path issue when adding attachments to tickets 2023-04-30 13:28:00 -04:00
Marcus Hill a3d8f5ab48 Ticket attachments (email)
Email to ticket parser: Add support for email attachments
2023-04-30 10:52:15 +01:00
Marcus Hill 8247362891 Update documentation links 2023-04-29 09:52:53 +01:00
johnnyq 53092fe9ca Updated Ticket email / replies with ##- Please type your reply above this line -## 2023-04-17 16:15:22 -04:00
johnnyq d27c83ab66 Fix Mail Parser, inserting \r \n 2023-04-11 11:23:19 -04:00
johnnyq 3f028e8560 Fix Broken API due to incorrect named function https://forum.itflow.org/d/119-api-broken 2023-03-14 18:59:43 -04:00
johnnyq 6a660a5429 Removed Ticket created at as this is done automatically at the DB level 2023-03-12 11:26:47 -04:00
johnnyq 48fe49cf77 BREAKING CHANGES - MAKE FULL BACKUP BEFORE PROCEEDING - Requires Manual Intervention on files see Forum Post Make sure you run the Database update directly after update. This Removes Multi-Company Functionality. Fixes issues with Reponsive tables and bunch of other UI and small Fixes 2023-03-11 16:16:46 -05:00
johnnyq 426b07a093 Fix issue with ulauts in the subject field of tickets opened using email parser. Removed htmlentities on subject replaced with the new inputSanitize See https://forum.itflow.org/d/111-umlauts-are-replaced-in-the-subjects 2023-03-03 12:14:29 -05:00
johnnyq e42095a85e Tidy code 2023-03-01 16:26:41 -05:00
Marcus Hill 5bb4296f14 Adjust core files to 4 spaces 2023-02-12 14:40:10 +00:00
Marcus Hill 615f317d2b General cleanup/formatting 2023-02-09 12:29:12 +00:00
Marcus Hill 6c0e7c5b26 - Use PHP Mime Mail Parser library for better parsing of email message encoding (requires php-mailparse extension)
- Move reply code to own function
- Replies from other registered client contacts are nicely shown (and visible in portal) even if they aren't the ticket contact
- Fixed bug where ticket numbers didn't increase when creating 2 tickets in the same loop
2023-01-31 17:43:53 +00:00
Marcus Hill b1a1b8d675 - Add functionality for unregistered contacts to auto-register and raise tickets based on the configured client domain (client > website)
- Change logic for Processed emails - now moved to a folder under the inbox called ITFlow_Processed
- Add flagging for unprocessed emails (for closed tickets and contacts that couldn't be registered)
- General housekeeping
2023-01-31 00:23:31 +00:00
wrongecho b19c7a6f49
Merge branch 'master' into code-tidy 2023-01-23 19:21:43 +00:00
Marcus Hill 2c7a704b6b Remove redundant (default) arguments 2023-01-21 17:26:06 +00:00