#1359 closed enhancement (duplicate)
Add ticket change email headers to allow more intelligent filtering of ticket notification emails
Reported by: | Owned by: | Emmanuel Blot | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | notification | Version: | 0.8.1 |
Severity: | normal | Keywords: | email headers needinfo |
Cc: | chris@…, jan@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Basically, Trac sends (if configured properly) emails to the users each time a ticket is modified. In my case, I wanted to filter the tickets a bit, to identify tikets being closed or assigned to me.
Unfortunately, if your mail goes to an IMAP server without server filters, most email clients can't filter on the contents of the body, where the specific field changes are enumerated. Plus that would be, well, ugly.
This change adds additional X-Trac email headers each time a ticket is changed.
These headers are of the format:
X-Trac-Ticket-Change-<field>
with the new value of the field as the header value.
This allows for easy client side filtering, nd handles the case when multiple changes are made in one submission (you get multiple headers in the email, 1 per field)
Thanks for watching!
Attachments (1)
Change History (13)
by , 20 years ago
Attachment: | trac.patch added |
---|
comment:1 by , 20 years ago
Summary: | Add ticket change email headers to allow more intelligent filtering of tiket notification emails → Add ticket change email headers to allow more intelligent filtering of ticket notification emails |
---|
comment:2 by , 20 years ago
Cc: | added |
---|
comment:3 by , 18 years ago
Component: | general → notification |
---|---|
Milestone: | → 0.12 |
Owner: | changed from | to
Consider for 0.12.
comment:4 by , 18 years ago
Cc: | added |
---|
comment:5 by , 17 years ago
Keywords: | needinfo added; notification ticket removed |
---|---|
Status: | new → assigned |
I'm wondering if is worth overloading the SMTP headers with potentially many fields.
Couldn't a single header, X-Trac-Ticket-Changes:
with a comma separated list of modified fields as value be enough?
comment:6 by , 17 years ago
A list *might* be enough, but I used this change extensively to do really intelligent filtering on a project where I got hundreds of notifications a day. It was far easier to setup filters for specific headers; parsing (especially with server side filtering agents like Sieve) might be much harder. Besides, aren't headers pretty well understood?
comment:8 by , 17 years ago
comment:11 by , 17 years ago
The original urge for writing this patch the way it is is exactly as cited above: "I used this change extensively to do really intelligent filtering on a project where I got hundreds of notifications a day. It was far easier to setup filters for specific headers; parsing (especially with server side filtering agents like Sieve) might be much harder."
Having lots of headers made it easy for vanilla filtering tools (like Sieve engines) to filter in some really complex ways; if it was a list it would have been far more tedious.
comment:12 by , 17 years ago
comment:13 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
See superseder #6516.
comment:14 by , 16 years ago
Milestone: | 0.13 |
---|
Patch against the trunk to add additional email headers for ticket notifications