From 2edd0b682ada94c31b2f48cde6eedc56445702c6 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Wed, 25 Nov 2020 00:02:54 +0300 Subject: [PATCH] WIP vcard parsing --- src/mimeparser.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mimeparser.rs b/src/mimeparser.rs index 0a8404407..7d42fe92f 100644 --- a/src/mimeparser.rs +++ b/src/mimeparser.rs @@ -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; }