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

In reply to Re: Perl Internet Proxy for Windows by Azhrarn
in thread Perl Internet Proxy for Windows by cascade_fx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.