whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Since we store unprocessed mail, also need to fix CRLF here
Date Mon, 11 Feb 2019 22:23:32 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 13e1f2b  Since we store unprocessed mail, also need to fix CRLF here
13e1f2b is described below

commit 13e1f2b0dd5794acde15c64a9f2c005b4305e7b4
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Feb 11 22:23:25 2019 +0000

    Since we store unprocessed mail, also need to fix CRLF here
---
 www/secretary/workbench/models/message.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/secretary/workbench/models/message.rb b/www/secretary/workbench/models/message.rb
index fb19bbb..02b6598 100644
--- a/www/secretary/workbench/models/message.rb
+++ b/www/secretary/workbench/models/message.rb
@@ -51,7 +51,7 @@ class Message
   #
 
   def mail
-    @mail ||= Mail.new(@email)
+    @mail ||= Mail.new(@email.gsub(LF_ONLY, CRLF))
   end
 
   def raw


Mime
View raw message