Skip to content

Exported attachments in JPEG when using "-c efficient" #337

Answered by ReagentX
jsonmar asked this question in Q&A
Discussion options

You must be logged in to vote

-c efficient does not perform any conversion to attachment files:

AttachmentManager::Efficient => Self::copy_raw(from, &to),

/// Copy a file without altering it
fn copy_raw(from: &Path, to: &Path) {
// Ensure the directory tree exists
if let Some(folder) = to.parent() {
if !folder.exists() {
if let Err(why) = create_dir_all(folder) {
eprintln!("Unable to create {folder:?}: {why}");
}
}
}
if let Err(why) = copy(from, to) {
eprintln!(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ReagentX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants