a small thing, I forgot:
If you want your ticket notification mails to reflect the real servername too,
then you could use the attached patch for trac (change the hostnames in this
patch according to your setup).

Lars
--- trac/Notify.py.orig 2005-05-10 18:46:12.000000000 +0200
+++ trac/Notify.py      2005-05-10 18:48:55.000000000 +0200
@@ -185,7 +185,7 @@
                                           self.COLS,
                                           initial_indent=' ',
                                           subsequent_indent=' ')
-        self.ticket['link'] = self.env.abs_href.ticket(ticket['id'])
+        self.ticket['link'] = self.env.abs_href.ticket(ticket['id']).replace("http:/","https://";).replace("//svn.sao/","//systemausfall.org/")
         add_dict_to_hdf(self.ticket, self.hdf, 'ticket')
         self.hdf.setValue('email.ticket_props', self.format_props())
         self.hdf.setValue('email.ticket_body_hdr', self.format_hdr())
@@ -339,7 +339,7 @@
         hdrs = {}
         hdrs['Message-ID'] = self.get_message_id(rcpt, self.modtime)
         hdrs['X-Trac-Ticket-ID'] = self.ticket['id']
-        hdrs['X-Trac-Ticket-URL'] = self.ticket['link']
+        hdrs['X-Trac-Ticket-URL'] = self.ticket['link'].replace("http://";, "https://";)
         if not self.newticket:
             hdrs['In-Reply-To'] = self.get_message_id(rcpt)
             hdrs['References'] = self.get_message_id(rcpt)
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to