Skip to content

Commit

Permalink
Icon and SMTP Debug fixes.
Browse files Browse the repository at this point in the history
- We need to add some feature to enable smtp debugging again. See: lettre/lettre#584
- Upstream added the fallback icon again, probably because of caching ;). See: bitwarden/server#1149
- Enabled gzip and brotli compression support with reqwest. Some sites seem to force this, or assume that because of the User-Agent string it is supported. This caused some failed icons.

Fixes dani-garcia#1540
  • Loading branch information
BlackDex committed Mar 29, 2021
1 parent fd27759 commit 3a33909
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 44 deletions.
148 changes: 117 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ rocket = { version = "0.5.0-dev", features = ["tls"], default-features = false }
rocket_contrib = "0.5.0-dev"

# HTTP client
reqwest = { version = "0.11.2", features = ["blocking", "json"] }
reqwest = { version = "0.11.2", features = ["blocking", "json", "gzip", "brotli"] }

# multipart/form-data support
multipart = { version = "0.17.1", features = ["server"], default-features = false }
Expand Down Expand Up @@ -99,11 +99,12 @@ num-traits = "0.2.14"
num-derive = "0.3.3"

# Email libraries
tracing = { version = "0.1", features = ["log"] } # Needed to have lettre trace logging used when SMTP_DEBUG is enabled.
lettre = { version = "0.10.0-beta.3", features = ["smtp-transport", "builder", "serde", "native-tls", "hostname", "tracing"], default-features = false }
newline-converter = "0.2.0"

# Template library
handlebars = { version = "3.5.3", features = ["dir_source"] }
handlebars = { version = "3.5.4", features = ["dir_source"] }

# For favicon extraction from main website
html5ever = "0.25.1"
Expand Down
Loading

0 comments on commit 3a33909

Please sign in to comment.