clonemeagain / plugin-fwd-rewriter

An osTicket plugin to rewrite incoming emails
GNU General Public License v2.0
9 stars 0 forks source link
osticket plugin rewrite

osTicket - Ticket Rewriter Plugin

Enables rewriting of email messages before a new ticket is created.

To install

To configure

Visit the Admin-panel, select Manage => Plugins, choose the Ticket Rewriter plugin

Caveats:

Admin Options

Email Forwarding rewriter configuration:

Ensures that the original sender of a message is preserved in the ticket metadata, and allows replies to go back to them.

I suggest at least your "domain name", otherwise the forwarding detector will ignore all forwarded mail.

To start, you should probably enable logging. You can disable when you're done testing. (While code is prerelease, DEBUG has been left on, so you can see many log entries in your webserver logs, simply change that to FALSE in class.RewriterPlugin.php to stop them).

Delete Attachments:

Drupal Contact Parser

If you use Drupal on any external websites, and don't use an API to talk to osTickets (ie, the Contact form simply emails your ticket system), you can use the Drupal Contact Parser to rewrite those inbound emails back into the original senders, so tickets are as if they were created by the original sender.

Extra Power Admin Settings

Some dangerous settings have been added, allowing the admin to define find & replace patterns in both subjects, emails and message bodies for incoming emails. The regex is particularly flexible.. includes $1 backref's for matched groups etc.

Some interesting use-cases would be good, if you've found a use for it, submit a pull request for the readme to add them here:

Email Replacements (case insensitive, applies to email address itself)

Text Replacements (case insensitive, applies to subject and body only)

Regex Text Replacements (validated raw php regex, applies to everything we can, including mail headers)