Re: imap4_SSL from behind a proxy server



Dave schrieb:
First to admit I'm a newbie at Python, IMAP, or SSL. And it's been a
long time since I've posted anything to a Usenet group. But I've
spent countless hours spinning my wheels on this one, so I thought I'd
ask for help.

I'm trying write some Python code to connect to Gmail from work, where
I need to direct all non-HTTP traffic through a proxy server. Can
anyone provide syntax which would redirect the imap4_SSL method
through a proxy server:port? I suspect there are some environment
variables which, when set, will do this very easily and elegantly. I
also suspect there is a really complicated way to 'wrap' the imap
classes so as to force requests to go through a proxy which, as a
newbie, I am trying to avoid.

FYI, I'm currently running Python 2.5.2. via IDLE on Windows XP. But
when this project is done, I will move it to Linux.

AFAIK that's simply not possible. Proxying that is not transparent is only (for practical matters, there might be esoteric protocols that do that as well) defined for HTTP. So "I need to direct all non-HTTP traffic through a proxy server." does not make much sense - at least to me.


In other words: there is no such thing as general proxying, and thus no support in any library e.g. imaplib or such.

Do you have an example of an application (e.g. mailclient or such) that *does* support the above scenario?

Diez
.



Relevant Pages

  • Re: Outlook 2002 with MS Proxy Client, New Email Notifications not
    ... No offense but slapping a customer with "support is ending on this ... and the proxy server indicate the following. ... >> subnets to the file, restart the client machine, refresh the MSP client ...
    (microsoft.public.isa.clients)
  • Re: Truncated XML-Response in SOAP-Envelope
    ... Do you have a proxy server in the middle? ... You can contact Microsoft Product Support Services for official ... > the SOAP response envelope contains truncated XML data. ... > I tried with both XMLA 1.0 and XMLA 1.1 Beta. ...
    (microsoft.public.data.xmlanalysis)
  • Technical Note by Amit Klein: "XST Strikes Back"
    ... XmlHttpRequest object that sends a TRACE request back to the ... receives the request echoed back by the server's TRACE ... The recommendation in is to turn off TRACE support in the web ... Forcing the first proxy server in the chain to respond to the ...
    (Bugtraq)
  • Re: Exchange Activesync
    ... > have exchange permissions or is I turn ssl on your proxy server is ... Microsoft MVP - Mobile Devices ... Want *ONE ON ONE* support? ...
    (microsoft.public.pocketpc.activesync)
  • Re: ADODB ............HELP PLEASE
    ... >This code failes on one client - I suspect because they have a Proxy ... >What paramaters are there in the connection.open to specify a Proxy server ...
    (microsoft.public.vb.general.discussion)