|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jasen.plugins.ObfuscatedCharacterScanner
This plugin looks at the parser data returned from a parse for occurrences of anomalous character replacments.
Many spam messages will use non-ASCII characters which "look" similar to the standard ASCII version.
For example: The letter 'I' will often be replaced with the pipe symbol '|'
jASEN will detect this and use an appropriate replacement, however it will also record this character misuse
| Constructor Summary | |
ObfuscatedCharacterScanner()
|
|
| Method Summary | |
void |
destroy()
Destroys the plugin. |
void |
init(Properties properties)
Initialises the plugin with the given properties |
JasenTestResult |
test(Jasen engine,
javax.mail.internet.MimeMessage rawMessage,
JasenMessage parsedMessage,
ParserData data,
ReceivedHeaderParser parser)
Computess the "spamminess" of a message. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObfuscatedCharacterScanner()
| Method Detail |
public void init(Properties properties)
throws JasenException
JasenPlugin
init in interface JasenPluginproperties -
JasenException
public void destroy()
throws JasenException
JasenPlugin
destroy in interface JasenPluginJasenException
public JasenTestResult test(Jasen engine,
javax.mail.internet.MimeMessage rawMessage,
JasenMessage parsedMessage,
ParserData data,
ReceivedHeaderParser parser)
throws JasenException
JasenPlugin
test in interface JasenPluginengine - A reference to the current engine instance.rawMessage - The original MimeMessage passed to the engine.parsedMessage - The parsed JasenMessage returned from the MimeParser.data - The data returned from the HTML Parser / Tokenizer combination.parser - The parser used to parse mail headers
JasenException - If an error occurs while performing the test
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||