~soywod/pimalaya#17: 
Support proxies

[source]

#email-lib

  • Read http_proxy and https_proxy env vars and determine which type of proxy should be applied (HTTP, SOCKS4 and SOCKS5).
  • Implement HTTP proxy using the async-http-proxy crate.
  • Implement SOCKS4/SOCKS5 proxies using the socks crate.
Status
REPORTED
Submitter
~soywod
Assigned to
No-one
Submitted
1 year, 7 months ago
Updated
10 months ago
Labels
1:email-lib 2:himalaya

~soywod 1 year, 5 months ago

Bounty: 2000 €

~soywod 1 year, 4 months ago

This crate could be useful for HTTP proxies, whereas this crate could be useful for SOCKS proxies.

~soywod 1 year, 4 months ago

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 and https_proxy env vars by default, and we can add a global config entry proxy-url or proxy 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.

~soywod 1 year, 1 month ago

There is no more bounty for this task.

Register here or Log in to comment, or comment via email.