Commit Graph

71 Commits

Author SHA1 Message Date
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
o-psi 98f731b4d4 Remove any "Send Single Email" declarations except in mail queue.
All emails go through the mail queue, using the addToMailQueue() function.
2023-12-19 23:02:05 +00:00
o-psi 70a9120147 Add notification for ticket replies 2023-12-19 22:39:25 +00:00
o-psi 8b4beacf0e Update MailQueue to use function 2023-12-19 22:36:51 +00:00
Marcus Hill 41cfd8d27b Scheduled tickets
- Notify agent DL when scheduled tickets are raised (if configured)

- Bugfix: Ticket numbering if two or more scheduled tickets are raised in the same script execution
- Bugfix: Email processing if a contact replied to a scheduled ticket email (still showing original #--itflow# line rather than ##- Please type your reply above this line -##)
2023-11-18 11:53:24 +00:00
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