@mozilla.org/messenger;1

This component implements the following interfaces:

Constants

PRInt32 nsIMessenger.eUnknown = 0
PRInt32 nsIMessenger.eDeleteMsg = 1
PRInt32 nsIMessenger.eMoveMsg = 2
PRInt32 nsIMessenger.eCopyMsg = 3

Properties

PRBool nsIMessenger.sendingUnsentMsgs

readonly nsITransactionManager nsIMessenger.transactionManager

Methods

InterfaceMethod
nsIMessenger PRBool CanRedo ( )
nsIMessenger PRBool CanUndo ( )
nsIMessenger void CompactFolder ( nsIRDFCompositeDataSource db , nsIRDFResource folder , PRBool forAll )
nsIMessenger void CopyFolders ( nsIRDFCompositeDataSource database , nsIRDFResource dstResource , nsISupportsArray folders , PRBool isMoveFolder )
nsIMessenger void CopyMessages ( nsIRDFCompositeDataSource database , nsIRDFResource srcResource , nsIRDFResource dstResource , nsISupportsArray messages , PRBool isMove )
nsIMessenger void DeleteFolders ( nsIRDFCompositeDataSource db , nsIRDFResource parentFolder , nsIRDFResource folder )
nsIMessenger void EmptyTrash ( nsIRDFCompositeDataSource db , nsIRDFResource folder )
nsIMessenger PRUint32 GetRedoTransactionType ( )
nsIMessenger PRUint32 GetUndoTransactionType ( )
nsISupportsWeakReference nsIWeakReference GetWeakReference ( )
nsIMessenger void launchExternalURL ( char* URL )
nsIMessenger void loadURL ( nsIDOMWindowInternal ptr , char* URL )
nsIMessenger nsIMsgMessageService messageServiceFromURI ( char* uri )
nsIObserver void observe ( nsISupports subject , char* topic , PRUnichar* data )
nsIMessenger void openAttachment ( char* contentTpe , char* url , char* displayName , char* messageUri )
nsIMessenger void OpenURL ( char* URL )
nsIMessenger void Redo ( nsIMsgWindow msgWindow )
nsIMessenger void RenameFolder ( nsIRDFCompositeDataSource db , nsIRDFResource folder , PRUnichar* name )
nsIMessenger void saveAllAttachments ( PRUint32 count , arrayof char* contentTypeArray , arrayof char* urlArray , arrayof char* displayNameArray , arrayof char* messageUriArray )
nsIMessenger void saveAs ( char* URI , PRBool asFile , nsIMsgIdentity identity , PRUnichar* msgFilename )
nsIMessenger void saveAttachment ( char* contentTpe , char* url , char* displayName , char* messageUri )
nsIMessenger nsILocalFile saveAttachmentToFolder ( char* contentType , char* url , char* displayName , char* messageUri , nsILocalFile destFolder )
nsIMessenger void sendUnsentMessages ( nsIMsgIdentity identity , nsIMsgWindow msgWindow )
nsIMessenger void setDisplayCharset ( char* charset )
nsIMessenger void SetDocumentCharset ( char* characterSet )
nsIMessenger void SetWindow ( nsIDOMWindowInternal ptr , nsIMsgWindow msgWindow )
nsIMessenger void Undo ( nsIMsgWindow msgWindow )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
June 9, 2004, 7:04 pm woodie at netpress dot com
Thunderbird extensions can launch URLs in the default browser like this:


try {
var messenger = Components.classes["@mozilla.org/messenger;1"].createInstance();
messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger);
messenger.launchExternalURL(url);
} catch (ex) {}

Copyright © 1999 - 2005 XULPlanet.com