Connect to pop-server via proxy

Is it possible to connect to pop3-server via proxy and how if it’s
possible?

born in USSR wrote:

Is it possible to connect to pop3-server via proxy and how if it’s
possible?

What sort of a proxy?

If it’s SOCKS, there are various SOCKS client implementations. Ruby
itself includes SOCKSSocket, but unfortunately is a build-time option
when you build Ruby because it depends on an external C library.

I came across several pure ruby SOCKS implementations: net/ssh has one,
and there’s http://rtokiwa.s55.xrea.com/wiki/index.php?SOCKSSocket.
There may be others. You can probably plug these into ruby’s existing
net/pop3.rb without too much difficulty.

If it’s an application-level proxy, then maybe you just need to make a
normal pop3 login but pass a specially-formatted username to indicate
where to connect to.