mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 01:06:31 +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.start_file_from_path(Path::new(&format!("msg_info/{}.txt", msg_info.0)), options)?;
|
||||||
zip.write_all((msg_info.1).as_bytes())?;
|
zip.write_all((msg_info.1).as_bytes())?;
|
||||||
if let Some(mime_headers) = msg_info.2 {
|
if let Some(mime_headers) = msg_info.2 {
|
||||||
zip.start_file_from_path(
|
zip.start_file_from_path(Path::new(&format!("msg_info/{}.eml", msg_info.0)), options)?;
|
||||||
Path::new(&format!("msg_info/{}.mimeheaders.txt", msg_info.0)),
|
|
||||||
options,
|
|
||||||
)?;
|
|
||||||
zip.write_all((mime_headers).as_bytes())?;
|
zip.write_all((mime_headers).as_bytes())?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user