in reply to Perl Internet Proxy for Windows

Non-perl answer to filtering http connections under windows in general:

The Proxomitron

Just tell Outlook, and/or your web browser to use Proxomitron for a local proxy, and you can blacklist/filter to your hearts content. Only reason I mentioned it is I saw the other replies mentioning filtering the spam, this may help catch nasty html that makes it through. Besides being able to blacklist servers with a regexp-like syntax.

Of course, you mentioned that Outlook seems to ignore proxies, which is a bit unusual. It may actually be using the Internet Explorer proxy settings (Windows likes to do that). But if you can't get it to point at the proxy in the first place, then you're kinda screwed unless you run an external router/gateway/whatever.

If you do figure a way around that problem, and do want to do a perl solution, you may want to look into that wonderfull little package known as POE. Or more specifically this sample on TCP Redirection for an idea on how to get started. Unfortunately, you still run into how exactly you are going to get Outlook to use whatever daemon you do write.


----------------
BP - DG - WB