Hi guys, � I am very new to spam assassin. I have been working for about a week or two on implementing spam assassin with JAMES (Java Apache Mail Enterprise Server). I am trying to write spam assassin in java, using the already written spam assassin rules (which is written in perl). At this point I am able to break the email up and make some regex comparisons.
� My question is how does spam assassin make comparison and break up email. My problem is that when I get an email I break it up into its respective parts (i.e: header, mime type etc) and I can save the body of the message into a file may it be a text/html or other content type (not worried about attachments). Now if I save the body (content) into a file and them take this thousands or rules already written, and apply them it can take quite some time. � I wanna know how spam assassin does this. Does spam assassin take the content store it in memory and then apply all the rules? Does it take various regex's and combine them into one? � Is there any documentations on the core workings of spam assassin? I also want to know how does spam assassin save the rules (what type of data structure). I will make the code available once I have completed the project. thanks for your help. Let me if you are at all confused by what I am asking :) jay
