You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/05/02 11:34:32 UTC

[whimsy] branch master updated: one more mail => message

This is an automated email from the ASF dual-hosted git repository.

rubys 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 6830b80  one more mail => message
6830b80 is described below

commit 6830b808866e140bd0f436c2cd02f9c66527fcc8
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed May 2 07:34:08 2018 -0400

    one more mail => message
---
 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 bec6eb1..5980fe5 100644
--- a/www/secretary/workbench/models/message.rb
+++ b/www/secretary/workbench/models/message.rb
@@ -320,7 +320,7 @@ class Message
     message.sub! /\AFrom .*\r?\n/i, '' if message =~ /^\AFrom /i
     headers = message[/(.*?)\r?\n\r?\n/m, 1]
     if headers.include? "\n" and not headers.include? "\r\n"
-      headers, body = mail.split(/\r?\n\r?\n/, 2)
+      headers, body = message.split(/\r?\n\r?\n/, 2)
       headers.gsub("\n", "\r\n")
       message = "#{headers}\r\n\r\n#{body}"
     end

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.