Bug 4212 - RSSyl does not resolve .onion domain names
Summary: RSSyl does not resolve .onion domain names
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/RSSyl (show other bugs)
Version: 3.17.4
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2019-05-14 10:55 UTC by Santa Claws
Modified: 2019-05-14 23:10 UTC (History)
0 users

See Also:


Attachments

Description Santa Claws 2019-05-14 10:55:48 UTC
version 3.17.3git174

1. Have Tor service running

2. Start claws-mail with:

export http_proxy=socks5://127.0.0.1:9050
export https_proxy=$http_proxy
claws-mail

3. Visit any channel on the Tor version of invidio.us (example with CNN):

http://axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid.onion/channel/UCupvZG-5ko_eiXAupbDfxWw

4. Copy the RSS feed

http://axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid.onion/feed/channel/UCupvZG-5ko_eiXAupbDfxWw

5. In Claws Mail: Subscribe new feed using that URL

EXPECTED:

Claws Mail should resolve the domain name.

ACTUAL:

Claws Mail says:

Error fetching feed at
http://axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid.onion/channel/UCupvZG-5ko_eiXAupbDfxWw:

Couldn't resolve host name

Additional info:

Non-.onion feeds work with the above setup. Also POP and SMTP using .onion domains work fine.
Comment 1 Andrej Kacian 2019-05-14 11:36:51 UTC
Try setting http_proxy="socks5h://127.0.0.1:9050" instead. The 'h' should tell libcurl to let the proxy handle name resolving (see CURLPROXY_SOCKS5_HOSTNAME at https://curl.haxx.se/libcurl/c/CURLOPT_PROXYTYPE.html for more details).

Source: https://blog.emacsos.com/use-socks5-proxy-in-curl.html
Comment 2 Santa Claws 2019-05-14 22:53:42 UTC
Thanks. It works with 'h'.
Comment 3 Andrej Kacian 2019-05-14 23:10:02 UTC
Good. If we ever decide to implement HTTP proxy configuration in Claws Mail, "Use proxy to resolve hostnames" should be a checkbox for SOCKS5 proxy type.

Note You need to log in before you can comment on or make changes to this bug.