Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

I would like to use URL reference to a mail in Thunderbird to open it directly from CLI into thunderbird GUI

  • 2 risposte
  • 1 ha questo problema
  • 15 visualizzazioni
  • Ultima risposta di sfhowes

more options

I see in the output of "thunderbird --help" an option "-mail" which can be used to open thunderbird at the mail view or if a "URL" argument is provided to "-mail" it opens that mail directly when thunderbird opens. Here is an excerpt from the --help page:

 -mail              Open the mail folder view.
 -mail <URL>        Open the message specified by this URL.

the option -mail <URL> would greatly benefit me in my notes as I can directly open the mail in thunderbird using the reference and a simple script. I have been searching for URLs to the mails in my thunderbird mailbox but could not locate a URL for any mail. How do I make it visible? I would need to view the URLs of my mails to note it down in my notes.

I see in the output of "thunderbird --help" an option "-mail" which can be used to open thunderbird at the mail view or if a "URL" argument is provided to "-mail" it opens that mail directly when thunderbird opens. Here is an excerpt from the --help page: -mail Open the mail folder view. -mail <URL> Open the message specified by this URL. the option -mail <URL> would greatly benefit me in my notes as I can directly open the mail in thunderbird using the reference and a simple script. I have been searching for URLs to the mails in my thunderbird mailbox but could not locate a URL for any mail. How do I make it visible? I would need to view the URLs of my mails to note it down in my notes.

Tutte le risposte (2)

more options

I was able to find the [article online for command line arguments] and I then tried to follow those instruction by selecting the mail by just selecting it from the mail box and opening the error console and then typing var hdr = top.opener.gFolderDisplay.selectedMessage; alert(hdr.folder.getUriForMsg(hdr)); but I get the response as "TypeError: top.opener is null" . Please let me know if I am not properly selecting the message. What would be the right way forward?

more options

I get the same TypeError in TB 68, which I suspect is because the recommended var hdr command is obsolete in new versions of TB. There is an add-on that apparently performs some of what you're looking for: ThunderLink.