diff options
| author | J08nY | 2017-08-23 23:15:23 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-23 23:15:23 +0200 |
| commit | 024a2481dfe320b7e4604d8e3088d6b88dab7325 (patch) | |
| tree | 8e347edc1156290b89df312eb279dc0133a2523d /src/mailman_pgp/pgp/mime.py | |
| parent | 77c2dc1feed19224e1884250341873b88444a041 (diff) | |
| download | mailman-pgp-feature/strip-sig.tar.gz mailman-pgp-feature/strip-sig.tar.zst mailman-pgp-feature/strip-sig.zip | |
Diffstat (limited to 'src/mailman_pgp/pgp/mime.py')
| -rw-r--r-- | src/mailman_pgp/pgp/mime.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mailman_pgp/pgp/mime.py b/src/mailman_pgp/pgp/mime.py index 9ea6384..47e1037 100644 --- a/src/mailman_pgp/pgp/mime.py +++ b/src/mailman_pgp/pgp/mime.py @@ -103,6 +103,17 @@ class MIMEWrapper(BaseWrapper): return yield sig + def strip_signature(self): + """ + + :return: + :rtype: MIMEWrapper + """ + inner = self.msg.get_payload(0) + copy_headers(inner, self.msg, True) + self.msg.set_payload(inner.get_payload()) + return self + def is_encrypted(self): """ Whether the whole message is MIME encrypted as per RFC3156 section 4. |
