|
@@ -178,12 +178,6 @@ fn persist_email(msg: &Message, uid: u32, list: String, original_path: PathBuf)
|
|
};
|
|
};
|
|
message.set_path(relative_path.display().to_string());
|
|
message.set_path(relative_path.display().to_string());
|
|
if Config::global().include_html {
|
|
if Config::global().include_html {
|
|
- // let html = append_ext("html", &message_dir.join(message.hash.clone()));
|
|
|
|
- // let mut file = File::create(html)?;
|
|
|
|
- // let data = message_to_html(message.clone());
|
|
|
|
- // file.write_all(data.as_bytes())?;
|
|
|
|
- // file.flush()?;
|
|
|
|
-
|
|
|
|
let data = message_to_html(message.clone());
|
|
let data = message_to_html(message.clone());
|
|
match compress_and_save_file(message_dir.clone(), message.hash.clone(), data.as_bytes()){
|
|
match compress_and_save_file(message_dir.clone(), message.hash.clone(), data.as_bytes()){
|
|
Ok(_) => {}
|
|
Ok(_) => {}
|