Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11365 closed defect (worksforme)

Blank mail

Reported by: regis.patroix@… Owned by: Jun Omae
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@… 10 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 10 years ago by Jun Omae

Priority: highestnormal
Severity: blockernormal

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

Last edited 10 years ago by Jun Omae (previous) (diff)

Changed 10 years ago by regis.patroix@…

Attachment: blank_mail.txt added

comment:2 Changed 10 years ago by Jun Omae

Resolution: worksforme
Status: newclosed

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 Changed 10 years 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 10 years ago by Jun Omae

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>

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.