Add tagging support

master
Manos Pitsidianakis 2020-07-31 16:50:14 +03:00
parent 7c839df7d0
commit b35047690e
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
4 changed files with 7 additions and 2 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>,

View File

@ -561,8 +561,8 @@ async function init(input) {
imports.wbg.__wbindgen_rethrow = function(arg0) {
throw takeObject(arg0);
};
imports.wbg.__wbindgen_closure_wrapper3446 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 753, __wbg_adapter_22);
imports.wbg.__wbindgen_closure_wrapper3455 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 764, __wbg_adapter_22);
return addHeapObject(ret);
};

Binary file not shown.

View File

@ -1393,6 +1393,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) {