I have a fairly large trac install for a team of about 20. Our current practice is for everyone to see every ticket change. This helps communication and is also annoying. I realize that's a tough call, but that's not the current issue. We implement this with
smtp_always_cc = [email protected] in trac.ini. I just installed SensitiveTickets (and put it in pkgsrc-wip). It works, but with the above, everybody gets the super-secret ticket contents. What I'd like is a way to omit the cc for sensitive tickets, or change it to elite-subgroup-mailing-list@ instead. But the main notification.py function does the smtp_always_cc, and it's in ticket/notification.py that we have the sensitive field available. Even if ticket/notification.py handled always_cc, I don't see how to hook in SensitiveTickets to notification. For now, I'm inclined to hack something in to just not send mail at all if sensitive is set. An alternative is to set the CC field to my group and remove the always_cc, and then change the cc field for sensitive tickets. But this feels like it's pushing information down at the wrong abstraction level. Ideas/comments welcome on how I can do this better.
pgpyh2YSDmGOM.pgp
Description: PGP signature
