http_proxy
and https_proxy
env vars and determine which type of proxy should be applied (HTTP, SOCKS4 and SOCKS5).Bounty: 2000 €
This crate could be useful for HTTP proxies, whereas this crate could be useful for SOCKS proxies.
Here how I see the thing: every time we build a TPC connection (IMAP and SMTP), we need to apply the right proxy according to given proxy URL. It can be HTTP(S), SOCKS4 or SOCKS5. The proxy URL is taken from
http_proxy
andhttps_proxy
env vars by default, and we can add a global config entryproxy-url
orproxy
that overrides this behaviour. Here an example on how to set up the socks proxies, and here an example on how to use the HTTP ones.
There is no more bounty for this task.