Dan Parent wrote:
> Is it possible to make a call from .js to see if mailnews is actually
> installed? I'm planning on adding some basic email support into the
> calendar project but before I enable any of the menu options for email
> functionality I want to test whether mailnews is actually installed.
> I know I could try to get the MsgAccountManager and if it exists
> mailnews should be installed but is there a *better* way? I'm
> thinking something along the lines of getting a ComponentManager and
> then asking whether the mailnews component exists.
Such as:
if ("@mozilla.org/messenger/account-manager;1" in Components.classes)
Alternatively you could supply the email support as a separate package...