mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
save raw mime headers under the eml
extention instead of the text extention
This commit is contained in:
@@ -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())?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user