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.

nsIMsgIdentity

IID:3038bec6-2a5f-4eba-977d-4e037ae5aba3
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

PRBool attachSignature

PRBool attachVCard

PRBool autocompleteToMyDomain

If this is false, don't append the user's domain to an autocomplete address with no matches

PRBool autoQuote

ACString bccList

PRBool bccOthers

PRBool bccSelf

PRBool composeHtml

ACString directoryServer

PRBool doBcc

ACString doBccList

PRBool doFcc

ACString draftFolder

ACString draftsFolderPickerMode

ACString email

ACString escapedVCard

ACString fccFolder

ACString fccFolderPickerMode

PRBool fccReplyFollowsParent

AString fullName

AString identityName

ACString key

AString organization

PRBool overrideGlobalPref

readonly PRInt32 receiptHeaderType

PRInt32 replyOnTop

ACString replyTo

readonly PRBool requestDSN

Default request for DSN option for this identity if this is set, the DSN menu item on the compose window will be checked

readonly PRBool requestReturnReceipt

Default request for return receipt option for this identity if this is set, the Return Receipt menu item on the compose window will be checked

PRBool showSaveMsgDlg

PRBool sigBottom

nsILocalFile signature

PRInt32 signatureDate

ACString smtpServerKey

The preferred smtp server for this identity. if this is set, this the smtp server that should be used for the message send

ACString stationeryFolder

ACString tmplFolderPickerMode

PRBool valid

Valid determines if the UI should use this identity and the wizard uses this to determine whether or not to ask the user to complete all the fields


Methods

void clearAllValues ( ) void copy ( nsIMsgIdentity identity ) PRBool getBoolAttribute ( char* name ) ACString getCharAttribute ( char* name ) PRInt32 getIntAttribute ( char* name ) AString getUnicharAttribute ( char* name ) void setBoolAttribute ( char* name , PRBool value ) void setCharAttribute ( char* name , ACString value ) void setIntAttribute ( char* name , PRInt32 value ) void setUnicharAttribute ( char* name , AString value ) AString toString ( )

void clearAllValues ( )

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


void copy ( nsIMsgIdentity identity )

Arguments:
identity

PRBool getBoolAttribute ( char* name )

Arguments:
name

ACString getCharAttribute ( char* name )

Arguments:
name

PRInt32 getIntAttribute ( char* name )

Arguments:
name

AString getUnicharAttribute ( char* name )

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

Arguments:
name

void setBoolAttribute ( char* name , PRBool value )

Arguments:
name
value

void setCharAttribute ( char* name , ACString value )

Arguments:
name
value

void setIntAttribute ( char* name , PRInt32 value )

Arguments:
name
value

void setUnicharAttribute ( char* name , AString value )

Arguments:
name
value

AString toString ( )


References

This interface is the type of the following properties:

nsIMimeStreamConverter.identity, nsIMsgAccount.defaultIdentity, nsIMsgComposeParams.identity, nsIMsgComposeService.defaultIdentity, nsIMsgFolder.customIdentity, nsISmtpUrl.senderIdentity

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

nsIMessenger.saveAs, nsIMessenger.sendUnsentMessages, nsIMsgAccount.addIdentity, nsIMsgAccount.removeIdentity, nsIMsgAccountManager.GetServersForIdentity, nsIMsgAccountManager.removeIdentity, nsIMsgCompUtils.msgGenerateMessageId, nsIMsgCompose.SendMsg, nsIMsgCompose.SetSignature, nsIMsgCompose.checkCharsetConversion, nsIMsgCompose.processSignature, nsIMsgComposeSecure.beginCryptoEncapsulation, nsIMsgComposeSecure.requiresCryptoEncapsulation, nsIMsgComposeService.OpenComposeWindow, nsIMsgComposeService.determineComposeHTML, nsIMsgIdentity.copy, nsIMsgSend.createAndSendMessage, nsIMsgSend.sendMessageFile, nsIMsgSendLater.SendUnsentMessages, nsIMsgSendLater.getUnsentMessagesFolder, nsISmtpService.GetSmtpServerByIdentity, nsISmtpService.SendMailMessage

This interface is returned from the following methods:

nsIMsgAccountManager.createIdentity, nsIMsgAccountManager.getFirstIdentityForServer, nsIMsgAccountManager.getIdentity

Reference documentation is generated from Mozilla's source.