sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 1e763724eec932634fd7538fd93e85b49bee04e9
parent 55ef9045a7e3ec9042b79fa40435015bc08c182d
Author: Gaute Hope <eg@gaute.vetsj.com>
Date:   Mon, 19 Aug 2013 09:16:25 +0200

Fix #131: Allow no chunks in message, return an empty array on nil chunks

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
@@ -309,7 +309,7 @@ EOS
   end
 
   def indexable_chunks
-    chunks.select { |c| c.is_a? Chunk::Text }
+    chunks ? chunks.select { |c| c.is_a? Chunk::Text } : []
   end
 
   def indexable_subject