sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit aa36c27d3dee806098baa5423ae648267b80259e
parent d3fbac1341399049762cea6ed788d4db231a85f6
Author: Iain Parris <ipv2.vcs@parris.org>
Date:   Mon, 13 Jul 2020 00:55:19 +0100

fix #570: patina for EnclosedMessage without Date

Diffstat:
M lib/sup/message_chunks.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/sup/message_chunks.rb b/lib/sup/message_chunks.rb
@@ -302,7 +302,11 @@ EOS
     def viewable?; false end
 
     def patina_color; :generic_notice_patina_color end
-    def patina_text; "Begin enclosed message sent on #{@date}" end
+    def patina_text
+      "Begin enclosed message" + (
+        @date == "" ? "" : " sent on #{@date}"
+      )
+    end
 
     def color; :quote_color end
   end