You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/02/12 09:36:35 UTC

[whimsy] branch master updated: Synchronise with other deliver script

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 12edfcc  Synchronise with other deliver script
12edfcc is described below

commit 12edfcccd783e73b7e8fe503e4dc56be5cf582bd
Author: Sebb <se...@apache.org>
AuthorDate: Tue Feb 12 09:36:33 2019 +0000

    Synchronise with other deliver script
---
 tools/deliver.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/deliver.rb b/tools/deliver.rb
index 77ae275..7a76405 100644
--- a/tools/deliver.rb
+++ b/tools/deliver.rb
@@ -19,7 +19,8 @@ def self.getmid(hdrs)
   mid
 end
 
-mail = STDIN.read.force_encoding('binary')
+STDIN.binmode
+mail = STDIN.read
 
 # extract info
 dest = mail[/^List-Id: <(.*)>/, 1] || mail[/^Delivered-To.* (\S+)\s*$/, 1] || 'unknown'