]> git.cworth.org Git - sup/commitdiff
make text/plain attachments part of the reply (patch from nicolas pouillard)
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 8 Dec 2007 22:08:08 +0000 (22:08 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 8 Dec 2007 22:08:08 +0000 (22:08 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@747 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/message-chunks.rb

index 309577dc234260255d598c4f64c253138cd1d8b3..e5c56201153981efca43fea9dc5d3101571a66de 100644 (file)
@@ -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,