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)