From 94dabfc3559c54e4d8c1603029c3bfda5eedceb4 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Sat, 8 Dec 2007 22:08:08 +0000 Subject: [PATCH] make text/plain attachments part of the reply (patch from nicolas pouillard) git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@747 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/message-chunks.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb index 309577d..e5c5620 100644 --- a/lib/sup/message-chunks.rb +++ b/lib/sup/message-chunks.rb @@ -54,7 +54,8 @@ EOS def initialize content_type, filename, encoded_content, sibling_types @content_type = content_type @filename = filename - @quotable = false # only quotable if we can parse it through the mime-decode hook + @quotable = false # changed to true if we can parse it through the + # mime-decode hook, or if it's plain text @raw_content = if encoded_content.body encoded_content.decode @@ -65,6 +66,7 @@ EOS @lines = case @content_type when /^text\/plain\b/ + @quotable = true Message.convert_from(@raw_content, encoded_content.charset).split("\n") else text = HookManager.run "mime-decode", :content_type => content_type, -- 2.43.0