Where to set the parameter 'mail_remove_replies_after'

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

BrawlStarsLegend
Posts: 4
Joined: 22 Apr 2025, 10:20

Re: Where to set the parameter 'mail_remove_replies_after'

Post by BrawlStarsLegend »

Hi,
sure, here's what worked for me. Curiously, I was surprised it was just my language (german) missing in the regex. Adding it to the regex resolved the issue.

Code: Select all

'/^\s*(Von\s?:.+\s?(\[|<).+(\]|>))/mu', // "Von: NAME <EMAIL>" OR "Von : NAME <EMAIL>" OR "Von : NAME<EMAIL>"(With support whitespace before start and before <)
SL-Gundam
Posts: 781
Joined: 06 Jul 2011, 14:17

Re: Where to set the parameter 'mail_remove_replies_after'

Post by SL-Gundam »

Someone added a pull request with the exact same regex here: https://github.com/willdurand/EmailReplyParser/pull/93
Since there seems little maintenance happening on willdurand/EmailReplyParser i have forked it here: https://github.com/SL-Gundam/EmailReplyParser and included the commit: https://github.com/SL-Gundam/EmailReply ... b2f12c323f

It will be included in 0.13.0.

I also created this thread: viewtopic.php?t=40631&sid=8baad618a3aa7 ... eb735a9815
I hope it helps to improve the language variations available.
Post Reply