WIP vcard parsing

This commit is contained in:
Alexander Krotov
2020-11-25 00:02:54 +03:00
parent 0d2aaec742
commit 2edd0b682a

View File

@@ -820,6 +820,17 @@ impl MimeMessage {
|| filename.ends_with(".vcf")
|| filename.ends_with(".vcard")
{
println!("Parsing vcard {:?}", String::from_utf8_lossy(decoded_data));
for contact in ical::VcardParser::new(decoded_data) {
println!("Parsing contact {:?}", contact);
if let Ok(contact) = contact {
for property in contact.properties {
println!("Parsed property {:?}", property);
if property.name == "email" {
}
}
}
}
return;
}