Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIMsgAccount

nsIMsgAccount

An account consists of an incoming server and one or more outgoing identities.
Inherits from: nsISupports Last changed in Gecko 1.7

Method overview

void addIdentity(in nsIMsgIdentity identity);
void clearAllValues();
void init();
void removeIdentity(in nsIMsgIdentity identity);
AString toString();

Attributes

Attribute Type Description
defaultIdentity nsIMsgIdentity  
identities nsISupportsArray Read only. Outgoing identity list (array of nsIMsgIdentity's)
incomingServer nsIMsgIncomingServer Incoming server stuff
key ACString Internal key identifying itself

Methods

addIdentity()

Adds a new identity to this account.

void addIdentity(
  in nsIMsgIdentity identity
);
Parameters
identity
The identity to add.

clearAllValues()

Clear all user preferences associated with an account.

void clearAllValues();
Parameters

None.

init()

Initializes an account.

void init();
Parameters

None.

Exceptions thrown
NS_ERROR_ALREADY_OPENED

if it is called more then once

removeIdentity()

Removes an identity from this account.

void removeIdentity(
  in nsIMsgIdentity identity
);
Parameters
identity
The identity to remove.

Document Tags and Contributors

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