sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit f50827b1586aab227137ac91ecfbfd3b9eb01607
parent 29a62238e79ef9a70bba73cc5e04031dadc2d5f9
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Wed, 30 Sep 2009 15:32:29 -0400

yet another attempt to get this crypto stuff right

Revert these lines of code to how they were originally!

Diffstat:
M lib/sup/message.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -413,7 +413,7 @@ private
     notice, sig, decryptedm = CryptoManager.decrypt payload
     if decryptedm # managed to decrypt
       children = message_to_chunks(decryptedm, true)
-      [notice, sig] + children
+      [notice, sig].compact + children
     else
       [notice]
     end
@@ -466,7 +466,7 @@ private
       notice, sig, decryptedm = CryptoManager.decrypt m.body
       if decryptedm # managed to decrypt
         children = message_to_chunks decryptedm, true
-        [notice, sig] + children
+        [notice, sig].compact + children
       else
         [notice]
       end