Displaying SpamAssassin score in an Outlook field

Feb 14, 2006 13:35

It took me a bit of researching and programming, but I figured out a way to do it.

The most frustrating part of it is that Outlook doesn't provide VBA access to the Internet Headers. Grr!

I don't know how many people might be interested in this, but if you are, my solution is behind the cut.

Solution )

Leave a comment

Comments 6

Thanks! ext_4625 April 13 2006, 13:18:37 UTC
This is just the type of thing I was looking for. Only prob is that I can't get it working. Could you perhaps provide some revised step-by-step instructions?

Reply

Re: Thanks! daniele April 13 2006, 14:16:21 UTC
I'll be happy to try to help and clear up anything I might have left out, but I need to know what step you had trouble with.

Did you install Redemption?
Did you copy the VBA sub into your Outlook VBA project?
Is your Outlook security on high? If so, did you digitally sign the project?
Did you create the rule that tests X-Spam-Status?
Did you run it or the ManualSetSpamScoresForFolder() sub?
Did you see the SpamScore field in your column list?

Reply

Re: Thanks! ext_4625 June 4 2007, 16:03:03 UTC
Did you install Redemption?
- Yes I also loaded it in the Library Section
Did you copy the VBA sub into your Outlook VBA project?
- Yes
Is your Outlook security on high? If so, did you digitally sign the project?
- No lowest for testing
Did you create the rule that tests X-Spam-Status?
- Yes
Did you run it or the ManualSetSpamScoresForFolder() sub?
- Yes But I get an Runtime Error Methode "Value" for "UserProperty" is failed
Did you see the SpamScore field in your column list?
- Yes I can see a column

Reply

Re: Thanks! daniele June 4 2007, 16:30:43 UTC
Hrm. that is an odd error.
What version of Outlook are you running?

Reply


mrdarkhelmet June 14 2007, 16:38:13 UTC
Awesome post - thank you very much for this. The code has given me tons of options for extracting headers into custom fields.

Reply


Spamassassin scores in Outlook (feedback) sensei256 September 25 2008, 06:22:05 UTC
This is a fantastic resource.

However, you don't need to use Redemption.

It is possible to get at the Outlook headers directly.

I've adapted the script to get the headers out of the Outlook.MailItem directly. (I also adapted the header for current versions of SpamAssassin).

It works like a charm. Congrats, and thank you for the help.

Reply


Leave a comment

Up