Re: [Trac] Re: TracHtmlNotificationPlugin only sends text/plain

Jun Omae <[email protected]> Fri, 26 Jun 2026 13:29:39 +0900
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <CAEVLMajuP4wP-B740m8+GKOEVOLgfv59FgT6LmcL4AuLxjyZsg@mail.gmail.com>
On Thu, Jun 25, 2026 at 5:31=E2=80=AFPM Manuel Bilderbeek
<[email protected]> wrote:
>
> Yes, PYTHON_EGG_CACHE is used and it is set on /srv/trac/eggs in /srv/tra=
c/apache/trac.wsgi:
> $ cat /srv/trac/apache/trac.wsgi
> import sys
> sys.stdout =3D sys.stderr
>
> import site
> site.addsitedir('/usr/lib/python2.7/dist-packages/')
>
> import os
> os.environ['TRAC_ENV_PARENT_DIR'] =3D '/srv/trac/projects'
> os.environ['PYTHON_EGG_CACHE'] =3D '/srv/trac/eggs'
>
> import trac.web.main
>
> application =3D trac.web.main.dispatch_request
>

It is not probably related with this issue, but the following line
should be removed because of using Python 3.14.

> site.addsitedir('/usr/lib/python2.7/dist-packages/')


> I cleaned this /srv/trac/eggs directory and did an updatedb/locate after =
restarting apache2:
>
> $ locate TracHtmlNotification
> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp
> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm=
lnotification
> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm=
lnotification/templates
> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm=
lnotification/templates/jinja2
> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm=
lnotification/templates/jinja2/htmlnotification_ticket.html
> /srv/trac/projects/swdev/plugins/TracHtmlNotificationPlugin-0.12.0.4-py3.=
14.egg
>
> $ locate htmlnotification_ticket
> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm=
lnotification/templates/jinja2/htmlnotification_ticket.html
>
> I guess this looks OK, but I still do not get the proper diffs in the e-m=
ail after all of this. What am I missing here?
>
> Should I move the installation of the egg(s)? I'm not sure where exactly =
it should be moved to. /srv/trac/lib? /srv/trac/projects/lib?
>

Please try to reproduce it with TracHtmlNotificationPlugin only
enabled. If it is reproduced, this plugin has something wrong. If not,
your installation, configuration and/or environment have something
wrong. At least, it is unable to reproduce it on my environment. I
cannot fix any issues which are not reproduced.

--
Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)

--=20
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 e=
mail to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/=
CAEVLMajuP4wP-B740m8%2BGKOEVOLgfv59FgT6LmcL4AuLxjyZsg%40mail.gmail.com.