diff options
author | Lars Kotthoff <larsko@uwyo.edu> | 2018-10-21 19:37:13 -0600 |
---|---|---|
committer | Gaute Hope <eg@gaute.vetsj.com> | 2018-10-27 10:24:53 +0200 |
commit | f2cdd34365fce0056442306d89672edfe5597c32 (patch) | |
tree | f469b6dff913bebd43203304b1aad9ef133f1af4 /src | |
parent | bc406575684c5930b51770d9c58f1c3f6f875b8b (diff) |
use NotmuchMessage
Diffstat (limited to 'src')
-rw-r--r-- | src/db.cc | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -335,11 +335,8 @@ namespace Astroid { find(additional_sent_tags.begin(), additional_sent_tags.end(), "*") != additional_sent_tags.end()) { notmuch_message_t * parent_msg; notmuch_database_find_message (nm_db, parent_mid.c_str (), &parent_msg); - vector<ustring> parent_tags; - for (notmuch_tags_t * tags = notmuch_message_get_tags (parent_msg); notmuch_tags_valid (tags); notmuch_tags_move_to_next (tags)) { - parent_tags.push_back (notmuch_tags_get (tags)); - } - + NotmuchMessage parent_msg_nm = NotmuchMessage(parent_msg); + vector<ustring> parent_tags = parent_msg_nm.tags; additional_sent_tags.insert (additional_sent_tags.end (), parent_tags.begin (), parent_tags.end ()); } |