Bump to mail-send 0.4.6

This commit is contained in:
mdecimus 2023-12-30 09:43:18 +01:00
parent 80007961db
commit 2f58638df6
3 changed files with 20 additions and 19 deletions

36
Cargo.lock generated
View file

@ -81,9 +81,9 @@ dependencies = [
[[package]] [[package]]
name = "ahash" name = "ahash"
version = "0.8.6" version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a" checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"getrandom", "getrandom",
@ -1416,7 +1416,7 @@ dependencies = [
name = "directory" name = "directory"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"argon2", "argon2",
"async-trait", "async-trait",
"deadpool", "deadpool",
@ -2188,7 +2188,7 @@ version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"allocator-api2", "allocator-api2",
] ]
@ -2547,7 +2547,7 @@ checksum = "029d73f573d8e8d63e6d5020011d3255b28c3ba85d6cf870a07184ed23de9284"
name = "imap" name = "imap"
version = "0.5.0" version = "0.5.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"dashmap", "dashmap",
"directory", "directory",
"imap_proto", "imap_proto",
@ -2572,7 +2572,7 @@ dependencies = [
name = "imap_proto" name = "imap_proto"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"chrono", "chrono",
"jmap_proto", "jmap_proto",
"mail-parser", "mail-parser",
@ -2779,7 +2779,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12c697483ad894a8184d0fd61848e057f86b16642049993b3e6a80c959dbc90a" checksum = "12c697483ad894a8184d0fd61848e057f86b16642049993b3e6a80c959dbc90a"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"async-stream", "async-stream",
"base64 0.13.1", "base64 0.13.1",
"chrono", "chrono",
@ -2799,7 +2799,7 @@ dependencies = [
name = "jmap_proto" name = "jmap_proto"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"fast-float", "fast-float",
"mail-parser", "mail-parser",
"serde", "serde",
@ -3079,7 +3079,7 @@ version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "224aa436a40caeef3bd3fa1b5b619b28b26d83fcc088c008536886f74ad27951" checksum = "224aa436a40caeef3bd3fa1b5b619b28b26d83fcc088c008536886f74ad27951"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"flate2", "flate2",
"hickory-resolver", "hickory-resolver",
"lru-cache", "lru-cache",
@ -3115,9 +3115,9 @@ dependencies = [
[[package]] [[package]]
name = "mail-send" name = "mail-send"
version = "0.4.5" version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0ae928c5d8b258cc56ee9d4efbfc7856a40d8bbd4e6ea2afea33cf4bb1e7b96" checksum = "5f5982137dccf24ca038daa022eb0ea97a31e9739477445a787a8ef77e015ebb"
dependencies = [ dependencies = [
"base64 0.21.5", "base64 0.21.5",
"gethostname", "gethostname",
@ -3151,7 +3151,7 @@ dependencies = [
name = "managesieve" name = "managesieve"
version = "0.5.0" version = "0.5.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"bincode", "bincode",
"directory", "directory",
"imap", "imap",
@ -3418,7 +3418,7 @@ dependencies = [
name = "nlp" name = "nlp"
version = "0.5.0" version = "0.5.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"bincode", "bincode",
"farmhash", "farmhash",
"jieba-rs", "jieba-rs",
@ -5294,7 +5294,7 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25494c13da6c336430906aa783e4bb2ae251c84158d6e5a4fdf0449a779c2521" checksum = "25494c13da6c336430906aa783e4bb2ae251c84158d6e5a4fdf0449a779c2521"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"bincode", "bincode",
"fancy-regex", "fancy-regex",
"mail-builder", "mail-builder",
@ -5359,7 +5359,7 @@ checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970"
name = "smtp" name = "smtp"
version = "0.5.0" version = "0.5.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"bincode", "bincode",
"blake3", "blake3",
"dashmap", "dashmap",
@ -5530,7 +5530,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
name = "store" name = "store"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"async-trait", "async-trait",
"blake3", "blake3",
"bytes", "bytes",
@ -5744,7 +5744,7 @@ dependencies = [
name = "tests" name = "tests"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"async-trait", "async-trait",
"base64 0.21.5", "base64 0.21.5",
"bytes", "bytes",
@ -6387,7 +6387,7 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
name = "utils" name = "utils"
version = "0.5.0" version = "0.5.0"
dependencies = [ dependencies = [
"ahash 0.8.6", "ahash 0.8.7",
"chrono", "chrono",
"dashmap", "dashmap",
"mail-auth", "mail-auth",

View file

@ -55,6 +55,7 @@ impl SmtpDirectory {
.value("server.hostname") .value("server.hostname")
.unwrap_or("[127.0.0.1]") .unwrap_or("[127.0.0.1]")
.to_string(), .to_string(),
say_ehlo: false,
}, },
max_rcpt: config.property_or_static((&prefix, "limits.rcpt"), "10")?, max_rcpt: config.property_or_static((&prefix, "limits.rcpt"), "10")?,
max_auth_errors: config.property_or_static((&prefix, "limits.auth-errors"), "3")?, max_auth_errors: config.property_or_static((&prefix, "limits.auth-errors"), "3")?,

View file

@ -33,7 +33,7 @@ impl managed::Manager for SmtpConnectionManager {
type Error = Error; type Error = Error;
async fn create(&self) -> Result<SmtpClient, Error> { async fn create(&self) -> Result<SmtpClient, Error> {
let mut client = self.builder.connect_opts(false).await?; let mut client = self.builder.connect().await?;
let capabilities = client let capabilities = client
.capabilities(&self.builder.local_host, self.builder.is_lmtp) .capabilities(&self.builder.local_host, self.builder.is_lmtp)
.await?; .await?;