Open Bug 1971724 Opened 6 months ago Updated 1 month ago

Open .eml file on smb network folder fails (unless you add comma delimited remote hosts to mail.allowed_unc_hosts)

Categories

(MailNews Core :: Networking, defect)

Thunderbird 128
defect

Tracking

(Not tracked)

People

(Reporter: marioyorck, Unassigned)

References

Details

Steps to reproduce:

Open eml file on smb network folder

Actual results:

Empty Message windows

Expected results:

Showing Message

Same problem in version 128.10.1esr, fixed in version 128.10.2esr with this changelog:

  • Messages could not be viewed if the profile used a UNC path
  • Access was not allowed to attachments at specific UNC hosts

I think the same problem is back in version 128.11.1esr .

Error-Console:

Warning:
Blocking UNC mailbox at ///server.local. To allow, add the hostname to mail.allowed_unc_hosts. /builds/worker/checkouts/gecko/comm/mailnews/local/src/nsMailboxProtocol.cpp:129

Error:
Uncaught NS_ERROR_FILE_UNRECOGNIZED_PATH: Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIMsgMessageService.loadMessage]
displayMessage chrome://messenger/content/aboutMessage.js:335
actuallyLoadMessage chrome://messenger/content/messageWindow.js:177
aboutMessage.js:335
displayMessage chrome://messenger/content/aboutMessage.js:335
actuallyLoadMessage chrome://messenger/content/messageWindow.js:177

I added the server in configuration under allowed_unc_hosts and it worked. But you only get the hint for this setting in the error console.

It's kind of expected yes.

Summary: Messages could not be viewed, maybe because UNC path → Open .eml file on smb network folder fails (unless you add the remote host to mail.allowed_unc_hosts)
Duplicate of this bug: 1971948

I’m using Thunderbird 139.0.2 (64-bit).
Adding IP addresses to mail.allowed_unc_hosts works fine.
However, using a hostname like super.nas (even if it's mapped correctly in the hosts file) does not work.
Thunderbird still fails to open .eml files from UNC paths using that hostname.

I can confirm the problem in 128.11.1esr (64-Bit Windows) on the PCs in our company.

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1972264

Not good to have bugs marked NEW/confirmed in the Untriaged component - they tend to get lost.

Component: Untriaged → Networking
Product: Thunderbird → MailNews Core
Summary: Open .eml file on smb network folder fails (unless you add the remote host to mail.allowed_unc_hosts) → Open .eml file on smb network folder fails (unless you add comma delimited remote hosts to mail.allowed_unc_hosts)

Despite .eml content not showing:

  • email's "Subject" is shown in window titlebar, so file must have been read
  • one can use File -> Save and a whole content will be saved somewhere

Can confirm this bug up to 140.1.0esr (64-bit).

Workaround for me is to assign drive letters to my network shares. This is easier than editing mail.allowed_unc_hosts and it also works.

I have this issue too!!

.eml files open blank in my windows active directory foldes such a downloads folder which is re-directed to smb network share. But If I open an .eml located in my cryptomator vault (also located on smb network share) it works fine.

Duplicate of this bug: 1981334
Duplicate of this bug: 1982013
Duplicate of this bug: 1979862

just updating: issue was not fixed in the new 142.0 version

I tried the UNC config edit. I tried "true", Ip address of my pc, IP address of the NAS, UNC path of where the .eml file is located. Nothing worked.

It was working for the longest time until recently. What am I doing wrong???

It should be the the hostname or IP that is used to access the NAS. Check the Error Console (Ctrl+Shift+J) to see what it used.

(In reply to Magnus Melin [:mkmelin] from comment #17)

It should be the the hostname or IP that is used to access the NAS. Check the Error Console (Ctrl+Shift+J) to see what it used.

Thank you, I saw error:

Blocking UNC mailbox at ///company.com. To allow, add the hostname to mail.allowed_unc_hosts.

So I just added: company.com and it's working now. Will this eventually be fixed? Or do you know if there is a windows group policy method to deploy this to all computers?

(In reply to bright_footprint741 from comment #18)

do you know if there is a windows group policy method to deploy this to all computers?

I don't know about a dedicated GPO, I deploy a user.js file (with all our "global" settings) directly to each user's profile dir.

Regarding the issue: it would be nice if there was a popup error message O:-)

Thanks everyone!

(In reply to jorilx from comment #19)

(In reply to bright_footprint741 from comment #18)

do you know if there is a windows group policy method to deploy this to all computers?

I don't know about a dedicated GPO, I deploy a user.js file (with all our "global" settings) directly to each user's profile dir.

Regarding the issue: it would be nice if there was a popup error message O:-)

Thanks everyone!

Thanks very much for that! I made a powershell script to put the user.js file in the profile folders and it worked!

Have a good day

Duplicate of this bug: 1998932
You need to log in before you can comment on or make changes to this bug.