mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 13:17:55 +08:00
update lettre to v0.10.0-rc.1 (#150)
$ cargo update -p lettre --aggressive
Updating crates.io index
Updating aho-corasick v0.7.15 -> v0.7.18
Removing bytes v1.0.1
Updating cc v1.0.66 -> v1.0.67
Adding fastrand v1.4.1
Removing getrandom v0.1.15
Removing http v0.2.3
Removing httparse v1.3.5
Updating httpdate v0.3.2 -> v1.0.0
Removing hyperx v1.3.0
Updating idna v0.2.0 -> v0.2.3
Removing language-tags v0.2.2
Updating lettre v0.10.0-beta.3 -> v0.10.0-rc.1
Updating libc v0.2.88 -> v0.2.94
Updating lock_api v0.4.3 -> v0.4.4
Updating memchr v2.3.4 -> v2.4.0
Updating native-tls v0.2.6 -> v0.2.7
Updating once_cell v1.5.2 -> v1.7.2
Updating openssl v0.10.32 -> v0.10.34
Updating openssl-probe v0.1.2 -> v0.1.4
Updating openssl-sys v0.9.60 -> v0.9.63
Updating parking_lot_core v0.8.2 -> v0.8.3
Removing percent-encoding v2.1.0
Updating quoted_printable v0.4.2 -> v0.4.3
Removing rand v0.7.3
Removing rand_chacha v0.2.2
Removing rand_core v0.5.1
Removing rand_hc v0.2.0
Adding redox_syscall v0.2.8
Updating regex v1.4.2 -> v1.5.4
Updating regex-syntax v0.6.21 -> v0.6.25
Updating security-framework v2.0.0 -> v2.2.0
Updating security-framework-sys v2.0.0 -> v2.2.0
Updating smallvec v1.6.0 -> v1.6.1
Updating tempfile v3.1.0 -> v3.2.0
Removing thread_local v1.0.1
Updating tinyvec v1.1.0 -> v1.2.0
Removing unicase v2.6.0
Updating unicode-bidi v0.3.4 -> v0.3.5
Updating unicode-normalization v0.1.16 -> v0.1.17
Updating vcpkg v0.2.11 -> v0.2.12
Updating version_check v0.9.2 -> v0.9.3
Removing wasi v0.9.0+wasi-snapshot-preview1
This commit is contained in:
+4
-11
@@ -339,7 +339,7 @@ impl<'m> Msg<'m> {
|
||||
});
|
||||
|
||||
let text_part = SinglePart::builder()
|
||||
.header(ContentType("text/plain; charset=utf-8".parse().unwrap()))
|
||||
.header(ContentType::TEXT_PLAIN)
|
||||
.header(encoding)
|
||||
.body(parsed.get_body_raw()?);
|
||||
|
||||
@@ -360,17 +360,10 @@ impl<'m> Msg<'m> {
|
||||
|
||||
parts = parts.singlepart(
|
||||
SinglePart::builder()
|
||||
.header(ContentType(attachment_ctype.parse().chain_err(|| {
|
||||
.content_type(attachment_ctype.parse().chain_err(|| {
|
||||
format!("Could not parse content type `{}`", attachment_ctype)
|
||||
})?))
|
||||
.header(ContentDisposition {
|
||||
disposition: DispositionType::Attachment,
|
||||
parameters: vec![DispositionParam::Filename(
|
||||
Charset::Ext("utf-8".into()),
|
||||
None,
|
||||
attachment_name.as_bytes().into(),
|
||||
)],
|
||||
})
|
||||
})?)
|
||||
.header(ContentDisposition::attachment(&attachment_name))
|
||||
.body(Body::new(attachment_content)),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user