Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

.csv attachment opens in Notepad, not in Excel

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 Matt

more options

Hi,

When I click on a .csv attachment in an incoming email, it automatically opens in Notepad. How can I change this to open it in Excel?

If I go to Options/Options/Attachments/Incoming, I see a list of file types and associated actions for them. But I cannot add an item to this list.

I am using TB 68.12.1 (32-bit).

Windows is set to open .csv with Excel, so if I save the attachment and then open it outside TB, it opens correctly in Excel.

Thanks.

Hi, When I click on a .csv attachment in an incoming email, it automatically opens in Notepad. How can I change this to open it in Excel? If I go to Options/Options/Attachments/Incoming, I see a list of file types and associated actions for them. But I cannot add an item to this list. I am using TB 68.12.1 (32-bit). Windows is set to open .csv with Excel, so if I save the attachment and then open it outside TB, it opens correctly in Excel. Thanks.

所有回覆 (1)

more options

Thunderbird uses the internet style media types when deciding what action to take with an attachment. In is styling the file extension is not only irrelevant, it is optional. Only to the windows operating system is a file extension more than a decoration.

Registered text media type are listed here https://www.iana.org/assignments/media-types/media-types.xhtml#text

Despite common terminology, attachments are not files. They are mime encoded text in the boday of an email. They only become files when you elect to do something with them, at which point the MIME text in the email is converted to a file and written to the file system.

This is the beginning of a mime encoded block for a PDF file

--Boundary.1633693627
Content-Type: application/pdf; name="TRPB_1_1678965312.pdf"
Content-Disposition: attachment; filename="TRPB_1_1678965312.pdf"
Content-Transfer-Encoding: base64

When Thunderbird processes this document it will create a file names as specified and it will take action on the file based on the settings for that Content Type:

I suggest you check your incoming mail if correctly encoded by the sender using the content type: text/CSV. (Ctrl+U opens the message source and you now know what sort of formatting to look out for to determine the file type). My guess is the file is not correctly encoded as CSV, but as something associated with notepad, like plain text.