org.jasen.interfaces
Interface HeuristicAnalyzer

All Known Implementing Classes:
StandardHeuristicAnalyzer

public interface HeuristicAnalyzer

Analyses a JasenMessage looking for matches against a set of heuristic definitions.

NOTE: Implemenations MUST be thread safe

Author:
Jason Polites

Method Summary
 int analyze(javax.mail.internet.MimeMessage mm, JasenMessage message, HeuristicDefinitionSet definitions, int threshold)
          Analyzes the message looking for heuristic matches against patterns defined in the HeuristicDefinitionSet set provided
 

Method Detail

analyze

public int analyze(javax.mail.internet.MimeMessage mm,
                   JasenMessage message,
                   HeuristicDefinitionSet definitions,
                   int threshold)
            throws JasenException
Analyzes the message looking for heuristic matches against patterns defined in the HeuristicDefinitionSet set provided

Parameters:
mm - The raw MimeMessage
message - The message to analyze
definitions - The set of definitions to use
threshold - The number of matches above which analysis ceases. Use zero (0) for unlimited matches
Returns:
The number of matches found
Throws:
JasenException