Modify

Opened 7 years ago

Last modified 6 years ago

#2177 assigned enhancement

Remind owners script

Reported by: kris@… Owned by: nextime
Priority: low Component: TicketRemindScript
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

The script currently sends a single message to all people listed in the
tracremind.conf file.

This version allows you add a new mailowner flag in tracremind.conf
to send an individual reports to bug owners.

It also adds a new config parameter 'from' instead of script
embedded From Address
Example:

[DEFAULT]
project: /home/trac/top
sendto: admin@dev.org
from: bugs@dev.org

[widget]
project: /home/trac/widget
sendto: widget-admin@dev.org
from: widget-bug@dev.org
mailowners:true

Attachments (1)

tracremind.py (8.0 KB) - added by kris@… 7 years ago.
mail reminders to bug owners

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by kris@…

mail reminders to bug owners

comment:1 Changed 7 years ago by anonymous

  • Type changed from defect to enhancement

comment:2 Changed 7 years ago by nextime

  • Status changed from new to assigned

Thanks, i will merge your changes with few modifications in a new release of the script with other few thinks suggested by others

comment:3 Changed 6 years ago by anonymous

kris@…, thanks for posting this! It works really well. One comment:

For me, I have set my project url (in the [project] section of trac.ini) to example.com/trac/project/wiki

This messes up the ticket URLs, as self.env.project_url returns "example.com/trac/project/wiki" and the script appends a "ticket/" on to the end of that, so the final URL in the email is example.com/trac/project/wikiticket/XX, which doesn't work.

However, there are two easy ways to fix this: One is to change the project url in trac.ini, or change the script to self.env.project_url[:-4], which takes 4 characters off the end. Either/or, just don't do both!

Thanks.

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.