Skip to content

Conversation

@brettcs
Copy link

@brettcs brettcs commented Apr 6, 2018

This branch has a series of changes to update the code to work on RT 4.4. Some changes seem like necessary bugfixes to the original code; then there's one commit with the big API changes; then a couple more aesthetic changes in between. I've done my best to organize commits to make it clear what's what. I hope all the changes are helpful but we could cut some of the last set out of the PR if you prefer.

brettcs added 7 commits April 6, 2018 10:12
Update the sub name to reflect that fact, and update the caller to accept an
array.  (I don't know how it was working previously.)
Log more information from MessageIdToTickets.
Don't log the queue, since we never use it (and the HASH output isn't really
helpful).
This fixes a warning about use of undefined $_.
Much of this is just rote work to follow the new Mail Plugin API.  The
biggest change is that we hook in much earlier in the process, so we don't
have a proper ticket object to work on.  Instead we work directly on the
MIME Message object, including modifying the subject to tie the message to
a ticket.
There are pros and cons to both approaches but overall I would rather let a
human resolve these cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant