commit 94dabfc3559c54e4d8c1603029c3bfda5eedceb4
parent c1faa7a09b6f58134f1acff18d19fa6c1041b793
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Sat, 8 Dec 2007 22:08:08 +0000
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
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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,