Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.
Rust emailemail-validationemail-validation-apiemail-verificationemail-verification-apiemail-verifierhacktoberfest
chore: Bump packages incl `async-smtp` (#1136)
Amaurycbdab7c35bc4
diff --git a/Cargo.lock b/Cargo.lockindex 1d8e7819..43010013 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -17,12 +17,6 @@ version = "1.0.41"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "15af2628f6890fe2609a3b91bef4c83450512802e59489f9c1cb1fa5df064a61"-[[package]]-name = "arrayvec"-version = "0.5.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"-[[package]]name = "ascii_utils"version = "0.9.3"@@ -85,7 +79,7 @@ dependencies = ["parking","polling","slab",- "socket2 0.4.0",+ "socket2","waker-fn","winapi",]@@ -110,21 +104,21 @@ dependencies = [[[package]]name = "async-native-tls"-version = "0.3.3"+version = "0.4.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9e9e7a929bd34c68a82d58a4de7f86fffdaf97fb2af850162a7bb19dd7269b33"+checksum = "d57d4cec3c647232e1094dc013546c0b33ce785d8aeb251e1f20dfaf8a9a13fe"dependencies = [- "async-std","native-tls","thiserror",+ "tokio","url",][[package]]name = "async-process"-version = "1.1.0"+version = "1.4.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a8f38756dd9ac84671c428afbf7c9f7495feff9ec5b0710f17100098e5b354ac"+checksum = "cf2c06e30a24e8c78a3987d07f0930edf76ef35e027e7bdb063fccafdad1f60c"dependencies = ["async-io","blocking",@@ -150,18 +144,17 @@ dependencies = [[[package]]name = "async-smtp"-version = "0.4.0"+version = "0.5.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "472a081e9e3a92f9201237f07b51c0bab657336ca6600fd2f243c9cc3c9c81ff"+checksum = "6da21e1dd19fbad3e095ad519fb1558ab77fd82e5c4778dca8f9be0464589e1e"dependencies = ["async-native-tls",- "async-std","async-trait","base64","bufstream","fast-socks5",- "fast_chemail",- "hostname 0.1.5",+ "futures",+ "hostname","log","nom","pin-project",@@ -170,6 +163,7 @@ dependencies = ["serde_derive","serde_json","thiserror",+ "tokio",][[package]]@@ -201,15 +195,16 @@ dependencies = [[[package]]name = "async-std-resolver"-version = "0.20.4"+version = "0.21.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dbf3e776afdf3a2477ef4854b85ba0dff3bd85792f685fb3c68948b4d304e4f0"+checksum = "0f2f8a4a203be3325981310ab243a28e6e4ea55b6519bffce05d41ab60e09ad8"dependencies = ["async-std","async-trait","futures-io","futures-util","pin-utils",+ "socket2","trust-dns-resolver",]@@ -249,9 +244,9 @@ dependencies = [[[package]]name = "autocfg"-version = "1.0.1"+version = "1.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"+checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"[[package]]name = "base64"@@ -317,7 +312,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"[[package]]name = "check-if-email-exists"-version = "0.8.30"+version = "0.8.31"dependencies = ["async-native-tls","async-recursion",@@ -339,7 +334,7 @@ dependencies = [[[package]]name = "check-if-email-exists-cli"-version = "0.8.30"+version = "0.8.31"dependencies = ["check-if-email-exists","clap",@@ -364,27 +359,26 @@ dependencies = [[[package]]name = "clap"-version = "3.0.0-beta.4"+version = "3.2.16"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fcd70aa5597dbc42f7217a543f9ef2768b2ef823ba29036072d30e1d88e98406"+checksum = "a3dbbb6653e7c55cc8595ad3e1f7be8f32aba4eb7ff7f0fd1163d4f3d137c0a9"dependencies = ["atty","bitflags","clap_derive",+ "clap_lex","indexmap",- "lazy_static",- "os_str_bytes",+ "once_cell","strsim","termcolor","textwrap",- "vec_map",][[package]]name = "clap_derive"-version = "3.0.0-beta.4"+version = "3.2.15"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b5bb0d655624a0b8770d1c178fb8ffcb1f91cc722cb08f451e3dc72465421ac"+checksum = "9ba52acd3b0a5c33aeada5cdaa3267cdc7c594a98731d4268cdc1532f4264cb4"dependencies = ["heck","proc-macro-error",@@ -393,6 +387,15 @@ dependencies = ["syn",]+[[package]]+name = "clap_lex"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5"+dependencies = [+ "os_str_bytes",+]+[[package]]name = "concurrent-queue"version = "1.2.2"@@ -461,9 +464,9 @@ dependencies = [[[package]]name = "enum-as-inner"-version = "0.3.3"+version = "0.4.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7c5f0096a91d210159eceb2ff5e1c4da18388a170e1e3ce948aac9c8fdbbf595"+checksum = "21cdad81446a7f7dc43f6a77409efeb9733d2fa65553efef6018ef257c959b73"dependencies = ["heck","proc-macro2",@@ -492,15 +495,15 @@ checksum = "f7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59"[[package]]name = "fast-socks5"-version = "0.4.3"+version = "0.8.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba337793c1ee49731350a8d971d791651ed51d6e814ab4ddabd79c12b5366140"+checksum = "25bef00d863e757b64a737857143b5425061271a4149ff5d81201fb4c9bfc01c"dependencies = ["anyhow",- "async-std",- "futures","log","thiserror",+ "tokio",+ "tokio-stream",][[package]]@@ -664,7 +667,7 @@ checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"dependencies = ["cfg-if","libc",- "wasi",+ "wasi 0.10.2+wasi-snapshot-preview1",][[package]]@@ -707,12 +710,9 @@ checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04"[[package]]name = "heck"-version = "0.3.3"+version = "0.4.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"-dependencies = [- "unicode-segmentation",-]+checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"[[package]]name = "hermit-abi"@@ -723,16 +723,6 @@ dependencies = ["libc",]-[[package]]-name = "hostname"-version = "0.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "21ceb46a83a85e824ef93669c8b390009623863b5c195d1ba747292c0c72f94e"-dependencies = [- "libc",- "winutil",-]-[[package]]name = "hostname"version = "0.3.1"@@ -801,7 +791,7 @@ dependencies = ["httpdate","itoa 1.0.1","pin-project-lite",- "socket2 0.4.0",+ "socket2","tokio","tower-service","tracing",@@ -853,14 +843,14 @@ dependencies = [[[package]]name = "ipconfig"-version = "0.2.2"+version = "0.3.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f7e2f18aece9709094573a9f24f483c4f65caa4298e2f7ae1b71cc65d853fad7"+checksum = "723519edce41262b05d4143ceb95050e4c614f483e78e9fd9e39a8275a84ad98"dependencies = [- "socket2 0.3.19",+ "socket2","widestring","winapi",- "winreg 0.6.2",+ "winreg 0.7.0",][[package]]@@ -905,37 +895,25 @@ version = "1.4.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"-[[package]]-name = "lexical-core"-version = "0.7.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe"-dependencies = [- "arrayvec",- "bitflags",- "cfg-if",- "ryu",- "static_assertions",-]-[[package]]name = "libc"-version = "0.2.97"+version = "0.2.129"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "12b8adadd720df158f4d70dfe7ccc6adb0472d7c55ca83445f6a5ab3e36f8fb6"+checksum = "64de3cc433455c14174d42e554d4027ee631c4d046d43e3ecc6efc4636cdc7a7"[[package]]name = "linked-hash-map"-version = "0.5.4"+version = "0.5.6"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"+checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"[[package]]name = "lock_api"-version = "0.4.4"+version = "0.4.7"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0382880606dff6d15c9476c416d18690b72742aa7b605bb6dd6ec9030fbf07eb"+checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53"dependencies = [+ "autocfg","scopeguard",]@@ -993,25 +971,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"[[package]]-name = "mio"-version = "0.7.13"+name = "minimal-lexical"+version = "0.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8c2bdb6314ec10835cd3293dd268473a835c02b7b352e788be788b3c6ca6bb16"-dependencies = [- "libc",- "log",- "miow",- "ntapi",- "winapi",-]+checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"[[package]]-name = "miow"-version = "0.3.7"+name = "mio"+version = "0.8.4"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"+checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf"dependencies = [- "winapi",+ "libc",+ "log",+ "wasi 0.11.0+wasi-snapshot-preview1",+ "windows-sys",][[package]]@@ -1034,22 +1008,12 @@ dependencies = [[[package]]name = "nom"-version = "5.1.2"+version = "7.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ffb4262d26ed83a1c0a33a38fe2bb15797329c85770da05e6b828ddb782627af"+checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36"dependencies = [- "lexical-core","memchr",- "version_check",-]--[[package]]-name = "ntapi"-version = "0.3.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44"-dependencies = [- "winapi",+ "minimal-lexical",][[package]]@@ -1125,9 +1089,9 @@ dependencies = [[[package]]name = "os_str_bytes"-version = "3.1.0"+version = "6.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6acbef58a60fe69ab50510a55bc8cdd4d6cf2283d27ad338f54cb52747a9cf2d"+checksum = "648001efe5d5c0102d8cea768e348da85d90af8ba91f0bea908f157951493cd4"[[package]]name = "parking"@@ -1137,27 +1101,25 @@ checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72"[[package]]name = "parking_lot"-version = "0.11.1"+version = "0.12.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb"+checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"dependencies = [- "instant","lock_api","parking_lot_core",][[package]]name = "parking_lot_core"-version = "0.8.3"+version = "0.9.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fa7a782938e745763fe6907fc6ba86946d72f49fe7e21de074e08128a99fb018"+checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929"dependencies = ["cfg-if",- "instant","libc","redox_syscall","smallvec",- "winapi",+ "windows-sys",][[package]]@@ -1380,7 +1342,7 @@ version = "0.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "52e44394d2086d010551b14b53b1f24e31647570cd1deb0379e2c21b329aba00"dependencies = [- "hostname 0.3.1",+ "hostname","quick-error",]@@ -1474,9 +1436,9 @@ dependencies = [[[package]]name = "signal-hook"-version = "0.3.9"+version = "0.3.14"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "470c5a6397076fae0094aaf06a08e6ba6f37acb77d3b1b91ea92b4d6c8650c39"+checksum = "a253b5e89e2698464fc26b545c9edceb338e18a89effeeecfea192c3025be29d"dependencies = ["libc","signal-hook-registry",@@ -1499,37 +1461,20 @@ checksum = "f173ac3d1a7e3b28003f40de0b5ce7fe2710f9b9dc3fc38664cebee46b3b6527"[[package]]name = "smallvec"-version = "1.6.1"+version = "1.9.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"+checksum = "2fd0db749597d91ff862fd1d55ea87f7855a744a8425a64695b6fca237d1dad1"[[package]]name = "socket2"-version = "0.3.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e"-dependencies = [- "cfg-if",- "libc",- "winapi",-]--[[package]]-name = "socket2"-version = "0.4.0"+version = "0.4.4"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9e3dfc207c526015c632472a77be09cf1b6e46866581aecae5cc38fb4235dea2"+checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0"dependencies = ["libc","winapi",]-[[package]]-name = "static_assertions"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"-[[package]]name = "strsim"version = "0.10.0"@@ -1572,12 +1517,9 @@ dependencies = [[[package]]name = "textwrap"-version = "0.14.2"+version = "0.15.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80"-dependencies = [- "unicode-width",-]+checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"[[package]]name = "thiserror"@@ -1616,16 +1558,18 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"[[package]]name = "tokio"-version = "1.16.1"+version = "1.19.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0c27a64b625de6d309e8c57716ba93021dccf1b3b5c97edd6d3dd2d2135afc0a"+checksum = "c51a52ed6686dd62c320f9b89299e9dfb46f730c7a48e635c19f21d116cb1439"dependencies = ["bytes","libc","memchr","mio","num_cpus",+ "once_cell","pin-project-lite",+ "socket2","tokio-macros","winapi",]@@ -1663,6 +1607,17 @@ dependencies = ["tokio",]+[[package]]+name = "tokio-stream"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df54d54117d6fdc4e4fea40fe1e4e566b3505700e148a6827e59b34b0d2600d9"+dependencies = [+ "futures-core",+ "pin-project-lite",+ "tokio",+]+[[package]]name = "tokio-util"version = "0.6.7"@@ -1705,9 +1660,9 @@ dependencies = [[[package]]name = "trust-dns-proto"-version = "0.20.4"+version = "0.21.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ca94d4e9feb6a181c690c4040d7a24ef34018d8313ac5044a61d21222ae24e31"+checksum = "9c31f240f59877c3d4bb3b3ea0ec5a6a0cff07323580ff8c7a605cd7d08b255d"dependencies = ["async-trait","cfg-if",@@ -1730,9 +1685,9 @@ dependencies = [[[package]]name = "trust-dns-resolver"-version = "0.20.4"+version = "0.21.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ecae383baad9995efaa34ce8e57d12c3f305e545887472a492b838f4b5cfb77a"+checksum = "e4ba72c2ea84515690c9fcef4c6c660bb9df3036ed1051686de84605b74fd558"dependencies = ["cfg-if","futures-util",@@ -1777,18 +1732,6 @@ dependencies = ["tinyvec",]-[[package]]-name = "unicode-segmentation"-version = "1.7.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796"--[[package]]-name = "unicode-width"-version = "0.1.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3"-[[package]]name = "url"version = "2.2.2"@@ -1817,12 +1760,6 @@ version = "0.2.15"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"-[[package]]-name = "vec_map"-version = "0.8.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"-[[package]]name = "version_check"version = "0.9.3"@@ -1851,6 +1788,12 @@ version = "0.10.2+wasi-snapshot-preview1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"+[[package]]+name = "wasi"+version = "0.11.0+wasi-snapshot-preview1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"+[[package]]name = "wasm-bindgen"version = "0.2.74"@@ -1938,9 +1881,9 @@ dependencies = [[[package]]name = "widestring"-version = "0.4.3"+version = "0.5.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c168940144dd21fd8046987c16a46a33d5fc84eec29ef9dcddc2ac9e31526b7c"+checksum = "17882f045410753661207383517a6f62ec3dbeb6a4ed2acce01f0728238d1983"[[package]]name = "winapi"@@ -1974,28 +1917,62 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"[[package]]-name = "winreg"-version = "0.6.2"+name = "windows-sys"+version = "0.36.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b2986deb581c4fe11b621998a5e53361efe6b48a151178d0cd9eeffa4dc6acc9"+checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"dependencies = [- "winapi",+ "windows_aarch64_msvc",+ "windows_i686_gnu",+ "windows_i686_msvc",+ "windows_x86_64_gnu",+ "windows_x86_64_msvc",]+[[package]]+name = "windows_aarch64_msvc"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"++[[package]]+name = "windows_i686_gnu"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"++[[package]]+name = "windows_i686_msvc"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"++[[package]]+name = "windows_x86_64_gnu"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"++[[package]]+name = "windows_x86_64_msvc"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"+[[package]]name = "winreg"-version = "0.10.1"+version = "0.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"+checksum = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69"dependencies = ["winapi",][[package]]-name = "winutil"-version = "0.1.1"+name = "winreg"+version = "0.10.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7daf138b6b14196e3830a588acf1e86966c694d3e8fb026fb105b8b5dca07e6e"+checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"dependencies = ["winapi",]diff --git a/Cargo.toml b/Cargo.tomlindex b3ba5850..43860615 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -1,6 +1,6 @@[package]name = "check-if-email-exists-cli"-version = "0.8.30"+version = "0.8.31"default-run = "check_if_email_exists"edition = "2018"description = "Check if an email address exists without sending any email."@@ -14,7 +14,7 @@ path = "src/main.rs"[dependencies]check-if-email-exists = { path = "./core" }-clap = "3.0.0-beta.4"+clap = { version = "3.2.16", features = ["derive", "env"] }env_logger = "0.9.0"once_cell = "1.13.0"openssl = { version = "0.10.41", features = ["vendored"] }diff --git a/Dockerfile b/Dockerfileindex 42aa7f87..4d836796 100644--- a/Dockerfile+++ b/Dockerfile@@ -8,7 +8,7 @@ FROM alpine# `ciee` stands for check-if-email-existsWORKDIR /ciee# Fetch latest version-ENV CIEE_VERSION 0.8.30+ENV CIEE_VERSION 0.8.31# Install needed librariesRUN apk update && \diff --git a/README.md b/README.mdindex 589448de..ca2eda79 100644--- a/README.md+++ b/README.md@@ -22,21 +22,21 @@ If you don't have time to waste configuring, hosting, debugging, and maintaining| Included? | Feature | Description | JSON field || --------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |-| ✅ | **Email reachability** | How confident are we in sending an email to this address? Can be one of `safe`, `risky`, `invalid` or `unknown`. | `is_reachable` |-| ✅ | **Syntax validation** | Is the address syntactically valid? | `syntax.is_valid_syntax` |-| ✅ | **DNS records validation** | Does the domain of the email address have valid MX DNS records? | `mx.accepts_mail` |-| ✅ | **Disposable email address (DEA) validation** | Is the address provided by a known [disposable email address](https://en.wikipedia.org/wiki/Disposable_email_address) provider? | `misc.is_disposable` |-| ✅ | **SMTP server validation** | Can the mail exchanger of the email address domain be contacted successfully? | `smtp.can_connect_smtp` |-| ✅ | **Email deliverability** | Is an email sent to this address deliverable? | `smtp.is_deliverable` |-| ✅ | **Mailbox disabled** | Has this email address been disabled by the email provider? | `smtp.is_disabled` |-| ✅ | **Full inbox** | Is the inbox of this mailbox full? | `smtp.has_full_inbox` |-| ✅ | **Catch-all address** | Is this email address a [catch-all](https://debounce.io/blog/help/what-is-a-catch-all-or-accept-all/) address? | `smtp.is_catch_all` |-| ✅ | **Role account validation** | Is the email address a well-known role account? | `misc.is_role_account` |-| 🔜 | **Free email provider check** | Is the email address bound to a known free email provider? | [Issue #89](https://github.com/reacherhq/check-if-email-exists/issues/89) |-| 🔜 | **Syntax validation, provider-specific** | According to the syntactic rules of the target mail provider, is the address syntactically valid? | [Issue #90](https://github.com/reacherhq/check-if-email-exists/issues/90) |-| 🔜 | **Honeypot detection** | Does email address under test hide a [honeypot](https://en.wikipedia.org/wiki/Spamtrap)? | [Issue #91](https://github.com/reacherhq/check-if-email-exists/issues/91) |-| 🔜 | **Gravatar** | Does this email address have a [Gravatar](https://gravatar.com/) profile picture? | [Issue #92](https://github.com/reacherhq/check-if-email-exists/issues/92) |-| 🔜 | **Have I Been Pwned?** | Has this email been compromised in a [data breach](https://haveibeenpwned.com/)? | [Issue #289](https://github.com/reacherhq/check-if-email-exists/issues/289) |+| ✅ | **Email reachability** | How confident are we in sending an email to this address? Can be one of `safe`, `risky`, `invalid` or `unknown`. | `is_reachable` |+| ✅ | **Syntax validation** | Is the address syntactically valid? | `syntax.is_valid_syntax` |+| ✅ | **DNS records validation** | Does the domain of the email address have valid MX DNS records? | `mx.accepts_mail` |+| ✅ | **Disposable email address (DEA) validation** | Is the address provided by a known [disposable email address](https://en.wikipedia.org/wiki/Disposable_email_address) provider? | `misc.is_disposable` |+| ✅ | **SMTP server validation** | Can the mail exchanger of the email address domain be contacted successfully? | `smtp.can_connect_smtp` |+| ✅ | **Email deliverability** | Is an email sent to this address deliverable? | `smtp.is_deliverable` |+| ✅ | **Mailbox disabled** | Has this email address been disabled by the email provider? | `smtp.is_disabled` |+| ✅ | **Full inbox** | Is the inbox of this mailbox full? | `smtp.has_full_inbox` |+| ✅ | **Catch-all address** | Is this email address a [catch-all](https://debounce.io/blog/help/what-is-a-catch-all-or-accept-all/) address? | `smtp.is_catch_all` |+| ✅ | **Role account validation** | Is the email address a well-known role account? | `misc.is_role_account` |+| 🔜 | **Free email provider check** | Is the email address bound to a known free email provider? | [Issue #89](https://github.com/reacherhq/check-if-email-exists/issues/89) |+| 🔜 | **Syntax validation, provider-specific** | According to the syntactic rules of the target mail provider, is the address syntactically valid? | [Issue #90](https://github.com/reacherhq/check-if-email-exists/issues/90) |+| 🔜 | **Honeypot detection** | Does email address under test hide a [honeypot](https://en.wikipedia.org/wiki/Spamtrap)? | [Issue #91](https://github.com/reacherhq/check-if-email-exists/issues/91) |+| 🔜 | **Gravatar** | Does this email address have a [Gravatar](https://gravatar.com/) profile picture? | [Issue #92](https://github.com/reacherhq/check-if-email-exists/issues/92) |+| 🔜 | **Have I Been Pwned?** | Has this email been compromised in a [data breach](https://haveibeenpwned.com/)? | [Issue #289](https://github.com/reacherhq/check-if-email-exists/issues/289) |## 🤔 Why?@@ -88,7 +88,7 @@ Head to the [releases page](https://github.com/reacherhq/check-if-email-exists/r```> $ check_if_email_exists --help-check_if_email_exists 0.8.30+check_if_email_exists 0.8.31Check if an email address exists without sending an email.USAGE:diff --git a/core/Cargo.toml b/core/Cargo.tomlindex 22394824..1cc4ccf0 100644--- a/core/Cargo.toml+++ b/core/Cargo.toml@@ -1,6 +1,6 @@[package]name = "check-if-email-exists"-version = "0.8.30"+version = "0.8.31"authors = ["Amaury <[email protected]>"]categories = ["email"]description = "Check if an email address exists without sending any email"@@ -17,12 +17,12 @@ appveyor = { repository = "reacherhq/check-if-email-exists", service = "github"travis-ci = { repository = "reacherhq/check-if-email-exists", service = "github" }[dependencies]-async-native-tls = "0.3.3"+async-native-tls = { version = "0.4", default-features = false }async-recursion = "1.0.0"-async-smtp = { version = "0.4.0", features = ["socks5"] }+async-smtp = { version = "0.5.0", features = ["socks5"] }async-std = "1.12.0"-async-std-resolver = "0.20.4"-fast-socks5 = "0.4.3"+async-std-resolver = "0.21.2"+fast-socks5 = "0.8.0"futures = "0.3.21"log = "0.4.17"mailchecker = "5.0.0"@@ -31,7 +31,7 @@ regex = "1.6.0"reqwest = { version = "0.11.11", features = ["json", "socks"] }serde = { version = "1.0.143", features = ["derive"] }serde_json = "1.0.83"-trust-dns-proto = "0.20.4"+trust-dns-proto = "0.21.2"[dev-dependencies]tokio = { version = "1.16.1" }diff --git a/core/src/mx.rs b/core/src/mx.rsindex 884955e5..abe83a3a 100644--- a/core/src/mx.rs+++ b/core/src/mx.rs@@ -90,7 +90,7 @@ pub async fn check_mx(syntax: &SyntaxDetails) -> Result<MxDetails, MxError> {// Lookup the MX records associated with a name.// The final dot forces this to be an FQDN, otherwise the search rules as specified// in `ResolverOpts` will take effect. FQDN's are generally cheaper queries.- match resolver.mx_lookup(syntax.domain.as_ref()).await {+ match resolver.mx_lookup(syntax.domain.as_str()).await {Ok(lookup) => Ok(MxDetails::from(lookup)),Err(err) => Ok(MxDetails { lookup: Err(err) }),}diff --git a/core/src/smtp/mod.rs b/core/src/smtp/mod.rsindex c2e04366..ce5fc0b6 100644--- a/core/src/smtp/mod.rs+++ b/core/src/smtp/mod.rs@@ -23,17 +23,13 @@ use async_native_tls::TlsConnector;use async_recursion::async_recursion;use async_smtp::{smtp::{- client::net::NetworkStream, commands::*, error::Error as AsyncSmtpError,- extension::ClientId,+ commands::*, error::Error as AsyncSmtpError, extension::ClientId, ServerAddress,+ Socks5Config,},ClientTlsParameters, EmailAddress, SmtpClient, SmtpTransport,};use async_std::future;pub use error::*;-use fast_socks5::{- client::{Config, Socks5Stream},- Result,-};use rand::rngs::SmallRng;use rand::{distributions::Alphanumeric, Rng, SeedableRng};use serde::{Deserialize, Serialize};@@ -88,57 +84,40 @@ async fn connect_to_host(input.smtp_security.to_client_security(tls_params)};- let mut smtp_transport = SmtpClient::with_security((host.as_ref(), port), security)- .await- .map_err(SmtpError::SmtpError)?- // FIXME Do not clone?- .hello_name(ClientId::Domain(input.hello_name.clone()))- .timeout(Some(Duration::new(30, 0))) // Set timeout to 30s- .into_transport();+ let mut smtp_client = SmtpClient::with_security(+ ServerAddress {+ host: host.clone(),+ port,+ },+ security,+ )+ .hello_name(ClientId::Domain(input.hello_name.clone()))+ .timeout(Some(Duration::new(30, 0))); // Set timeout to 30sif let Some(proxy) = &input.proxy {- let stream = match (&proxy.username, &proxy.password) {- (Some(username), Some(password)) => {- Socks5Stream::connect_with_password(- (proxy.host.as_ref(), proxy.port),- host.clone(),- port,- username.to_string(),- password.to_string(),- Config::default(),- )- .await?- }- _ => {- Socks5Stream::connect(- (proxy.host.as_ref(), proxy.port),- host.clone(),- port,- Config::default(),- )- .await?- }+ let socks5_config = match (&proxy.username, &proxy.password) {+ (Some(username), Some(password)) => Socks5Config::new_with_user_pass(+ proxy.host.clone(),+ proxy.port,+ username.clone(),+ password.clone(),+ ),+ _ => Socks5Config::new(proxy.host.clone(), proxy.port),};- try_smtp!(- smtp_transport- .connect_with_stream(NetworkStream::Socks5Stream(stream))- .await,- smtp_transport,- input.to_emails[0],- host,- port- );- } else {- try_smtp!(- smtp_transport.connect().await,- smtp_transport,- input.to_emails[0],- host,- port- );+ smtp_client = smtp_client.use_socks5(socks5_config);}+ let mut smtp_transport = smtp_client.into_transport();++ try_smtp!(+ smtp_transport.connect().await,+ smtp_transport,+ input.to_emails[0],+ host,+ port+ );+// "MAIL FROM: [email protected]"let from_email = EmailAddress::from_str(input.from_email.as_ref()).unwrap_or_else(|_| {log::warn!(@@ -149,8 +128,7 @@ async fn connect_to_host(});try_smtp!(smtp_transport- // FIXME Do not clone?- .command(MailCommand::new(Some(from_email.clone()), vec![],))+ .command(MailCommand::new(Some(from_email), vec![],)).await,smtp_transport,input.to_emails[0],diff --git a/src/main.rs b/src/main.rsindex 3d82debc..4834e0ff 100644--- a/src/main.rs+++ b/src/main.rs@@ -19,11 +19,11 @@ mod http;use std::net::IpAddr;use check_if_email_exists::{check_email, CheckEmailInput, CheckEmailInputProxy};-use clap::Clap;+use clap::Parser;use once_cell::sync::Lazy;/// CLI options of this binary.-#[derive(Clap, Debug)]+#[derive(Parser, Debug)]#[clap(author, version, about)]pub struct Cli {/// The email to use in the `MAIL FROM:` SMTP command.