sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit e0a8d26d8525ad64c019d74455440172eac74404
parent d99cd66feaca6dd8ac491b5d1e7770d6e012ade7
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Tue, 18 Dec 2007 01:37:04 -0800

bugfix: snippets calculated for new messages
a previous change exposed a bug where message chunks were not being created on
demand.

Diffstat:
M lib/sup/message.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -39,7 +39,7 @@ class Message
 
   attr_reader :id, :date, :from, :subj, :refs, :replytos, :to, :source,
               :cc, :bcc, :labels, :list_address, :recipient_email, :replyto,
-              :source_info, :chunks, :list_subscribe, :list_unsubscribe
+              :source_info, :list_subscribe, :list_unsubscribe
 
   bool_reader :dirty, :source_marked_read, :snippet_contains_encrypted_content
 
@@ -154,6 +154,11 @@ class Message
     @dirty = true
   end
 
+  def chunks
+    load_from_source!
+    @chunks
+  end
+
   ## this is called when the message body needs to actually be loaded.
   def load_from_source!
     @chunks ||=