Opened 9 years ago

Last modified 4 years ago

#2609 new enhancement

Make trac send less mail

Reported by: mikeperry Owned by: erinn
Priority: Medium Milestone:
Component: Internal Services/Service - trac Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Trac is very noisy. Right now, it is sending everybody mail every time every field changes. This is insane. We should tell it that some field changes should only send mail to the ticket owner, if that.

It looks like the trac people tried to document this, but hit a fail wall: http://trac.edgewall.org/wiki/TracNotification#Customizingthee-mailcontent

I have no idea what the hell is going on in that file format. I don't even know where to start. Are those comments in there? What is up with that indentation? and the field names??

I think someone actually has to send a mail to the trac mailinglists to figure this out.. That, or perform a ton of experiments tweaking the format and seeing what changes, in an attempt to reverse engineer it... :/

Child Tickets

TicketTypeStatusOwnerSummary
#20694defectclosedqbidisable auto-CC

Change History (6)

comment:1 Changed 9 years ago by mikeperry

Sebastian pointed out that he doesn't want to see these field updates in the bug history, too. Maybe that is the secret to this madness. If there is a way to tell trac to stop logging any updates to certain fields anywhere, maybe it will also stop sending mail for those updates.

comment:2 Changed 9 years ago by mikeperry

Hrmm. Maybe ticket_show_details is the trac.ini config option for this? It is rather coarse-grained though: http://trac.edgewall.org/wiki/TracIni

Barring that, maybe the answer is a "workflow" plugin:
http://trac.edgewall.org/wiki/TracWorkflow
http://trac-hacks.org/wiki/AdvancedTicketWorkflowPlugin

comment:3 Changed 9 years ago by mikeperry

It looks like ticket_show_details toggles comments, also:
http://trac.edgewall.org/ticket/6519

This might be a helpful plugin, but doesn't seem to have per-field emailing filters:
http://trac-hacks.org/wiki/AnnouncerPlugin

We may need to ask on the trac lists for a suggestion..

comment:4 Changed 9 years ago by mikeperry

Here is an example patch someone did to notify them of new tickets only. They did not use the new 0.12 system or the AnnouncerPlugin. They were chastised for not doing so and their patch languishes in the ticket: http://trac.edgewall.org/ticket/6613

comment:5 Changed 4 years ago by qbi

Component: TracService - trac

Move all tickets from trac to "Service - trac" component.

comment:6 Changed 4 years ago by virgil

Severity: Normal

First impression is that this is easiest done via client-side mail-filters.

Note: See TracTickets for help on using tickets.