Web Hosting Talk







View Full Version : Intercept Emails before outlook


scottelliott
11-02-2005, 12:27 PM
I want to intercept an email before outlook puts it into the PST file.

Specifically i want to do details like number of words, size of attachments, and then to store that info.

I am looking how i can do this, but hav no idea. I need it to run on the users computer, so it cant be server based. Also it would be ok i spose to read the infor from the PST file if that was the only way.

So what i need is a push in the direction of recources for understanding in any programming language how to grab this info!

Any help pushes, or recourses??

Cheers

SCott

Fisherman
11-02-2005, 04:05 PM
I use Mailwasher Pro. www.mailwasher.com Works great!

error404
11-02-2005, 07:23 PM
You'd want to implement this a proxy between Outlook and your remote mail server, much like POPFile and other client-agnostic spam filters do. Then you need some sort of code to parse the raw SMTP stream into the data you're looking for. Pretty much you'd be passing the data verbatim, while performing your analysis on the way. You shouldn't need to modify the data stream at all, just capture it and analyse it.

Personally, I'd choose a high-level scripting language like Python or Ruby for such a task, but its probably easier just to use a mail client that can provide such information for you, or extend, say Thunderbird so that it can (this should be much easier than writing a stable proxy, and less prone to breaking things spectacularly).

scottelliott
11-02-2005, 10:54 PM
Thanks for the push in the right direction. Will be looking into this now!

Cheers