On 16.6.2010 17:18, Gnanam wrote:
> 
> Hi,
> 
> I want to integrate SpamAssassin in my web-based application to test spam
> score of the "email content" that our application User's wish to send in
> mail composing page itself - even before sending.  When I say mail composing
> page here, it is not an email client like Outlook, Outlook Express, etc. but
> rather it is a regular/normal web-based form with HTML editor.
> 
> How do I integrate SpamAssassin for my Use Case explained above?  Relevant
> documentation links on the same are appreciated.
> 

You need to prepare a valid looking email message from the text the web
app produces. It needs all the required headers before the actual body
of text to work. You may need to study SMTP RFC's to get it right, the
simple looking headers like Date: and Received: need to be carefully
crafted after the standards.

The just use ProcessBuilder in your Java app to connect to spamc and
pass the message for it, and read the results.

-- 
http://www.iki.fi/jarif/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.

Exercise caution in your daily affairs.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to