mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
WIP vcard parsing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user