simplified unattractive code
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 20 Jul 2015 00:03:34 +0000 (20:03 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:16:28 +0000 (13:16 -0500)
edward

diff --git a/edward b/edward
index cb6314831ae91909f6e190ece33aa045d199ae15..49b72f4acf4ba6d693df8d5ac4d4a7fe9d583b89 100755 (executable)
--- a/edward
+++ b/edward
@@ -89,14 +89,13 @@ def email_decode_flatten (email_text, gpgme_ctx, from_decryption):
             continue
 
         if content_type == "application/pgp-encrypted":
-            if description == "PGP/MIME version identification":
-                if payload.strip() != "Version: 1":
-                    print(progname + ": Warning: unknown " \
-                            + description + ": " \
-                            + payload.strip(), file=sys.stderr)
+            if ((description == "PGP/MIME version identification")
+                and (payload.strip() != "Version: 1")):
+                    debug("Warning: unknown " + description
+                          + ": " + payload.strip())
+            # ignore the version number
             continue
 
-
         if (filename == "encrypted.asc") or (content_type == "pgp/mime"):
             plaintext, more_keys = decrypt_text(payload, gpgme_ctx)