From mboxrd@z Thu Jan 1 00:00:00 1970 From: michael+sup@stapelberg.de (Michael Stapelberg) Date: Tue, 22 Sep 2009 19:24:24 +0200 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted In-Reply-To: <1253638189-sup-7758@midna.zekjur.net> References: <1253638189-sup-7758@midna.zekjur.net> Message-ID: <1253640093-sup-48@midna.zekjur.net> Hi, Excerpts from Michael Stapelberg's message of Di Sep 22 19:05:48 +0200 2009: > I noticed that emails sent by Thunderbird which contain inline GPG messages > are not decrypted at all. I?ve attached such a message so you can verify > it. Unfortunately my ruby skills did not suffice to fix this on my own. Addition: Probably I was able to fix it, but the other bug I reported about not being able to open GPG encrypted email at all was the one I was seeing. So, fix should be easy (untested, because of the other bug): --- 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] + else + chunks = [notice] + end + + chunks elsif m.header.content_type == "message/rfc822" if m.body payload = RMail::Parser.read(m.body) Best regards, Michael