Before I recently (& reluctantly) upgraded to TB 140.8.1esr, I used to be able to paste the following in the Error Console to get a URI for an email message (or templ… (ebele ya kotanga)
Before I recently (& reluctantly) upgraded to TB 140.8.1esr, I used to be able to paste the following in the Error Console to get a URI for an email message (or template) that I wanted to access from my calendaring app (EccoPro -- yeah, I know, one of those "from my dying hands" things, but it has never been equaled much less surpassed, just choked in the cradle by MS Office).
var hdr = gFolderDisplay.selectedMessage; alert(hdr.folder.getUriForMsg(hdr));
I would highlight the message I wanted to use, hit Shft-Ctrl -J, and paste that in the console.
I would get a notice with something like this which I could copy
"mailbox-message://nobody@Local%20Folders/Templates#10"
I could then put a clickable link in my calendaring app to run
"C:\Program Files\Mozilla Thunderbird\thunderbird.exe" -mail "mailbox-message://nobody@Local%20Folders/Templates#10"
That message would open. Then I could hit Ctrl-E to edit it, paste as needed, and send .
This worked very well. I did not come up with it. I struck gold with Google and just copied it. With something similar to AutoHotKey I was able to automate it.
Now those URI codes no longer launch at all, and I cannot get new ones because when I paste
var hdr = gFolderDisplay.selectedMessage; alert(hdr.folder.getUriForMsg(hdr));
into Error Console I get
Uncaught ReferenceError: gFolderDisplay is not defined
<anonymous> debugger eval code:1
getEvalResult resource://devtools/server/actors/webconsole/eval-with-debugger.js:306
evalWithDebugger resource://devtools/server/actors/webconsole/eval-with-debugger.js:218
evaluateJS resource://devtools/server/actors/webconsole.js:895
evaluateJSAsync resource://devtools/server/actors/webconsole.js:788
makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:103
If I had known what I was doing in the first place, I might be able to adapt to this version of Thunderbird. Something obviously changed in how the Error Console operates or something.
Does anyone know anything about what command could generate a message URI so I could open it from another app using the command line?
-Chris, the Reluctant Hoosier