Open Bug 1544708 Opened 6 years ago Updated 3 years ago

Saving emails fails if a filename is too long

Categories

(Thunderbird :: Untriaged, defect)

defect

Tracking

(Not tracked)

UNCONFIRMED

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.

You are using Thunderbird 68.0a1? Check Help > Troubleshooting Information for the version number.

How many letters in the subject line?

Severity: normal → minor
Flags: needinfo?(george-hopkins)

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().

Flags: needinfo?(george-hopkins)

Another "too long" issue here: Bug 1515022.

Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.