Link to home
Start Free TrialLog in
Avatar of bmihura
bmihura

asked on

scripting against spam in Outlook Express

Having tried various email blocking programs, none of them can catch even half the spam (iHateSpam, SpamCatcher, etc.).

Using Outlook Express and the various blocking programs, it seems I can only block certain phrases from the subject line.

I want to write my own script to scan all subject lines-- a script that will send the spam email to a "blocked" or "spam" folder (the name doesn't matter).

I can script in any language, it doesn't matter (JavaScript, VBScript, WhateverScript).

For example, here are a few subject lines my ideal script solution would block:

1. hi (not just any subject line with that word, but that being the only printable word)
2. bmihura (my email name, not my first name)
3. V_i.a;gr.a (I'm smart enough to strip out non alpha-characters, or convert them)
4. V1ag;ra (see previous comment)
5. any empty subject line
6. a "white list" and "black list", both overriding all previous rules
ASKER CERTIFIED SOLUTION
Avatar of slink9
slink9

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bmihura
bmihura

ASKER

Thx slink9 and sven--

I'll give this a few days until somebody tells me otherwise, else you two share the points as I'm betting you're both right, and posted at pretty much the same time.

I am trying to avoid buying Outlook, that's why, I just want a simple solution where I can script-block.
I believe it can be done because both McAffee and Norton's spam filters some how integrated with OE to do it. I also know one can create programs to intercept OE mail before passing it on to OE.

Now I never heard or known about Outlook Express Library Object but I don't think what ever functions within in it are exportable. However I do know you can use SMAPI (Simple MAPI) to gain limited access to incoming and outgoing OE mail.

Alas though any code I have to do this is in Delphi and I have seen VB code that can do this but I don't know if VB Script is robust enough to do this.
Checked up on the OE Library Object after CrazyOne's note, - it appears that I've accidentially checked on one of my older boxes where it was available.

However: the Outlook Express Object Library is 'not intended to be used', as stated by this note from MS:

http://support.microsoft.com/?kbid=216281


Regards,
Sven
Hehehe I love this statement in that link

"is likely to break in an unpredictable fashion"
Avatar of bmihura

ASKER

thank you for responding folks

will give it until Monday, hopefully some powergeek can make it happen in Outlook Express :)