nsIMsgIdentity

IID:2b165a14-1ac1-4c32-8cc5-72e2937d5be9
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

char* bccList

PRBool bccOthers

PRBool bccSelf

PRBool composeHtml

char* directoryServer

PRBool doBcc

char* doBccList

PRBool doFcc

char* draftFolder

char* draftsFolderPickerMode

char* email

char* escapedVCard

char* fccFolder

char* fccFolderPickerMode

PRUnichar* fullName

PRUnichar* identityName

char* key

PRUnichar* organization

PRBool overrideGlobalPref

readonly PRInt32 receiptHeaderType

PRInt32 replyOnTop

char* replyTo

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

char* smtpServerKey

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

char* stationeryFolder

char* 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 ) char* getCharAttribute ( char* name ) PRInt32 getIntAttribute ( char* name ) PRUnichar* getUnicharAttribute ( char* name ) void setBoolAttribute ( char* name , PRBool value ) void setCharAttribute ( char* name , char* value ) void setIntAttribute ( char* name , PRInt32 value ) void setUnicharAttribute ( char* name , PRUnichar* value ) PRUnichar* 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

char* getCharAttribute ( char* name )

Arguments:
name

PRInt32 getIntAttribute ( char* name )

Arguments:
name

PRUnichar* 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 , char* value )

Arguments:
name
value

void setIntAttribute ( char* name , PRInt32 value )

Arguments:
name
value

void setUnicharAttribute ( char* name , PRUnichar* value )

Arguments:
name
value

PRUnichar* toString ( )


References

This interface is the type of the following properties:

nsIMimeStreamConverter.identity, nsIMsgAccount.defaultIdentity, nsIMsgComposeParams.identity, nsIMsgComposeService.defaultIdentity, 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, nsIMsgDraft.OpenDraftMsg, nsIMsgDraft.OpenEditorTemplate, 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.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com