Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[solved] Email Analyzer with SpamAssassin support



  • Please log in to reply
2 replies to this topic
mikek
  • Members
  • 161 posts
  • Last active: Nov 09 2015 05:02 PM
  • Joined: 21 Nov 2008
Hi all, I'm working on a script that downloads and analyzes email. As part of the script, I want to use SpamAssassin to determine, and report back to me the spam score of the email.

I know this is a long shot, but does anyone here happen to be familiar with how to use SpamAssassin, and have suggestions on how to use it's tools in a script?

These are the available exe files:
cdcc.exe
dccproc.exe
spamassassin.exe
spamc.exe
spamcc.exe
spamd.exe

The documentation is extremely confusing to me, and brings up more questions than answers. (<!-- m -->http://fossies.org/w... ... 2-src.zip/<!-- m -->)

I have the SpamAssassin files, which were included in a standalone spam scoring program named MailingCheck (<!-- m -->http://www.mailingcheck.com/<!-- m -->).

When I remove the Spamassassin folder, MailingCheck doesn't give a spam score, but it works when the folder is where it's supposed to be. To me, this shows that MailingCheck is sending commands to one or more of the SpamAssassin exe files, and is receiving a response from them.

I want to do this with ahk but need help going in the right direction.

I realize that probably nobody will have a direct answer, but any suggestions on how to proceed would be appreciated. You've all been very supportive in the past, which I appreciate.

Thank you.

- Mike

nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
Google SpamAssasin command-line parameters -- it seems spamc.exe is the one you wnat.

mikek
  • Members
  • 161 posts
  • Last active: Nov 09 2015 05:02 PM
  • Joined: 21 Nov 2008
✓  Best Answer
Thank you, nimda, I appreciate it.

I found this page, which was helpful:
<!-- m -->http://spamassassin.... ... n-run.html<!-- m -->

By running this command, I was able to get an output of the email message, with spam score information appended at the bottom:
spamassassin -t < test.eml > output1.txt

MailingCheck spam score:
Posted Image

The same results are achieved using the command referenced above:
Posted Image

- Mike