Add tagging support
parent
c3048a95d7
commit
f12f8d2ae5
|
@ -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>,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue