Browse Source

Add tagging support

tags/v2
Manos Pitsidianakis 1 year ago
parent
commit
b35047690e
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 4
      melib/src/backends/demo.rs
  2. 4
      pkg/meli.js
  3. BIN
      pkg/meli_bg.wasm
  4. 1
      src/conf/accounts.rs

4
melib/src/backends/demo.rs

@ -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>,

4
pkg/meli.js

@ -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);
};

BIN
pkg/meli_bg.wasm

1
src/conf/accounts.rs

@ -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) {

Loading…
Cancel
Save