diff options
| author | J08nY | 2017-07-06 00:05:58 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-06 00:05:58 +0200 |
| commit | e1f89aa523f50ed9e2aba45fe815a65088036b37 (patch) | |
| tree | 07c831e550270e7b64baf2a5c628e9d9a81bc259 /src/mailman_pgp/pgp/mime.py | |
| parent | 0795d592dc568e37fa7dece30d13a185c38fac70 (diff) | |
| download | mailman-pgp-e1f89aa523f50ed9e2aba45fe815a65088036b37.tar.gz mailman-pgp-e1f89aa523f50ed9e2aba45fe815a65088036b37.tar.zst mailman-pgp-e1f89aa523f50ed9e2aba45fe815a65088036b37.zip | |
Diffstat (limited to 'src/mailman_pgp/pgp/mime.py')
| -rw-r--r-- | src/mailman_pgp/pgp/mime.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman_pgp/pgp/mime.py b/src/mailman_pgp/pgp/mime.py index ecddbb0..b28fc54 100644 --- a/src/mailman_pgp/pgp/mime.py +++ b/src/mailman_pgp/pgp/mime.py @@ -80,6 +80,9 @@ class MIMEWrapper: content_subtype == 'signed' and protocol_param == MIMEWrapper._signed_type) + def has_signature(self): + return self.is_signed() + def is_encrypted(self): """ Whether the whole message is MIME encrypted as per RFC3156 section 4. @@ -101,6 +104,9 @@ class MIMEWrapper: content_subtype == 'encrypted' and protocol_param == MIMEWrapper._encrypted_type) + def has_encryption(self): + return self.is_encrypted() + def is_keys(self): for part in walk(self.msg): if (not part.is_multipart() # noqa |
