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 12b24e6  Some mails are causing parsing errors in procmail.log
12b24e6 is described below

commit 12b24e61a9511db0cbcb0de1dd1e3e06019c0cc6
Author: Sebb <[email protected]>
AuthorDate: Fri Feb 15 19:02:05 2019 +0000

    Some mails are causing parsing errors in procmail.log
    
    'invalid byte sequence in US-ASCII (ArgumentError)'
---
 tools/svnupdate.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/svnupdate.rb b/tools/svnupdate.rb
index aaa30b4..d50a41d 100644
--- a/tools/svnupdate.rb
+++ b/tools/svnupdate.rb
@@ -7,7 +7,8 @@ require 'mail'
 
 File.umask(0002)
 
-mail = Mail.new(STDIN.read.encode(crlf_newline: true))
+STDIN.binmode
+mail = Mail.new(STDIN.read)
 
 LOG = '/srv/whimsy/www/logs/svn-update'
 

Reply via email to