Subject: [sup-talk] [PATCH] decoding rules: ignore ascii-7bit and normalize utf-7

From: [email-masked] (Nicolas Pouillard)
Date: Sun, 16 Nov 2008 18:18:33 +0100

---
 lib/sup/util.rb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/sup/util.rb b/lib/sup/util.rb
index f3db95d..fc62532 100644
--- a/lib/sup/util.rb
+++ b/lib/sup/util.rb
@@ -620,10 +620,11 @@ end
 
 class Iconv
   def self.easy_decode target, charset, text
-    return text if charset =~ /^(x-unknown|unknown-8bit)$/i
+    return text if charset =~ /^(x-unknown|unknown[-_]?8bit|ascii[-_]?7[-_]?bit)$/i
     charset = case charset
                 when /UTF[-_]?8/i: "utf-8"
                 when /(iso[-_])?latin[-_]?1$/i: "ISO-8859-1"
+                when /unicode[-_]1[-_]1[-_]utf[-_]7/i: "utf-7"
                 else charset
               end
 
-- 
1.5.5.rc3

---

From: [email-masked] (William Morgan)
Date: Wed, 26 Nov 2008 15:50:54 -0800

Applied, thanks!
-- 
William <wmorgan-sup at masanjin.net>