Adapt for new libimagcontact interface

This commit is contained in:
Matthias Beyer 2018-04-27 13:48:18 +02:00
parent 5f3b7b31e7
commit 713621337f
2 changed files with 2 additions and 2 deletions

View file

@ -277,7 +277,7 @@ fn find(rt: &Runtime) {
};
let take = card.adr().iter().any(|a| str_contains_any(a, &grepstring))
|| card.email().iter().any(|a| str_contains_any(a, &grepstring))
|| card.email().iter().any(|a| str_contains_any(&a.address, &grepstring))
|| card.fullname().iter().any(|a| str_contains_any(a, &grepstring));
if take {

View file

@ -45,7 +45,7 @@ pub fn build_data_object_for_handlebars<'a>(i: usize, vcard: &DeserVcard) -> BTr
data.insert("BDAY" , process_opt(vcard.bday()));
data.insert("CATEGORIES" , process_list(vcard.categories()));
data.insert("CLIENTPIDMAP" , process_opt(vcard.clientpidmap()));
data.insert("EMAIL" , process_list(vcard.email()));
data.insert("EMAIL" , process_list(&vcard.email().iter().map(|a| a.address.clone()).collect()));
data.insert("FN" , process_list(vcard.fullname()));
data.insert("GENDER" , process_opt(vcard.gender()));
data.insert("GEO" , process_list(vcard.geo()));