Closed Bug 363977 Opened 18 years ago Closed 18 years ago

add an event handle "MsgMessengerLoaded" to be used to start further functions at startup

Categories

(Thunderbird :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gNeandr, Assigned: Bienvenu)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0 This requests an TB-event handler which makes it possible to start any additional function at startup, eg. to grap the command line parameters and do further processing. This could be used to have a start string like "thunderbird -mail <message-ID>". A extension would do an "find the message in the mail-stack and open it after TB started". This event could be part of "function delayedOnLoadMessenger()" in "msgMail3PaneWindow.js" as part of "messenger.jar" Reproducible: Always Actual Results: An other implementation would be just to add a few lines at the end of the "function delayedOnLoadMessenger()": > try { onLoadMessenger_hook(); } > catch (err) { } ... that works fine (together with a function in the extension to catch that call, but that's not a general solution!
oh, actually, it occurs to me, you can register your own command line handler to get access to the command line. I'll try to dig up a link for that...I assume an extension can do that...
Assignee: mscott → bienvenu
Status: UNCONFIRMED → NEW
Ever confirmed: true
http://developer.mozilla.org/en/docs/nsICommandLineHandler has a link to a sample JS component that handles command line parameters.
OS: Windows XP → All
Hardware: PC → All
I think David's right, the extensions should implement their own command line handlers. We shouldn't be using the event system for this. Here's an example command line implementation in JS: http://lxr.mozilla.org/mozilla/source/mail/extensions/newsblog/js/newsblog.js#241
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.