summaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/wrapper.py
diff options
context:
space:
mode:
authorJ08nY2017-08-23 23:18:52 +0200
committerJ08nY2017-08-23 23:18:52 +0200
commit5bfab2f9780f41d5ab061a2d3b338ae0f45e10cf (patch)
tree8e347edc1156290b89df312eb279dc0133a2523d /src/mailman_pgp/pgp/wrapper.py
parent77c2dc1feed19224e1884250341873b88444a041 (diff)
parent024a2481dfe320b7e4604d8e3088d6b88dab7325 (diff)
downloadmailman-pgp-5bfab2f9780f41d5ab061a2d3b338ae0f45e10cf.tar.gz
mailman-pgp-5bfab2f9780f41d5ab061a2d3b338ae0f45e10cf.tar.zst
mailman-pgp-5bfab2f9780f41d5ab061a2d3b338ae0f45e10cf.zip
Diffstat (limited to 'src/mailman_pgp/pgp/wrapper.py')
-rw-r--r--src/mailman_pgp/pgp/wrapper.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mailman_pgp/pgp/wrapper.py b/src/mailman_pgp/pgp/wrapper.py
index f746229..fdb7eeb 100644
--- a/src/mailman_pgp/pgp/wrapper.py
+++ b/src/mailman_pgp/pgp/wrapper.py
@@ -112,6 +112,21 @@ class PGPWrapper(BaseWrapper):
elif self.inline.is_signed():
yield from self.inline.get_signature()
+ def strip_signature(self):
+ """
+
+ :return:
+ :rtype: PGPWrapper
+ """
+ result = None
+ if self.mime.is_signed():
+ result = self.mime.strip_signature()
+ elif self.multisig.is_signed():
+ result = self.multisig.strip_signature()
+ elif self.inline.is_signed():
+ result = self.inline.strip_signature()
+ return self._rewrap(result)
+
def sign(self, key, **kwargs):
"""
Sign a message with key.