搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

  • 2 回覆
  • 1 有這個問題
  • 15 次檢視
  • 最近回覆由 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.

所有回覆 (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.