Changing comments in bugmail

Gervase Markham gerv at mozilla.org
Sat Jul 16 09:34:03 UTC 2011


Hi everyone,

My Profanivore extension removes profanities from bug comments under
certain circumstances. However, it does it by hooking into the
bug_format_comment hook, and so has no effect on bugmail. Given that the
aim is to stop people being sworn at, this is not good.

The newchangedmail.txt.tmpl template calls comment.body_full(), which
calls into another template, which calls comment.body(). I guess, to be
most effective, I really want to pre-process the re

I've looked, but can't see a way of fixing that with an existing hook.
What would you all suggest as the best way to architect a fix for this
problem?

Gerv
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list