Hi,
As plain text notifications look totally garbled in Outlook, I wanted to start sending HTML formatted notifications. So I installed the TracHtmlNotificationPlugin.
I followed the steps from https://trac-hacks.org/wiki/TracHtmlNotificationPlugin to install it.
But whatever, I do (e.g. set the default for all users to text/html), I still get text/plain e-mails.
This is what the debug log says:
2023-04-11 13:21:43,718 Trac[loader] DEBUG: Loading trachtmlnotification.notification from /usr/local/lib/python2.7/dist-packages/TracHtmlNotificationPlugin-0.12.0.3-py2.7.egg
…
2023-04-11 13:21:44,090 Trac[mail] DEBUG: EmailDistributor has found the following formats capable of handling 'email' of 'ticket': text/html, text/plain
2023-04-11 13:21:44,114 Trac[mail] DEBUG: EmailDistributor is sending event as 'text/plain' to: te...@example.com
2023-04-11 13:21:44,118 Trac[mail] INFO: Sending notification through SMTP at 127.0.0.1:25 to ['te...@example.com']
So, I can’t really find the reason why the code decides to send as text/plain, instead of text/html.
What am I missing here?
This is Trac 1.2 on Ubuntu bionic.
Thanks for any attempt to help.
Kind regards,
Manuel Bilderbeek
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/fc88eb50-f69f-4d62-a189-0f64301357cdn%40googlegroups.com.
Hi,Yes, I realize that they require Python 3. This would be available in a modern Ubuntu after upgrading.Good point about the plug-ins. I guess I'll have to check whether all the currently used plugins have been upgraded to Python 3. (The ones packaged/available in Ubuntu will have been, of course.)
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/0d7e15d3-447e-400c-9e59-f9c2e4348571n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/ae3e342a-e762-4551-bda4-a65c4a5f3335n%40googlegroups.com.
It looks like I placed a patch here:
https://trac-hacks.org/ticket/13732
Although it looks like you've already found that.
According to my logs, the last mod I have was made April 7, 2022.
If what's on trac-hacks.org doesn't seem like it'll work for some reason (e.g. the patch I attached or whatever), I could do some more work to check what I have, or make it available somehow.
You mention filter_stream, but it seems it is already ported to
Jinja. I did a bunch of work on several plugins on that, but my
memory is fading at this point. I see the patch contains a
"billing_jinja.html", for instance.
- Dan
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAJ4osOnbunKp5_A7a%3DasHdCGFe0tM06HVEsW5JLdMGccXtq21A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/abf59f1b-c786-0b9c-f733-0ab40ea1b42b%40digidescorp.com.
Still interested in a statement about the status of 1.5.3 or 1.5.4 regarding stability in production use. How bad (or good!) is it?If it's good enough to just use, I can just upgrade to the latest Unbuntu LTS or 23.04 release (much better than using a 5 year old distro). I fully understand that no one is willing to give any guarantees or make promises, but a rough idea on what I can expect would be good to have. Then we could decide whether we would want to try it or not.
We have the following plugins installed as Ubuntu packages:ii trac-accountmanager 0.5~r16056-1 all account management plugin for Trac
ii trac-customfieldadmin 0.2.12+r15671-1 all panel for administrating custom ticket fields in Trac
ii trac-datefieldplugin 0.7782-3.1 all Add custom date fields to Trac tickets
ii trac-graphviz 0.7.5-1.1 all Graphs printing plugin for Trac
ii trac-icalviewplugin 0.7889-1.1 all Provides iCalendar feeds for ticket queries
ii trac-mastertickets 3.0.2+20111224-2 all adds inter-ticket dependencies to Trac
ii trac-tags 0.7+svn12392-1 all Tagging plugin for Trac wiki and issue tracking system
ii trac-wikitablemacro 1:0.3-1 all SQL Table in Wiki Page for Trac
ii trac-wysiwyg 0.12.0.7-1 all WYSIWYG style editor for the Trac issue tracking systemI guess some are obsolete, e.g. trac-mastertickets isn't used, as we also have the following installed:BatchModify-0.8.0_trac0.12-py2.6.egg
TicketValidator-0.2dev-py2.7.egg
TracHtmlNotificationPlugin-0.12.0.3-py2.7.egg
Tracchildtickets-2.5.5-py2.7.eggand looks like icalviewplugin, tags , wysiwyg, graphviz, wikitablemacro and datefieldplugin aren't currently enabled either.
So, the ones we currently definitely use and I didn't see mentioned yet are:BatchModifyTicketValidator (but I do see TicketValidation mentioned by Dan...)Does anyone of you have any experience with these on Trac 1.5.4?