nsIMsgIncomingServer

nsIMsgIncomingServer

??? Add brief description of Interface ???
Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)

Method overview

void clearAllValues();
void clearTemporaryReturnReceiptsFilter();
void closeCachedConnections();
void configureTemporaryFilters(in nsIMsgFilterList filterList);
void configureTemporaryReturnReceiptsFilter(in nsIMsgFilterList filterList); Obsolete since Gecko 1.8
void displayOfflineMsg(in nsIMsgWindow aWindow);
boolean equals(in nsIMsgIncomingServer server);
void forgetPassword();
void forgetSessionPassword();
AString generatePrettyNameForMigration();
boolean getBoolAttribute(in string name);
boolean getBoolValue(in string attr);
ACString getCharAttribute(in string name);
ACString getCharValue(in string attr);
nsILocalFile getFileValue(in string relpref, in string abspref);
nsIMsgFilterList getFilterList(in nsIMsgWindow aMsgWindow);
long getIntAttribute(in string name);
long getIntValue(in string attr);
nsIMsgFolder getMsgFolderFromURI(in nsIMsgFolder aFolderResource, in ACString aURI);
void getNewMessages(in nsIMsgFolder aFolder, in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener);
ACString getPasswordWithUI(in AString aPromptString, in AString aPromptTitle, in nsIMsgWindow aMsgWindow, out boolean okayValue);
AString getUnicharAttribute(in string name);
AString getUnicharValue(in string attr);
boolean isNewHdrDuplicate(in nsIMsgDBHdr aNewHdr);
void onUserOrHostNameChanged(in ACString oldName, in ACString newName);
void performBiff(in nsIMsgWindow aMsgWindow);
void performExpand(in nsIMsgWindow aMsgWindow);
void removeFiles();
void setBoolAttribute(in string name, in boolean value);
void setBoolValue(in string attr, in boolean value);
void setCharAttribute(in string name, in ACString value);
void setCharValue(in string attr, in ACString value);
void setDefaultLocalPath(in nsILocalFile aDefaultLocalPath);
void setFileValue(in string relpref, in string abspref, in nsILocalFile aValue);
void setFilterList(in nsIMsgFilterList aFilterList);
void setIntAttribute(in string name, in long value);
void setIntValue(in string attr, in long value);
void setUnicharAttribute(in string name, in AString value);
void setUnicharValue(in string attr, in AString value);
void shutdown();
void storePassword();
AString toString();
void writeToFolderCache(in nsIMsgFolderCache folderCache);

Attributes

Attribute Type Description
accountManagerChrome AString Read only.
biffMinutes long  
biffState unsigned long  
canBeDefaultServer boolean Read only.
canCompactFoldersOnServer boolean Read only.
canCreateFoldersOnServer boolean  
canDelete boolean can this server be removed from the account manager? for instance, local mail is not removable, but an imported folder is.
canEmptyTrashOnExit boolean Read only.
canFileMessagesOnServer boolean  
canHaveFilters boolean Read only.
canSearchMessages boolean Read only.
canUndoDeleteOnServer boolean Read only.
constructedPrettyName AString helper function to construct the pretty name in a server type specific way - for example, mail for foo@test.com, news on news.mozilla.org. Read only.
defaultCopiesAndFoldersPrefsToServer boolean

If the server supports Fcc/Sent/etc, default prefs can point to the server. Otherwise, copies and folders prefs should point to Local Folders.

By default this value is set to true via global pref 'allows_specialfolders_usage' (mailnews.js). For Nntp, the value is overridden to be false. If ISPs want to modify this value, they should do that in their rdf file by using this attribute. Please look at mozilla/mailnews/base/ispdata/aol.rdf for usage example.
displayStartupPage boolean  
doBiff boolean  
downloadMessagesAtStartup boolean Read only.
downloadOnBiff boolean  
downloadSettings nsIMsgDownloadSettings  
emptyTrashOnExit boolean  
filterScope nsMsgSearchScopeValue Read only.
hostName ACString hostname of the server.
incomingDuplicateAction long
isDeferredTo boolean Read only.
isSecure boolean  
isSecureServer boolean Read only.
key ACString internal pref key - guaranteed to be unique across all servers.
limitOfflineMessageSize boolean  
localPath nsILocalFile  
localStoreType ACString the schema for the local mail store, such as "mailbox", "imap", or "news" used to construct URIs. Read only.
loginAtStartUp boolean  
logonFallback boolean
maxMessageSize long  
offlineSupportLevel long  
password ACString  
passwordPromptRequired boolean If the password for the server is available either via authentication in the current session or from password manager stored entries, return false. Otherwise, return true. If password is obtained from password manager, set the password member variable. Read only.
performingBiff boolean  
port long  
prettyName AString pretty name - should be "userid on hostname" if the pref is not set.
realHostName ACString real hostname of the server (if server name is changed it is stored here)
realUsername ACString real username of the server (if username is changed it is stored here)
redirectorType string Obsolete since Gecko 1.9
rememberPassword boolean  
retentionSettings nsIMsgRetentionSettings  
rootFolder nsIMsgFolder  
rootMsgFolder nsIMsgFolder Read only.
searchScope nsMsgSearchScopeValue Read only.
serverBusy boolean  
serverRequiresPasswordForBiff boolean Read only.
serverURI ACString Read only.
socketType long
spamFilterPlugin nsIMsgFilterPlugin Read only.
spamSettings nsISpamSettings spam settings. Read only.
supportsDiskSpace boolean Read only.
type ACString protocol type, that is "pop3", "imap", "nntp", "none", and so on. used to construct URLs.
username ACString userid to log into the server.
useSecAuth boolean  
valid boolean  

Constants

Constant Value Description
defaultSocket 0
tryTLS 1
alwaysUseTLS 2
useSSL 3
keepDups 0
deleteDups 1
moveDupsToTrash 2
markDupsRead 3

Methods

clearAllValues()

this is really dangerous. this destroys all pref values do not call this unless you know what you're doing!

void clearAllValues();
Parameters

None.

Exceptions thrown
Missing Exception
Missing Description

clearTemporaryReturnReceiptsFilter()

If Sent folder pref is changed we need to clear the temporary return receipt filter so that the new return receipt filter can be recreated (by ConfigureTemporaryReturnReceiptsFilter()).

void clearTemporaryReturnReceiptsFilter();
Parameters

None.

Exceptions thrown
Missing Exception
Missing Description

closeCachedConnections()

void closeCachedConnections();
Parameters

None.

Exceptions thrown
Missing Exception
Missing Description

Requires Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)

configureTemporaryFilters()

for mail, this configures both the MDN filter, and the server-side spam filter filters, if needed.

If we have set up to filter return receipts into our Sent folder, this utility method creates a filter to do that, and adds it to our filterList if it doesn't exist. If it does, it will enable it.

this is not used by news filters (yet).

void configureTemporaryFilters(
  in nsIMsgFilterList filterList
);
Parameters
filterList
Missing Description
Exceptions thrown
Missing Exception
Missing Description

Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)

configureTemporaryReturnReceiptsFilter()

If we have set up to filter return receipts into our Sent folder, this utility method creates a filter to do that, and adds it to our filterList if it doesn't exist. If it does, it will enable it.

If the user changes their prefs, to leave the return receipt in the inbox, this will disable the existing return receipts filter, if it exists.

void configureTemporaryReturnReceiptsFilter(
  in nsIMsgFilterList filterList
);
Parameters
filterList
Missing Description
Exceptions thrown
Missing Exception
Missing Description

displayOfflineMsg()

void displayOfflineMsg(
  in nsIMsgWindow aWindow
);
Parameters
aWindow
Missing Description
Exceptions thrown
Missing Exception
Missing Description

equals()

boolean equals(
  in nsIMsgIncomingServer server
);
Parameters
server
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

forgetPassword()

void forgetPassword();
Parameters

None.

Exceptions thrown
Missing Exception
Missing Description

forgetSessionPassword()

void forgetSessionPassword();
Parameters

None.

Exceptions thrown
Missing Exception
Missing Description

generatePrettyNameForMigration()

AString generatePrettyNameForMigration();
Parameters

None.

Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getBoolAttribute()

boolean getBoolAttribute(
  in string name
);
Parameters
name
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getBoolValue()

boolean getBoolValue(
  in string attr
);
Parameters
attr
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getCharAttribute()

ACString getCharAttribute(
  in string name
);
Parameters
name
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getCharValue()

ACString getCharValue(
  in string attr
);
Parameters
attr
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getFileValue()

nsILocalFile getFileValue(
  in string relpref,
  in string abspref
);
Parameters
relpref
Missing Description
abspref
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getFilterList()

nsIMsgFilterList getFilterList(
  in nsIMsgWindow aMsgWindow
);
Parameters
aMsgWindow
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getIntAttribute()

long getIntAttribute(
  in string name
);
Parameters
name
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getIntValue()

long getIntValue(
  in string attr
);
Parameters
attr
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getMsgFolderFromURI()

nsIMsgFolder getMsgFolderFromURI(
  in nsIMsgFolder aFolderResource,
  in ACString aURI
);
Parameters
aFolderResource
Missing Description
aURI
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

Requires Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)

getNewMessages()

void getNewMessages(
  in nsIMsgFolder aFolder,
  in nsIMsgWindow aMsgWindow,
  in nsIUrlListener aUrlListener
);
Parameters
aFolder
Missing Description
aMsgWindow
Missing Description
aUrlListener
Missing Description
Exceptions thrown
Missing Exception
Missing Description

getPasswordWithUI()

ACString getPasswordWithUI(
  in AString aPromptString,
  in AString aPromptTitle,
  in nsIMsgWindow aMsgWindow,
  out boolean okayValue
);
Parameters
aPromptString
Missing Description
aPromptTitle
Missing Description
aMsgWindow
Missing Description
okayValue
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getUnicharAttribute()

these generic getter / setters, useful for extending mailnews note, these attributes persist across sessions.

AString getUnicharAttribute(
  in string name
);
Parameters
name
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

getUnicharValue()

AString getUnicharValue(
  in string attr
);
Parameters
attr
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

Requires Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)

isNewHdrDuplicate()

boolean isNewHdrDuplicate(
  in nsIMsgDBHdr aNewHdr
);
Parameters
aNewHdr
Missing Description
Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

onUserOrHostNameChanged()

void onUserOrHostNameChanged(
  in ACString oldName,
  in ACString newName
);
Parameters
oldName
Missing Description
newName
Missing Description
Exceptions thrown
Missing Exception
Missing Description

performBiff()

void performBiff(
  in nsIMsgWindow aMsgWindow
);
Parameters
aMsgWindow
Missing Description
Exceptions thrown
Missing Exception
Missing Description

performExpand()

void performExpand(
  in nsIMsgWindow aMsgWindow
);
Parameters
aMsgWindow
Missing Description
Exceptions thrown
Missing Exception
Missing Description

removeFiles()

this is also very dangerous. this will remove the files associated with this server on disk.

void removeFiles();
Parameters

None.

Exceptions thrown
Missing Exception
Missing Description

setBoolAttribute()

void setBoolAttribute(
  in string name,
  in boolean value
);
Parameters
name
Missing Description
value
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setBoolValue()

void setBoolValue(
  in string attr,
  in boolean value
);
Parameters
attr
Missing Description
value
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setCharAttribute()

void setCharAttribute(
  in string name,
  in ACString value
);
Parameters
name
Missing Description
value
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setCharValue()

void setCharValue(
  in string attr,
  in ACString value
);
Parameters
attr
Missing Description
value
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setDefaultLocalPath()

void setDefaultLocalPath(
  in nsILocalFile aDefaultLocalPath
);
Parameters
aDefaultLocalPath
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setFileValue()

void setFileValue(
  in string relpref,
  in string abspref,
  in nsILocalFile aValue
);
Parameters
relpref
Missing Description
abspref
Missing Description
aValue
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setFilterList()

void setFilterList(
  in nsIMsgFilterList aFilterList
);
Parameters
aFilterList
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setIntAttribute()

void setIntAttribute(
  in string name,
  in long value
);
Parameters
name
Missing Description
value
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setIntValue()

void setIntValue(
  in string attr,
  in long value
);
Parameters
attr
Missing Description
value
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setUnicharAttribute()

void setUnicharAttribute(
  in string name,
  in AString value
);
Parameters
name
Missing Description
value
Missing Description
Exceptions thrown
Missing Exception
Missing Description

setUnicharValue()

void setUnicharValue(
  in string attr,
  in AString value
);
Parameters
attr
Missing Description
value
Missing Description
Exceptions thrown
Missing Exception
Missing Description

shutdown()

void shutdown();
Parameters

None.

Exceptions thrown
Missing Exception
Missing Description

storePassword()

logon succeeded - persist password, if user chooses.

void storePassword();
Parameters

None.

Exceptions thrown
Missing Exception
Missing Description

toString()

AString toString();
Parameters

None.

Return value

Missing Description

Exceptions thrown
Missing Exception
Missing Description

writeToFolderCache()

void writeToFolderCache(
  in nsIMsgFolderCache folderCache
);
Parameters
folderCache
Missing Description
Exceptions thrown
Missing Exception
Missing Description

Remarks

 

See also

Document Tags and Contributors

Contributors to this page: Sheppy, One
Last updated by: Sheppy,