]> Sergey Matveev's repositories - public-inbox.git/commit
lei: IMAP .onion support via --proxy=s switch
authorEric Wong <e@80x24.org>
Fri, 30 Apr 2021 09:24:36 +0000 (09:24 +0000)
committerEric Wong <e@80x24.org>
Fri, 30 Apr 2021 19:59:46 +0000 (19:59 +0000)
commit715c52fd1afe128d235cc1b9bade3db4ed647514
tree57c8dd17663b23efb20f3308b79f2fd8ded4fc29
parent61a81c1da072e64bad715e8db79432ab2d277c30
lei: IMAP .onion support via --proxy=s switch

Mail::IMAPClient provides the ability to pass a pre-connected
Socket to it.  We can rely on this functionality to use
IO::Socket::Socks in place whatever socket class
Mail::IMAPClient chooses to use.

The --proxy=s is shared with curl(1), though we only support
socks5h:// at the moment.  Is there any need for SOCKS4 or SOCKS5
without name resolution?  Tor .onions require socks5h:// for
name resolution and to prevent data leakage.
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiInput.pm
lib/PublicInbox/LeiToMail.pm
lib/PublicInbox/NetReader.pm