Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: thread: Fix 'oldest subject' thread names
The notmuch2 bindings change now means the retrieval of the oldest subject from a thread needs to be reworked. When the config option is chosen to use the oldest subject: # Set thread subjects to the first (oldest) message thread_subject = oldest The following error is generated: File "/home/kbingham/iob/alot/alot/db/thread.py", line 50, in _refresh first_msg = list(thread.get_toplevel_messages())[0] AttributeError: 'Thread' object has no attribute 'get_toplevel_messages' Update the code to use the correct interface on both the Thread and Message objects. Signed-off-by: Kieran Bingham <[email protected]>
- Loading branch information