Bug 4212

Summary: RSSyl does not resolve .onion domain names
Product: Claws Mail (GTK 2) Reporter: Santa Claws <bugreporter>
Component: Plugins/RSSylAssignee: users
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 3.17.4   
Hardware: PC   
OS: Linux   

Description Santa Claws 2019-05-14 12: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 13: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-15 00:53:42 UTC
Thanks. It works with 'h'.
Comment 3 Andrej Kacian 2019-05-15 01: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.