Re: [Trac] Re: TracHtmlNotificationPlugin only sends text/plain
Manuel Bilderbeek <[email protected]> Fri, 19 Jun 2026 07:46:47 -0700 (PDT)
| Newsgroups | gmane.comp.version-control.subversion.trac.general |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_80066_1304534276.1781880407767 Content-Type: multipart/alternative; boundary="----=_Part_80067_162961242.1781880407767" ------=_Part_80067_162961242.1781880407767 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Where should that be?=20 alsi-lnx:/srv/trac/projects/swdev$ ls -la templates/ total 12 drwxr-xr-x 2 www-data www-data 4096 Jun 14 2013 . drwxrwxr-x 12 www-data www-data 4096 Apr 15 2025 .. -rw-r--r-- 1 www-data www-data 154 Mar 19 2009 site.html alsi-lnx:/srv/trac/projects/swdev$ There is only site.html there, nothing else.... am I looking at the wrong= =20 place? Op vrijdag 19 juni 2026 om 15:06:22 UTC+2 schreef Jun Omae: > I guess that you're installing a custom htmlnotification_ticket.html into= =20 > "templates" directory in the tracenv. If so, the custom template has this= =20 > issue. Gmail ignores the style in the HTML mail using original=20 > htmlnotification_ticket.html. > > > On Fri, Jun 19, 2026 at 8:40=E2=80=AFPM Manuel Bilderbeek < > [email protected]> wrote: > >> OK, thanks for your response. Let me show you what I see: >> >> 1. I created a new ticket with a Description. Got an e-mail with that=20 >> ticket: >> [image: Screenshot 2026-06-19 133044.png] >> 2. Added a comment to the ticket. Got an e-mail with the same contents,= =20 >> except for "Last modified" addition: >> [image: Screenshot 2026-06-19 133227.png] >> 3. Added a keyword to the Keyword field and added another comment. Got= =20 >> an e-mail with the same contents again (didn't add a screenshot, it just= =20 >> had a different Last modified time). >> >> When I look at the ticket in Trac, I see all changes nicely: >> [image: Screenshot 2026-06-19 133346.png] >> So, what is going wrong? >> >> These are the relevant settings I think: >> [notification] >> admit_domains =3D >> default_format.email =3D text/html >> ignore_domains =3D >> mime_encoding =3D base64 >> smtp_always_bcc =3D >> smtp_always_cc =3D >> smtp_default_domain =3D >> smtp_enabled =3D enabled >> smtp_from =3D scra...-Gacy9T74lCb2eFz/[email protected] >> smtp_from_name =3D ASMPT Trac database >> smtp_password =3D >> smtp_port =3D 25 >> smtp_replyto =3D [email protected] >> smtp_server =3D 127.0.0.1 >> smtp_subject_prefix =3D __default__ >> smtp_user =3D >> ticket_subject_template =3D ${prefix} #${ticket.id}: ${summary} >> use_public_cc =3D disabled >> use_short_addr =3D disabled >> use_tls =3D disabled >> >> [notification-subscriber] >> always_notify_cc =3D CarbonCopySubscriber >> always_notify_previous_updater =3D TicketPreviousUpdatersSubscriber >> always_notify_updater =3D TicketUpdaterSubscriber >> >> Op donderdag 18 juni 2026 om 13:44:30 UTC+2 schreef Jun Omae: >> >>> On Thu, Jun 18, 2026 at 6:38=E2=80=AFPM Manuel Bilderbeek=20 >>> <[email protected]> wrote:=20 >>> >=20 >>> > Hello all,=20 >>> >=20 >>> > Getting back to the original subject. We have finally migrated our=20 >>> system to Trac 1.6 via Ubuntu 26.04.=20 >>> >=20 >>> > The notifications are now indeed in HTML. However, it just shows the= =20 >>> whole ticket in HTML. It doesn't display the changes at all. Is that to= be=20 >>> expected?=20 >>> > We have no custom ticket_notify_email.txt or something.=20 >>> >=20 >>> >>> Works for me. See the attached image and mail.=20 >>> Please explain in the details and share the received mail (or=20 >>> screenshot).=20 >>> >>> --=20 >>> Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)=20 >>> >> --=20 >> > You received this message because you are subscribed to the Google Groups= =20 >> "Trac Users" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to trac-users+...-/JYPxA39Uh5TLH3MbocFF+G/[email protected] >> > To view this discussion visit=20 >> https://groups.google.com/d/msgid/trac-users/1e882751-1a4f-4e1e-b10c-81b= 9c549905en%40googlegroups.com=20 >> <https://groups.google.com/d/msgid/trac-users/1e882751-1a4f-4e1e-b10c-81= b9c549905en%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter> >> . >> > > > --=20 > 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/= 3d66c01c-4580-4da9-9412-f27e69742417n%40googlegroups.com. ------=_Part_80067_162961242.1781880407767 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Where should that be?=C2=A0<div><br /><div>alsi-lnx:/srv/trac/projects/swde= v$ ls -la templates/<br />total 12<br />drwxr-xr-x =C2=A02 www-data www-dat= a 4096 Jun 14 =C2=A02013 .<br />drwxrwxr-x 12 www-data www-data 4096 Apr 15= =C2=A02025 ..<br />-rw-r--r-- =C2=A01 www-data www-data =C2=A0154 Mar 19 = =C2=A02009 site.html<br />alsi-lnx:/srv/trac/projects/swdev$<br /><br /></d= iv></div><div>There is only site.html there, nothing else.... am I looking = at the wrong place?</div><div><br /></div><div class=3D"gmail_quote"><div d= ir=3D"auto" class=3D"gmail_attr">Op vrijdag 19 juni 2026 om 15:06:22 UTC+2 = schreef Jun Omae:<br/></div><blockquote class=3D"gmail_quote" style=3D"marg= in: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1= ex;"><div dir=3D"ltr"><div>I guess that you're installing a custom html= notification_ticket.html into "templates" directory in the tracen= v. If so, the custom template has this issue. Gmail ignores the style in th= e HTML mail using original htmlnotification_ticket.html.</div><div><br></di= v><div><br></div><div class=3D"gmail_quote"></div></div><div dir=3D"ltr"><d= iv class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jun = 19, 2026 at 8:40=E2=80=AFPM Manuel Bilderbeek <<a href data-email-masked= rel=3D"nofollow">[email protected]</a>> wrote:<br></div></div></= div><div dir=3D"ltr"><div class=3D"gmail_quote"><blockquote class=3D"gmail_= quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,= 204);padding-left:1ex"><span class=3D"gmail_default" style=3D"font-family:c= ourier new,monospace"></span>OK, thanks for your response. Let me show you = what I see:<div><br></div><div>1. I created a new ticket with a Description= . Got an e-mail with that ticket:</div><div><img alt=3D"Screenshot 2026-06-= 19 133044.png" width=3D"1268px" height=3D"718px" src=3D"https://groups.goog= le.com/group/trac-users/attach/8b54d6dfc7145/Screenshot%202026-06-19%201330= 44.png?part=3D0.2&view=3D1"><br></div><div>2. Added a comment to the ti= cket. Got an e-mail with the same contents, except for "Last modified&= quot; addition:</div><div><img alt=3D"Screenshot 2026-06-19 133227.png" wid= th=3D"1270px" height=3D"742px" src=3D"https://groups.google.com/group/trac-= users/attach/8b54d6dfc7145/Screenshot%202026-06-19%20133227.png?part=3D0.1&= amp;view=3D1"><br></div><div>3. Added a keyword to the Keyword field and ad= ded another comment.=C2=A0 Got an e-mail with the same contents again (didn't add a screenshot, it= just had a different Last modified time).</div><div><br></div><div>When I = look at the ticket in Trac, I see all changes nicely:</div><div><img alt=3D= "Screenshot 2026-06-19 133346.png" width=3D"957px" height=3D"888px" src=3D"= https://groups.google.com/group/trac-users/attach/8b54d6dfc7145/Screenshot%= 202026-06-19%20133346.png?part=3D0.3&view=3D1"><br></div><div>So, what = is going wrong?</div><div><br></div>These are the relevant settings I think= :<br>[notification]<br>admit_domains =3D<br>default_format.email =3D text/h= tml<br>ignore_domains =3D<br>mime_encoding =3D base64<br>smtp_always_bcc = =3D<br>smtp_always_cc =3D<br>smtp_default_domain =3D<br>smtp_enabled =3D en= abled<br>smtp_from =3D <a href data-email-masked rel=3D"nofollow">scra...@s= crambled.com</a><br>smtp_from_name =3D ASMPT Trac database<br>smtp_password= =3D<br>smtp_port =3D 25<br>smtp_replyto =3D <a href data-email-masked rel= =3D"nofollow">[email protected]</a><br>smtp_server =3D 127.0.0.1<br>smtp_s= ubject_prefix =3D __default__<br>smtp_user =3D<br>ticket_subject_template = =3D ${prefix} #${<a href=3D"http://ticket.id" target=3D"_blank" rel=3D"nofo= llow" data-saferedirecturl=3D"https://www.google.com/url?hl=3Dnl&q=3Dht= tp://ticket.id&source=3Dgmail&ust=3D1781966639454000&usg=3DAOvV= aw1z8ZwCJ5ASyIBLnF-dtNc4">ticket.id</a>}: ${summary}<br>use_public_cc =3D d= isabled<br>use_short_addr =3D disabled<br>use_tls =3D disabled<br><br>[noti= fication-subscriber]<br>always_notify_cc =3D CarbonCopySubscriber<br>always= _notify_previous_updater =3D TicketPreviousUpdatersSubscriber<br>always_not= ify_updater =3D TicketUpdaterSubscriber<div><br></div><div class=3D"gmail_q= uote"><div dir=3D"auto" class=3D"gmail_attr">Op donderdag 18 juni 2026 om 1= 3:44:30 UTC+2 schreef Jun Omae:<br></div><blockquote class=3D"gmail_quote" = style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa= dding-left:1ex">On Thu, Jun 18, 2026 at 6:38=E2=80=AFPM Manuel Bilderbeek <br><<a rel=3D"nofollow">[email protected]</a>> wrote: <br>> <br>> Hello all, <br>> <br>> Getting back to the original subject. We have finally migrated our= system to Trac 1.6 via Ubuntu 26.04. <br>> <br>> The notifications are now indeed in HTML. However, it just shows t= he whole ticket in HTML. It doesn't display the changes at all. Is that= to be expected? <br>> We have no custom ticket_notify_email.txt or something. <br>> <br> <br>Works for me. See the attached image and mail. <br>Please explain in the details and share the received mail (or screensho= t). <br> <br>--=20 <br>Jun Omae <<a rel=3D"nofollow">[email protected]</a>> (=E5=A4=A7=E5= =89=8D =E6=BD=A4) <br></blockquote></div> <p></p></blockquote></div></div><div dir=3D"ltr"><div class=3D"gmail_quote"= ><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border= -left:1px solid rgb(204,204,204);padding-left:1ex"> -- <br></blockquote></div></div><div dir=3D"ltr"><div class=3D"gmail_quote"= ><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border= -left:1px solid rgb(204,204,204);padding-left:1ex"> You received this message because you are subscribed to the Google Groups &= quot;Trac Users" group.<br> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href data-email-masked rel=3D"nofollow">trac-users+...@googlegro= ups.com</a>.<br></blockquote></div></div><div dir=3D"ltr"><div class=3D"gma= il_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8= ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= trac-users/1e882751-1a4f-4e1e-b10c-81b9c549905en%40googlegroups.com?utm_med= ium=3Demail&utm_source=3Dfooter" target=3D"_blank" rel=3D"nofollow" dat= a-saferedirecturl=3D"https://www.google.com/url?hl=3Dnl&q=3Dhttps://gro= ups.google.com/d/msgid/trac-users/1e882751-1a4f-4e1e-b10c-81b9c549905en%254= 0googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=3Dgma= il&ust=3D1781966639454000&usg=3DAOvVaw3Vs5e9uw8SYKTM7Lin5t8u">https= ://groups.google.com/d/msgid/trac-users/1e882751-1a4f-4e1e-b10c-81b9c549905= en%40googlegroups.com</a>.<br> </blockquote></div></div><div dir=3D"ltr"><div><br clear=3D"all"></div><br>= <span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class= =3D"gmail_signature">Jun Omae <<a href data-email-masked rel=3D"nofollow= ">[email protected]</a>> (=E5=A4=A7=E5=89=8D =E6=BD=A4)</div></div></bloc= kquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;Trac Users" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:trac-users+unsubscribe-/[email protected]">trac-use= rs+unsubscribe-/[email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= trac-users/3d66c01c-4580-4da9-9412-f27e69742417n%40googlegroups.com?utm_med= ium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/trac-use= rs/3d66c01c-4580-4da9-9412-f27e69742417n%40googlegroups.com</a>.<br /> ------=_Part_80067_162961242.1781880407767-- ------=_Part_80066_1304534276.1781880407767--