MozillaZine

Obtaining link from TB message to paste externally(e.g Word)

User Help for Mozilla Thunderbird
cadudesun
 
Posts: 40
Joined: December 13th, 2011, 3:37 am

Post Posted September 9th, 2017, 1:42 pm

Hi,
I'd appreciate help.
I'd like to obtaining a link from a TB message in order I can paste it into external app (e.g. MSWord).
Then, when I click on that link in Word, it will trigger Thunderbird and displays the message/email there.
Is it possible?
Thanks!

DanRaisch
Moderator

User avatar
 
Posts: 117058
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted September 9th, 2017, 2:28 pm

It's not clear what you are trying to do. There are no links TO Thunderbird messages, although there may be link IN Thunderbird messages. Clicking on a link displayed in a Thunderbird message will launch the system's default browser to display the site associated with the link. Messages in Thunderbird are not web sites so there is no URL associated with a message that could be used to launch Thunderbird.

makaiguy

User avatar
 
Posts: 16463
Joined: November 18th, 2002, 6:44 pm
Location: Somewhere in SE USA

Post Posted September 10th, 2017, 11:14 am

Never tried this before, but it works with my old MS Office 2007 installation:

Right-click message in TBird (or whatever the Apple equivalent is) and click Save As ....
Save with your chosen filename (with .eml filename suffix) and location.
This will extract a copy of the message and save it in its own separate .eml file.

In Word, enter the text you want to show as your link.
Highlight the link text, then right-click and choose Hyperlink...
Use the Edit Hyperlink dialog's file picker to navigate to the file, then click OK.

In your resulting Word document, place your cursor on the link text then hold down Ctrl while you click the link (again, or whatever the equivalent is in Apple) to open the message file. Make sure your operating system is set to open .eml files in TBird.

Edited to add:

This will work as long as you are running it from a computer with direct access to where the message .eml file is stored. If you wish to use this document elsewhere, it will be necessary to store the .eml file on a server somewhere, and link to the address on THAT location.
Doug Wilson, "The Makai Guy"
Win10 (64bit): FF 52.3.0 ESR (64bit), TB 52.3.0 (32bit)║ Android 7.0/6.0.2: FF 54.0.1, No TB for Android available, dammit!
What a fool believes he sees, no wise man has the power to reason away - Doobie Brothers

tanstaafl
Moderator

User avatar
 
Posts: 43005
Joined: July 30th, 2003, 5:06 pm

Post Posted September 10th, 2017, 1:35 pm

See http://kb.mozillazine.org/Command_line_ ... hunderbird . It mentions two ways:

"The -mail URL command line argument opens the message whose URL you specified. Select the message in Thunderbird, enter var hdr = top.opener.gFolderDisplay.selectedMessage; alert(hdr.folder.getUriForMsg(hdr)); in the error console and press the evaluate button to get a popup with the URL. You can't specify the URL for a folder, only for a specific message. [1] For example: thunderbird.exe -mail "mailbox-message://user%40gmail.com@pop.googlemail.com/Templates#12345""

See viewtopic.php?f=39&t=2937893 for more information. Note that the URL breaks (or points to the wrong message) if you move the message to another folder or change its position in the current folder. It works best if the message is not in the inbox as that reduces the chances you will change its position again.

"The ThunderLink add-on can be used to create a string that will launch Thunderbird and display the selected message." It's no longer maintained but there is a decent chance it work with recent versions of Thunderbird since it formally supported version 31.
https://addons.mozilla.org/en-US/thunde ... src=search

makaiguy's solution might be easier. It depends upon how many messages we are talking about and how stable things are.

Return to Thunderbird Support


Who is online

Users browsing this forum: Pres-Gas and 7 guests