Add tagging support

Manos Pitsidianakis 2020-07-31 16:50:14 +03:00
parent f35362460c
commit 82d7af4929
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
3 changed files with 5 additions and 0 deletions

View File

@ -228,6 +228,10 @@ impl MailBackend for DemoType {
)))
}
fn tags(&self) -> Option<Arc<RwLock<BTreeMap<u64, String>>>> {
Some(self.tag_index.clone())
}
fn save(
&self,
_bytes: Vec<u8>,

Binary file not shown.

View File

@ -1520,6 +1520,7 @@ impl Account {
} else {
use melib::search::QueryTrait;
let mut ret = SmallVec::new();
melib::log(format!("Starting search {:?}", search_term), melib::WARN);
let envelopes = self.collection.envelopes.read().unwrap();
for &env_hash in self.collection.get_mailbox(mailbox_hash).iter() {
if let Some(envelope) = envelopes.get(&env_hash) {