diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-06-25 10:02:17 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-06-25 11:47:42 +0100 |
commit | 7cf2dc709482a6e387430dabcade181ac039f6c7 (patch) | |
tree | 283064b931ee8996c380d7c5fc4d9a802b63d3c5 /script | |
parent | 34a1bc6b32d5a1e61bd4f23be72372b8b081185e (diff) |
Handle non-UTF8 encoding in ruby 1.9 and above
Diffstat (limited to 'script')
-rwxr-xr-x | script/handle-mail-replies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/handle-mail-replies.rb b/script/handle-mail-replies.rb index cbff03acb..29f618154 100755 --- a/script/handle-mail-replies.rb +++ b/script/handle-mail-replies.rb @@ -168,7 +168,7 @@ def is_oof?(message) end def forward_on(raw_message) - IO.popen("/usr/sbin/sendmail -i #{AlaveteliConfiguration::forward_nonbounce_responses_to}", "w") do |f| + IO.popen("/usr/sbin/sendmail -i #{AlaveteliConfiguration::forward_nonbounce_responses_to}", "wb") do |f| f.write(raw_message); f.close; end |