From mboxrd@z Thu Jan 1 00:00:00 1970 From: michael+sup@stapelberg.de (Michael Stapelberg) Date: Fri, 25 Sep 2009 21:10:11 +0200 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted In-Reply-To: <1253640093-sup-48@midna.zekjur.net> References: <1253638189-sup-7758@midna.zekjur.net> <1253640093-sup-48@midna.zekjur.net> Message-ID: <1253905743-sup-419@midna.zekjur.net> Hi, after fixing the other bug related to GPG messages, this patch has to be modified, too: --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -436,6 +436,16 @@ private end chunks + elsif m.header.content_type == "application/pgp" + notice, sig, decryptedm = CryptoManager.decrypt m.body + if decryptedm # managed to decrypt + children = message_to_chunks(decryptedm, true) + chunks = [notice, sig, children].flatten.compact + else + chunks = [notice] + end + + chunks elsif m.header.content_type == "message/rfc822" if m.body payload = RMail::Parser.read(m.body) Best regards, Michael