A different email style for notifications was requested more than once (with smaller variants) from ages.
Basically, what we want to obtain is a more compact (and readable) email to be sent to users, so that only the relevant modifications that triggered the notifications will be shown.
An example is always worth 1000 words; a sample email I got from mantis:
The following issue has been UPDATED. ====================================================================== http://www.mantisbt.org/bugs/view.php?id=8508 ====================================================================== Reported By: giallu Assigned To: ====================================================================== Project: mantisbt Issue ID: 8508 Category: preferences Reproducibility: have not tried Severity: trivial Priority: low Status: new ====================================================================== Date Submitted: 2007-10-25 07:13 EDT Last Modified: 2007-10-28 19:58 EDT ====================================================================== Summary: Avoid using "example.com" in configuration options Description: Both config_inc.php.sample and config_defaults_inc.php set, by default or after conditional checks, some parameters with example.com domains. for instance, config_inc.php.sample has: $g_webmaster_email = 'webmaster@example.com'; While no harm is being done, I think the default should be to point to localhost (which is, btw, what is done on the Fedora package with a patch) ====================================================================== ---------------------------------------------------------------------- (0016015) giallu (developer) - 2007-10-28 19:58 http://www.mantisbt.org/bugs/view.php?id=8508#16015 ---------------------------------------------------------------------- ping Issue History Date Modified Username Field Change ====================================================================== 2007-10-25 07:13 giallu New Issue 2007-10-28 19:58 giallu Note Added: 0016015 2007-10-28 19:58 giallu Priority normal => low 2007-10-28 19:58 giallu Severity minor => trivial ======================================================================
And one from Bugzilla, for a similar set of changes:
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report. Summary: Merge Review: openobex https://bugzilla.redhat.com/show_bug.cgi?id=226215 bugzilla@redhat.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |medium Priority|normal |medium Product|Fedora Extras |Fedora ------- Additional Comments From xxx.xxx@xxx.xxx 2007-10-13 11:03 EST ------- Ping? -- Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
The main problem with this implementation is that a single mail could include multiple operations, performed as a single update.
Since the changes are performed in different part of the code, the best approach looks like exploiting the existing history table, and compose the mail starting from that informations.
A new database field in mantis_bug_table will store the timestamp to start composing the diff from
mantis_bug_table
Administrator configuration options:
$g_default_email_style
- CLASSIC or DIFFUser configuration options:
Email style
- CLASSIC or DIFF from the preferences panel