WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

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.