sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 554f8222ad56f41775acbcbc56ed95e4d8248640
parent 62d0972afe52c249f04c1ed9c47a00d7fa6168cc
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Thu, 26 Jul 2007 05:56:04 +0000

content-type parsing bugfix thanks to Nicolas Pouillard

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@509 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/message.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -325,7 +325,7 @@ private
 
   def self.decode_and_convert m
     charset =
-      if m.header.field?("content-type") && m.header.fetch("content-type") =~ /charset=(.*?)(;|$)/
+      if m.header.field?("content-type") && m.header.fetch("content-type") =~ /charset="?(.*?)"?(;|$)/
         $1
       end