Can't open .msg files from Firefox in Outlook 365
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: vaidas, Unassigned, NeedInfo)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Steps to reproduce:
Open any .MSG file with outlook directly from Firefox.
Actual results:
Give out an error.
Expected results:
.MSG file should open in outlook.
Comment 1•5 years ago
|
||
What is your exact version of Firefox?
Does the filename contain any spaces?
Do you use Citrix software?
Firefox version 72.0.2
Yes the file name with spaces
Citrix -No(In reply to Gingerbread Man from comment #1)
What is your exact version of Firefox?
Does the filename contain any spaces?
Do you use Citrix software?
Comment 3•5 years ago
|
||
:toshi, any idea what's going on here or how to debug further?
Comment 4•5 years ago
|
||
I think I reproduced the issue with the following steps. This happens regardless whether a path contains whitespaces or not.
- Install Outlook application
- Open Firefox and navigate to a page containing a link to a .msg file
- Click a link to a .msg file
- In the opening dialog, choose [Open with] and select [Other...]
- In the [Choose Helper Application] dialog, choose Microsoft Outlook
- In the opening dialog, click [OK]
- Outlook shows an error dialog.
To open a .msg file with Outlook, it seems that we need to add /f option (e.g. "outlook.exe /f path-to-file.msg"). However, when firefox tries to open a file with a custom application, we launch the executable with a path to the file without any options. That's why this dialog is displayed. Probably we need to construct a command based on the registry information, not just appending a filepath to an executable's path.
Comment 5•5 years ago
|
||
(In reply to Toshihito Kikuchi [:toshi] from comment #4)
Probably we need to construct a command based on the registry information, not just appending a filepath to an executable's path.
Actually this will be a huge work.
An official way to get the right command to open a file is to use AssocQueryString
or IQueryAssociations
. We can query a command for an executable. For example, we can query for notepad.exe and get a command "%SystemRoot%\system32\NOTEPAD.EXE %1", but the problem is some applications do not register an executable's name. Outlook is one of those applications. So we cannot simply know a command to open a .msg file with outlook.exe if it's selected as a custom application.
Even though there is a way to query a command, another problem is some applications use DDE to open a file. Outlook does not use a DDE, but Excel does. To use DDE, we need to post a window message after launching a process.
Vaidotas, I have a couple of questions for you.
If I select the default application to open a .msg file (which is Outlook), Outlook opens the file correctly.
If the issue you have is the same as my repro, you choose a custom application to open a .msg file. Is that correct? If so, is there any reason you don't use the default application to open a .msg file?
I attached a screenshot of firefox's opening dialog. The first item "Microsoft Outlook (default)" is the default appication and it works good. The other options are a custom application. If you choose "Microsoft Outlook" as a custom application, this issue happens.
Comment 6•5 years ago
|
||
Comment 7•5 years ago
|
||
(In reply to Toshihito Kikuchi [:toshi] from comment #5)
An official way to get the right command to open a file is to use
AssocQueryString
orIQueryAssociations
. We can query a command for an executable. For example, we can query for notepad.exe and get a command "%SystemRoot%\system32\NOTEPAD.EXE %1", but the problem is some applications do not register an executable's name. Outlook is one of those applications. So we cannot simply know a command to open a .msg file with outlook.exe if it's selected as a custom application.Even though there is a way to query a command, another problem is some applications use DDE to open a file. Outlook does not use a DDE, but Excel does. To use DDE, we need to post a window message after launching a process.
We haven't heard from the reporter, but I think these issues are basically bug 1541780 - :toshi, can you confirm?
Comment 8•5 years ago
|
||
(In reply to :Gijs (he/him) from comment #7)
We haven't heard from the reporter, but I think these issues are basically bug 1541780 - :toshi, can you confirm?
Oh, I didn't notice it. Yes, this is exactly bug 1541780.
Updated•5 years ago
|
Description
•