diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-05-13 10:12:48 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-05-13 11:36:57 +0200 |
commit | eef2d7d1521c88b689794a0bceedc40e93711a3e (patch) | |
tree | 958933fbbfacb51b101e1e15e0a69442629b4d75 /alot/db | |
parent | 4d143150ba1764ada71a07d1c97408caac1d24b7 (diff) |
commands/thread:ReplyCommand: use the message headers object for building reply
Diffstat (limited to 'alot/db')
-rw-r--r-- | alot/db/message.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/alot/db/message.py b/alot/db/message.py index d849c91b..df6f8b1c 100644 --- a/alot/db/message.py +++ b/alot/db/message.py @@ -74,6 +74,13 @@ class _MessageHeaders: """ return self._msg.get(key) + def get_all(self, key): + """ + Get the list of all values of the header with the name equal to key, + empty list of the header is not present. + """ + return self._msg.get_all(key, []) + def keys(self): return self._msg.keys() |