Kilian CAVALOTTI wrote:
On Tuesday 24 January 2006 16:28, Kilian CAVALOTTI wrote:
Please see my (working for me, YMMV) solution in the attached patch.

Oops, just a quick note to mention that you'll probably have to adjust env.href and env.abs_href definitions if you want working links in the generated email signature.
I use the following:
self.env.abs_href = Href(env.config.get('project', 'url') + 'trac/')
self.env.href = Href(env.config.get('project', 'url'))

which produce:
Ticket URL: <http://localhost/trac/ticket/107>
project <http://localhost>

I don't think there's a clean way to get the cgi_location equivalent (the part to add to env.config.get('project', 'url')), since the tickets are not produced from a web request.

Thanks for the patches i will try them and make an option in email2trac.conf for trac notification emails.



--
--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: [EMAIL PROTECTED]      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                                               *
*                                                                  *
********************************************************************
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to