bubble up sql, get_abs_path errors

This commit is contained in:
B. Petersen
2019-10-05 17:17:09 +02:00
committed by holger krekel
parent 275b4b8d36
commit e40cfeec58

View File

@@ -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))
} }