Open uschwarz opened 3 years ago
Hi @uschwarz,
Thank you for this idea. Since the 6.0.x branch is marked as a long term branch I'd like to keep this for the upcoming feature branch. And of course, this setting should be a configuration.
Implementing this for 6.0 as an add-on might be possible by overloading the TicketSubjectClean() of Ticket.pm, but we have our hands full. Maybe someone in the community like to volunteer for this?
I submitted a PR: Centuran/OTRS-Community-Edition#20 that is applicable to Znuny & OTOBO. Should I submit it also here?
Environment
Expected behaviour
When cleaning subjects (i.e., removing all errant Re:, Fwd:, etc. before replying), Outlook's non-standard prefixes like AW:, WG: should be removed as well, i.e. a reply to a message with subject "AW: [Ticket#...] Re: AW: Re: test" should be "Re: [Ticket#] test".
Actual behaviour
Only the prefixes that Znuny would use itself, i.e. as configured in Ticket::SubjectRe and Ticket::SubjectFwd are removed, leaving all others behind. In above example, the reply would be something like "Re: [Ticket#] AW: AW: test" or "AW: [Ticket#] Re: Re: test"
How to reproduce
Steps to reproduce the behavior:
Additional information
I've tried a local patch: in Kernel/System/Ticket.pm, function
TicketSubjectClean
, I've changed to:going on a list from https://en.wikipedia.org/wiki/List_of_email_subject_abbreviations#Abbreviations_in_other_languages (though I couldn't be bothered to include and test the more UTF8y prefixes). I don't have enough Znuny-fu to figure out if this could be put into an extension. Maybe it should be user-configurable? The hard-coded values above are just a "works-for-me".