Open a specific mail from outside of thunderbird (UNIX)

Paul Wellner Bou <[email protected]> Tue, 07 Jun 2005 04:13:33 +0200
Newsgroups gmane.comp.mozilla.devel.unix
Message-ID <[email protected]>
Hi,

I posted the same question in the mozillazine forums without getting any 
reaction. Hoping I will get some, here... ;)
The question/problem I have regards Thunderbird. But I think the Mozilla 
Mail Application does have the same problem/lack of feature.

I tried that serveral times yet, searching around, reading the 
XRemote-Code, etc. There does not seem to exist a possibility to open a 
specific mail from outside of Mozilla Mail/Thunderbird. Is that right?
If not, how do I do that?

I know that there are a few remote commands, explained in 
http://www.mozilla.org/unix/remote.html and in the source file linked on 
this page. There are commands to open a new url in a new firefox window 
or in a new tab. There is a command to open the complete 
Mail/Thunderbird window, too.

The only possibility to open a mail by giving the mailbox:// url 
(displayed as window title in the mail source view) is to open a new 
thunderbird (what is only possible if there is no thunderbird instance 
running because of the profile conflicts) or, using mozilla suite, 
giving the mail url to the browser (but that is not what I want).

I found those commands:

To open the whole Mailbox window of a running instance:
thunderbird -remote "xfeDoCommand(openInbox)"

To open the whole Mailbox window displaying a specific mail in the 
preview pane:
thunderbird -P default -mail 
mailbox:///home/<user>/.thunderbird/<account>/Mail/<folder>/<mboxfile>?number=<number>

To open a mail with Mozilla and display it in the browser (the 
display-style used to display mails breaks changing the charset with 
view->character encoding):
mozilla -url 
mailbox:///home/<user>/.thunderbird/<account>/Mail/<folder>/<mboxfile>?number=<number>

This works only with pop3-mbox accounts, neither imap (because of the 
authentification) nor newsgroup mails.

Is there any way to implement this feature?
Is it technically possible to write an extension to allow this?

Thx.
Paul.