Saving emails fails if a filename is too long
Categories
(Thunderbird :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: george-hopkins, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
Steps to reproduce:
- Select some emails (some of which contain long subject lines)
- Run "Save as ..." from the context menu
Actual results:
An error occurs: "Unable to save the message. Please check your filename and try again later."
Log:
JavaScript error: chrome://messenger/content/mailCommands.js, line 421: NS_ERROR_FILE_NAME_TOO_LONG: Component returned failure code: 0x80520011 (NS_ERROR_FILE_NAME_TOO_LONG) [nsIMessenger.saveMessages]
Expected results:
Thunderbird should automatically trim filenames such that they are not longer than the limit imposed by the operating system. The user has no option to modify the generated filenames and is therefore unable to mitigate this issue himself. At the moment, users need to figure out which emails are affected and save them individually.
Comment 1•6 years ago
|
||
You are using Thunderbird 68.0a1? Check Help > Troubleshooting Information for the version number.
How many letters in the subject line?
Updated•6 years ago
|
| Reporter | ||
Comment 2•6 years ago
|
||
I'm using Thunderbird 60.6.1 at the moment.
There seems to be no fixed limit for the subject line (the formatted filename looks like "Subject - User <local@host> - 2019-04-19 1904.eml"). I suspect name is longer than NAME_MAX/255 bytes in SaveAsFile().
Comment 3•6 years ago
|
||
Another "too long" issue here: Bug 1515022.
Updated•3 years ago
|
Description
•