Emit progress information when parsing mbox messages

pull/29/head
Sebastian Thiel 2 years ago
parent 6521a7cd7c
commit c459c1e0a3
No known key found for this signature in database
GPG Key ID: 9CB5EE7895E8268B

@ -103,8 +103,7 @@ fn main() -> eyre::Result<()> {
)?;
let db = Database::new(&database)?;
let (_messages_ignored_tb_revised_once_there_is_more_feedback, handle) =
new_importer(config, db)?;
let (_messages, handle) = new_importer(config, db)?;
handle.join().expect("no panic")?;
}
};

@ -76,6 +76,7 @@ fn inner_emails(config: &Config, sender: MessageSender) -> Result<Vec<Mail>> {
return None;
}
};
sender.send(Message::ReadOne).ok();
Some(Mail {
path: mbox_file.clone(),
content: content.to_owned(),

Loading…
Cancel
Save