summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2017-01-24 13:07:50 +0100
committerLucas Hoffmann <l-m-h@web.de>2017-01-25 11:32:58 +0100
commit863c860ce87aaa076880975971c729408cd27db2 (patch)
tree2976997275b6db184966759e422f187ce727a90a /alot/commands/thread.py
parent119d77addb716b4bede63fb59677f585558669c8 (diff)
Add docstring
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r--alot/commands/thread.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 59adc3e5..de0ac50e 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -287,7 +287,16 @@ class ReplyCommand(Command):
@staticmethod
def clear_my_address(my_addresses, value):
- """return recipient header without the addresses in my_addresses"""
+ """return recipient header without the addresses in my_addresses
+
+ :param my_addresses: a list of my email addresses (no real name part)
+ :type my_addresses: list(str)
+ :param value: a list of recipient or sender strings (with or without
+ real names as taken from email headers)
+ :type value: list(str)
+ :returns: a new, potentially shortend list
+ :rtype: list(str)
+ """
new_value = []
for name, address in getaddresses(value):
if address not in my_addresses: