Mod 5.0 now with CC!
Hi All,
As promised please see attached mod 5.0.
Apologies for the delay, but I found a major bug I had to deal with in my testing.
There are a LOT of changes in this verison (especially in class.ticket.php) as such the diff on class.ticket.php alone is too big for a single post.
I would suggest running your own diff against the original code base if you need. If anyone gets stuck let me know and I can probably output to a text file and upload.
I have tested this mod every way I can think of and hope I have ironed out most/all of the bugs. As usual if you find any please let me know.
IMPORTANT: Make sure to read the README for usage and requirements.
There is also a small db change required in this version for the CC ability;
ALTER TABLE `ost_ticket` ADD COLUMN `cc` VARCHAR(255) default null AFTER `email`;
Hawkhead99, I incorporated your case insensitive idea and space ability for #claim into this version but modified a bit from your original posted code.
I also left out the strtolower on the username, but feel free to add it back in if you need it.
Changelog:
4.1 to 5.0
- Added CC functionality
- Added #unsubscribe action
- Made #actions case insensitive
- Added function to strip #actions from being posted in message body
- Configured system emails regarding tickets to be sent from the department address rather than alert address
- Added missing reply separators
- Minor bug fixes and code clean up
Todo in later versions:
- Allow staff attachments to be forwarded to requestor with ticket update.
- Allow staff to create and use actions on tickets in one initial email
- Add additional actions as necessary/requested.
[mod5.zip](https://forum.osticket.com/assets/files/migrated/d/582e5633e2955c4024e76eef05e44c3.zip)