This commit is contained in:
Franz Heinzmann (Frando)
2020-06-10 13:01:58 +02:00
parent 7d2105dbc9
commit 311fffcfa4

View File

@@ -333,14 +333,11 @@ impl Job {
pub(crate) async fn send_msg_to_smtp(&mut self, context: &Context, smtp: &mut Smtp) -> Status { pub(crate) async fn send_msg_to_smtp(&mut self, context: &Context, smtp: &mut Smtp) -> Status {
// Upload file to HTTP if set in params. // Upload file to HTTP if set in params.
match ( if let (Some(upload_url), Ok(Some(upload_path))) = (
self.param.get_upload_url(), self.param.get_upload_url(),
self.param.get_upload_path(context), self.param.get_upload_path(context),
) { ) {
(Some(upload_url), Ok(Some(upload_path))) => { job_try!(upload_file(context, upload_url.to_string(), upload_path).await);
job_try!(upload_file(context, upload_url.to_string(), upload_path).await);
}
_ => {}
} }
// SMTP server, if not yet done // SMTP server, if not yet done