Edgewall Software

Ticket #2861 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

Warn about lacking default settings on trac.ini on env upgrade

Reported by: Pedro Algarvio <ufs@…> Owned by: jonas
Priority: normal Milestone: 0.10
Component: ticket system Version: devel
Severity: minor Keywords: notification email
Cc:

Description

Today on one of my env's when fixing a bug, I got a failed email message for my smtp_always_cc address that is pointing to that env's ezmlm mailing list. The problem is that ezmlm only accepts mail messages directly addressed by To: or Cc:. So I when to IRC and bdash elucidated me about allow_public_cc. It would be nice that trac on an env upgrade would fill in the missing parts for old trac.ini's, or at least warn the user so he could add them.

As I writed this, I also thought that it's probably better to have a smtp_always_cc and a smtp_always_bcc because I don't mind having the mailing-list address on Cc: but a personal address I might, and allow_public_cc doesn't allow me that.

Attachments

Change History

Changed 3 years ago by eblot

  • keywords notification email added
  • owner changed from daniel to jonas
  • component changed from report system to ticket system

Trac upgrade does produce a 'trac.ini.sample' file with all the default values, so you may want to compare your settings with the new default settings after an upgrade. Changing a existing configuration could be a source of errors and misconfiguration. Maybe an additional command in trac-admin could warn the user about the new available settings. I'm not sure though it is worth warning the user about ALL the settings she does not want to use: how differenciate the already but not defined settings from the brand new settings ?

About the second part of your email:
I agree with your remark, however I can tell you why the smtp_always_bcc as not (yet ?) being introduced, as I wrote this piece of code: I wanted to stick with the original behaviour of the trac notification, which always performed some kind of 'Bcc' as each email notification was sent to a single recipient (one email / recipient). The goal was to provide the same behaviour if the user did not change her trac.ini file.

If you think it is worth breaking the compatibility and introduce smtp_always_cc / smtp_always_bcc differenciation in 0.10, please log in a new ticket for this specific topic.

btw: report system is not about the email notifications, but the ticket queries ;-)

Changed 3 years ago by Pedro Algarvio <ufs@…>

K, will submit that ticket, and why am I not getting any mails of tickets I submit here on trac's site? Is it disabled?

About the first part of the ticket, why yet another command just to know that my trac.ini file has missing new setings? My opinion would go to let the user now that there are changes. For example:

# trac-admin /path/to/trac/env upgrade
upgrade complete.
NOTE: There are some new setting for your trac.ini,
please look at trac.ini.sample

Changed 3 years ago by cboos

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.10

Yes, I think that the trac.ini.sample feature is very useful and shouldn't be missed (but I might be biaised :) ). Therefore I added a message similar to the one you suggested in r3012.

Changed 3 years ago by cmlenz

Testing notification

Add/Change #2861 (Warn about lacking default settings on trac.ini on env upgrade)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.