nsISpamSettings

IID:3D6A6BCF-B374-4c97-B8C7-CDBBFC5E447B
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

PRInt32 MOVE_TARGET_MODE_ACCOUNT = 0
PRInt32 MOVE_TARGET_MODE_FOLDER = 1
PRInt32 MANUAL_MARK_MODE_MOVE = 0
PRInt32 MANUAL_MARK_MODE_DELETE = 1
PRInt32 TRUST_POSITIVES = 1
PRInt32 TRUST_NEGATIVES = 2

Properties

char* actionTargetAccount

char* actionTargetFolder

PRInt32 level

0 for nothing, 100 for highest

PRBool loggingEnabled

nsIOutputStream logStream

readonly char* logURL

PRBool manualMark

Should we do something (move or delete) when the user manually marks a message as junk?

PRInt32 manualMarkMode

PRBool markAsReadOnSpam

PRBool moveOnSpam

PRInt32 moveTargetMode

Most consumers will just use spamFolderURI rather than accessing any of target attributes directly.

PRBool purge

PRInt32 purgeInterval

Interval, in days

nsIMsgIncomingServer server

ACString serverFilterName

PRInt32 serverFilterTrustFlags

readonly char* spamFolderURI

Built from moveTargetMode, actionTargetAccount, actionTargetFolder

PRBool useServerFilter

Integrate with server-side spam detection programs

PRBool useWhiteList

char* whiteListAbURI


Methods

void clearLog ( ) void clone ( nsISpamSettings spamSettings ) void ensureLogFile ( ) void flushLogIfNecessary ( ) void logJunkHit ( nsIMsgDBHdr msgHdr , PRBool moveMessage ) void logJunkString ( char* logText )

void clearLog ( )


void clone ( nsISpamSettings spamSettings )

Arguments:
spamSettings

void ensureLogFile ( )


void flushLogIfNecessary ( )


void logJunkHit ( nsIMsgDBHdr msgHdr , PRBool moveMessage )

Arguments:
msgHdr
moveMessage

void logJunkString ( char* logText )

Arguments:
logText

References

This interface is the type of the following properties:

nsIMsgIncomingServer.spamSettings

This interface is passed as an argument to the following methods:

nsISpamSettings.clone

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com