From b1c93426313afc525631a047ae44954aaf1aac69 Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Sat, 13 Jun 2020 04:01:24 +0200 Subject: [PATCH] save raw mime headers under the eml extention instead of the text extention --- src/export_chat.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/export_chat.rs b/src/export_chat.rs index 794cba01a..c235bcf0e 100644 --- a/src/export_chat.rs +++ b/src/export_chat.rs @@ -57,10 +57,7 @@ pub fn pack_exported_chat( zip.start_file_from_path(Path::new(&format!("msg_info/{}.txt", msg_info.0)), options)?; zip.write_all((msg_info.1).as_bytes())?; if let Some(mime_headers) = msg_info.2 { - zip.start_file_from_path( - Path::new(&format!("msg_info/{}.mimeheaders.txt", msg_info.0)), - options, - )?; + zip.start_file_from_path(Path::new(&format!("msg_info/{}.eml", msg_info.0)), options)?; zip.write_all((mime_headers).as_bytes())?; } }