diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-05-13 10:04:07 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-05-13 10:04:07 +0200 |
commit | bff3f4050be4e015c99d1bae7fcf1289d026e5ad (patch) | |
tree | e4e5b911ce084d8a8d06c5dfdb9b390213fb59e3 /alot/db | |
parent | 4b5e28054c73dbfee3714ad16f2f7ae692fb175e (diff) |
commands/thread: use the headers object for building reply subject
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 9d5bb958..d849c91b 100644 --- a/alot/db/message.py +++ b/alot/db/message.py @@ -67,6 +67,13 @@ class _MessageHeaders: raise KeyError(key) return self._msg.get_all(key) + def get(self, key): + """ + Get the value of the first header with the name equal to key, + None if the header is not present. + """ + return self._msg.get(key) + def keys(self): return self._msg.keys() |