[Trac-tickets] [The Trac Project] #2191: [patch] Notification mails use LF instead of CRLF

The Trac Project noreply at edgewall.com
Fri Oct 7 20:50:58 CDT 2005


#2191: [patch] Notification mails use LF instead of CRLF
-------------------------------------------+--------------------------------
 Reporter:  m.kooijman at student.utwente.nl  |       Owner:  jonas
     Type:  defect                         |      Status:  new  
 Priority:  high                           |   Milestone:       
Component:  ticket system                  |     Version:  0.9b1
 Severity:  normal                         |   Keywords:                                 |  
-------------------------------------------+--------------------------------
 About half the newlines in notify emails are generated as LF instead of
 CRLF, which causes some mailservers to just remove them and screwing up
 formatting for the notify message and making email notification not
 workable. (I have observed a direct path using only exim and/or postfix to
 work, but when run via exim, ESMTP and fetchmail, it broke).

 I have been playing around with a few fixes, some of which refused to work
 at first for some weird reason. Anyway, I've found two sources of LF:
  * The [source:trunk/templates/ticket_notify_email.cs email template] is a
 file with newlines. I think setting svn:eol-style = CRLF on this file
 should do the trick.
  * A few hardcoded '\n' in [source:trunk/trac/Notify.py Notify.py].
 Replacing these with the CRLF constant fixes that.

 Tested with 0.9b1, but there are no relevant changes in b2 or trunk which
 would fix this.

 Priority set to high, since this makes email notification unusable on some
 systems.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2191>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list