From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.87.14 with SMTP id k14cs1332754agb; Thu, 31 Dec 2009 16:09:13 -0800 (PST) Received: by 10.224.124.24 with SMTP id s24mr9555659qar.119.1262304553338; Thu, 31 Dec 2009 16:09:13 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 31si22784675qyk.19.2009.12.31.16.09.13; Thu, 31 Dec 2009 16:09:13 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 113D719782D9; Thu, 31 Dec 2009 19:09:13 -0500 (EST) Received: from magnesium.club.cc.cmu.edu (MAGNESIUM.CLUB.CC.cmu.edu [128.237.157.15]) by rubyforge.org (Postfix) with ESMTP id 905AB1858249 for ; Thu, 31 Dec 2009 19:04:05 -0500 (EST) Received: (qmail 32760 invoked from network); 31 Dec 2009 23:37:24 -0000 Received: from pion.club.cc.cmu.edu (HELO localhost.localdomain) (128.237.157.88) by magnesium.club.cc.cmu.edu with SMTP; 31 Dec 2009 23:37:24 -0000 From: Rich Lane To: sup-devel@rubyforge.org Date: Thu, 31 Dec 2009 15:36:55 -0800 Message-Id: <1262302618-20503-8-git-send-email-rlane@club.cc.cmu.edu> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1262302618-20503-7-git-send-email-rlane@club.cc.cmu.edu> References: <1262302618-20503-1-git-send-email-rlane@club.cc.cmu.edu> <1262302618-20503-2-git-send-email-rlane@club.cc.cmu.edu> <1262302618-20503-3-git-send-email-rlane@club.cc.cmu.edu> <1262302618-20503-4-git-send-email-rlane@club.cc.cmu.edu> <1262302618-20503-5-git-send-email-rlane@club.cc.cmu.edu> <1262302618-20503-6-git-send-email-rlane@club.cc.cmu.edu> <1262302618-20503-7-git-send-email-rlane@club.cc.cmu.edu> Subject: [sup-devel] [PATCH 07/10] transcode output from mime-decode hook too X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --- lib/sup/message-chunks.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb index 581b707..6328f1f 100644 --- a/lib/sup/message-chunks.rb +++ b/lib/sup/message-chunks.rb @@ -99,7 +99,7 @@ EOS text = case @content_type when /^text\/plain\b/ - Iconv.easy_decode $encoding, encoded_content.charset || $encoding, @raw_content + @raw_content else HookManager.run "mime-decode", :content_type => content_type, :filename => lambda { write_to_disk }, @@ -109,6 +109,7 @@ EOS @lines = nil if text + text = text.transcode(encoded_content.charset || $encoding) @lines = text.gsub("\r\n", "\n").gsub(/\t/, " ").gsub(/\r/, "").split("\n") @lines = lines.map {|l| l.chomp.wrap WRAP_LEN}.flatten @quotable = true -- 1.6.3.3 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel