Modify

Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#11365 closed defect (worksforme)

Blank mail

Reported by: regis.patroix@… Owned by: jun66j5
Priority: normal Component: TracHtmlNotificationPlugin
Severity: normal Keywords:
Cc: regis.patroix@… Trac Release: 0.12

Description

Hi,

When viewing email on Gmail or using Thunderbird, there's no content, (blank mail).

If we choose "Message Body As" "Plain text" in Thunderbird, we can see the content of the email.

The setup is :

  • Trac 0.12.2
  • Python 2.7.2
  • Apache 2.2.16

Best regards.

Attachments (1)

blank_mail.txt (27.6 KB) - added by regis.patroix@… 13 months ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 13 months ago by jun66j5

  • Priority changed from highest to normal
  • Severity changed from blocker to normal

Could you please post the email source (included both headers and body)?

Last edited 13 months ago by jun66j5 (previous) (diff)

Changed 13 months ago by regis.patroix@…

comment:2 Changed 13 months ago by jun66j5

  • Resolution set to worksforme
  • Status changed from new to closed

Workaround is removing <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"/>.

comment:3 follow-up: Changed 13 months ago by regis.patroix@…

You're right.

Fixed using :

return container.as_string().replace('<script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"/>','')

Instead of :

return container.as_string()

In notification.py

comment:4 in reply to: ↑ 3 Changed 13 months ago by jun66j5

Fixed using :

return container.as_string().replace('<script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"/>','')

I will not change for it.

Your inserted script element is incorrect. The script element needs a closed tag.

  <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"/>

should be the following.

  <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

Add Comment

Modify Ticket

Action
as closed The owner will remain jun66j5.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.