summaryrefslogtreecommitdiff
path: root/memoryhole/__init__.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2016-07-06 15:35:24 +0200
committerRuben Pollan <meskio@sindominio.net>2016-07-06 15:35:24 +0200
commit2bf3ef57a1f2841116268010cd80984208725f45 (patch)
tree27384afc7f1094124169114f58c1960be396bdcd /memoryhole/__init__.py
parent7396398e81fda41d4cb2ea7ffbdfa8f02746cad8 (diff)
[doc] document public methods
Diffstat (limited to 'memoryhole/__init__.py')
-rw-r--r--memoryhole/__init__.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/memoryhole/__init__.py b/memoryhole/__init__.py
index 5cd55b6..fd621ea 100644
--- a/memoryhole/__init__.py
+++ b/memoryhole/__init__.py
@@ -8,6 +8,18 @@ OBSCURED_HEADERS = ('Subject', 'Message-ID', 'Date', 'To', 'From')
def unwrap(msg, opengp=Gnupg()):
+ """
+ Unwrap an email replacing and verifying memory hole headers.
+
+ :param msg: the email to be unwrapped
+ :type msg: Message
+ :param openpgp: the implementation of openpgp to use for decryption and/or
+ verification
+ :type openpgp: OpenPGP
+
+ :return: a dencrypted email
+ :rtype: Message
+ """
raise NotImplementedError()