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 2017/11/08 17:32:25 UTC
[whimsy] branch master updated: Yet another mail gem workaround
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 5d8800c Yet another mail gem workaround
5d8800c is described below
commit 5d8800cf1fd5e79424f3c66d4c4f15e1d2cff341
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Nov 8 12:31:46 2017 -0500
Yet another mail gem workaround
In this case, we don't care about potentially corrupting attachments as all
we are looking at is the headers
---
www/board/agenda/views/actions/posted-reports.json.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/views/actions/posted-reports.json.rb b/www/board/agenda/views/actions/posted-reports.json.rb
index 1109492..9409608 100755
--- a/www/board/agenda/views/actions/posted-reports.json.rb
+++ b/www/board/agenda/views/actions/posted-reports.json.rb
@@ -32,8 +32,8 @@ archive.each do |email|
message = IO.read(email, mode: 'rb')
subject = message[/^Subject: .*/]
next unless subject and subject.upcase.include? "[REPORT]"
- mail = Mail.new(message)
- reports << mail if mail.subject.upcase.start_with? "[REPORT]"
+ mail = Mail.new(message.encode(message.encoding, crlf_newline: true))
+ reports << mail if subject and mail.subject.upcase.start_with? "[REPORT]"
end
# Get a list of missing board reports
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].