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

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

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

Post by cadudesun »

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!
User avatar
DanRaisch
Moderator
Posts: 127188
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Obtaining link from TB message to paste externally(e.g W

Post by DanRaisch »

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.
User avatar
makaiguy
Posts: 16878
Joined: November 18th, 2002, 6:44 pm
Location: Somewhere in SE USA
Contact:

Re: Obtaining link from TB message to paste externally(e.g W

Post by makaiguy »

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
Win10 64bit: FF 115.0.02 64bit, TB 102.12.0 32-bit ║ Android 13/10: FF 115.2.0/115.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
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Obtaining link from TB message to paste externally(e.g W

Post by tanstaafl »

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 http://forums.mozillazine.org/viewtopic ... &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.
Post Reply