mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
bubble up sql, get_abs_path errors
This commit is contained in:
committed by
holger krekel
parent
275b4b8d36
commit
e40cfeec58
@@ -694,8 +694,7 @@ impl<'a> MimeFactory<'a> {
|
|||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
)
|
)?;
|
||||||
.unwrap_or_default();
|
|
||||||
|
|
||||||
let command = factory.msg.param.get_cmd();
|
let command = factory.msg.param.get_cmd();
|
||||||
let msg = &factory.msg;
|
let msg = &factory.msg;
|
||||||
@@ -898,9 +897,7 @@ fn build_body_file(
|
|||||||
wrapmime::append_ct_param(content, "name", &filename_encoded)?;
|
wrapmime::append_ct_param(content, "name", &filename_encoded)?;
|
||||||
|
|
||||||
let mime_sub = mailmime_new_empty(content, mime_fields);
|
let mime_sub = mailmime_new_empty(content, mime_fields);
|
||||||
let abs_path = dc_get_abs_path(context, path_filename)
|
let abs_path = dc_get_abs_path(context, path_filename).to_c_string()?;
|
||||||
.to_c_string()
|
|
||||||
.unwrap_or_default();
|
|
||||||
mailmime_set_body_file(mime_sub, dc_strdup(abs_path.as_ptr()));
|
mailmime_set_body_file(mime_sub, dc_strdup(abs_path.as_ptr()));
|
||||||
Ok((mime_sub, filename_to_send))
|
Ok((mime_sub, filename_to_send))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user