2002-09-19 10:28:45 +04:00
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIOutputStream;
|
2002-09-19 12:31:12 +04:00
|
|
|
interface nsIMsgIncomingServer;
|
2002-10-09 11:34:02 +04:00
|
|
|
interface nsIMsgDBHdr;
|
2002-09-19 10:28:45 +04:00
|
|
|
|
|
|
|
[scriptable, uuid(24ca5ee5-4b0b-4d7b-b53c-13fa2279ccf0)]
|
|
|
|
interface nsISpamSettings: nsISupports {
|
2002-09-19 12:31:12 +04:00
|
|
|
attribute nsIMsgIncomingServer server;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 0 for nothing, 100 for highest
|
|
|
|
*/
|
2002-09-19 10:28:45 +04:00
|
|
|
attribute long level;
|
|
|
|
|
|
|
|
attribute boolean moveOnSpam;
|
2002-09-26 04:33:15 +04:00
|
|
|
/**
|
|
|
|
* 0 for actionTargetAccount, 1 for actionTargetFolder
|
|
|
|
* most consumers will just use spamFolderURI
|
|
|
|
*/
|
|
|
|
attribute long moveTargetMode;
|
|
|
|
attribute string actionTargetAccount;
|
2002-09-19 10:28:45 +04:00
|
|
|
attribute string actionTargetFolder;
|
2002-09-26 04:33:15 +04:00
|
|
|
/**
|
|
|
|
* built from moveTargetMode, actionTargetAccount, actionTargetFolder
|
|
|
|
*/
|
|
|
|
readonly attribute string spamFolderURI;
|
2002-09-19 10:28:45 +04:00
|
|
|
|
|
|
|
attribute boolean purge;
|
2002-09-19 12:31:12 +04:00
|
|
|
/**
|
|
|
|
* interval, in days
|
|
|
|
*/
|
|
|
|
attribute long purgeInterval;
|
2002-09-19 10:28:45 +04:00
|
|
|
|
|
|
|
attribute boolean useWhiteList;
|
2002-09-19 12:31:12 +04:00
|
|
|
attribute string whiteListAbURI;
|
2002-09-19 10:28:45 +04:00
|
|
|
|
|
|
|
// for logging
|
|
|
|
attribute boolean loggingEnabled;
|
|
|
|
attribute nsIOutputStream logStream;
|
|
|
|
readonly attribute string logURL;
|
|
|
|
void clearLog();
|
|
|
|
void ensureLogFile();
|
|
|
|
void flushLogIfNecessary();
|
2002-10-09 11:34:02 +04:00
|
|
|
void logJunkHit(in nsIMsgDBHdr aMsgHdr, in boolean aMoveMessage);
|
2002-09-19 12:31:12 +04:00
|
|
|
|
|
|
|
void clone(in nsISpamSettings aSpamSettings);
|
2002-09-19 10:28:45 +04:00
|
|
|
};
|