nsIJunkMailPlugin

IID:caf3d467-d57c-11d6-96a9-00039310a47a
Inherits From:nsIMsgFilterPlugin

This interface is implemented by the following components:


Constants

Message classifications.
nsMsgJunkStatus UNCLASSIFIED = 0
nsMsgJunkStatus GOOD = 1
nsMsgJunkStatus JUNK = 2

Properties

readonly PRBool userHasClassified


Methods

void classifyMessage ( char* msgURI , nsIMsgWindow msgWindow , nsIJunkMailClassificationListener listener ) void classifyMessages ( PRUint32 count , arrayof char* msgURIs , nsIMsgWindow msgWindow , nsIJunkMailClassificationListener listener ) void resetTrainingData ( ) void setMessageClassification ( char* msgURI , nsMsgJunkStatus oldUserClassification , nsMsgJunkStatus newClassification , nsIMsgWindow msgWindow , nsIJunkMailClassificationListener listener )

void classifyMessage ( char* msgURI , nsIMsgWindow msgWindow , nsIJunkMailClassificationListener listener )

Given a message URI, determine what its current classification is according to the current training set.

Arguments:
msgURI
msgWindow
listener

void classifyMessages ( PRUint32 count , arrayof char* msgURIs , nsIMsgWindow msgWindow , nsIJunkMailClassificationListener listener )

Arguments:
count
msgURIs
msgWindow
listener

void resetTrainingData ( )

Removes the training file and clears out any in memory training tokens. User must retrain after doing this.


void setMessageClassification ( char* msgURI , nsMsgJunkStatus oldUserClassification , nsMsgJunkStatus newClassification , nsIMsgWindow msgWindow , nsIJunkMailClassificationListener listener )

Called when a user forces the classification of a message. Should cause the training set to be updated appropriately.

Arguments:
msgURI
oldUserClassification
newClassification
msgWindow
listener

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com