We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

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

搜尋 Mozilla 技術支援網站

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

了解更多

How can I copy selected emails to a given directory in the file system

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

more options

I am using TB 78.14.0 (64-Bit) on Xubuntu 20.04 64-Bit. I have configured TB such that it uses maildir rather than mbox.

I want to copy a selected set of emails found after using TB's search function. I want to remain TB's internal structure unchanged. I just want to copy them to some folder, say ~/TopicFolder.

I'll have to search for other keywords and in other email accounts within TB for other emails dealing with my given topic.

Finally I want to have all files which I have identified as related to the given topic and merge it to a folder of other files dealing with that specific topic.

How can I achieve this goal?

Where is the folder in the file system which holds all the *.eml files?

I would be very happy if the file names would start with the date, preferably in ISO8601 format (yyyy-mm-dd), because almost all my files are named like this. I would even be more happy if the file name format would be

yyyy-mm-dd_FROM <email address>_SUBJECT <subject>.eml

or

yyyy-mm-dd_TO <email address>__SUBJECT <subject>.eml

where the parts in <...> are taken from the associated fields (possibly shortening <subject> to some given limit of characters).

I am using TB 78.14.0 (64-Bit) on Xubuntu 20.04 64-Bit. I have configured TB such that it uses maildir rather than mbox. I want to copy a selected set of emails found after using TB's search function. I want to remain TB's internal structure unchanged. I just want to copy them to some folder, say ~/TopicFolder. I'll have to search for other keywords and in other email accounts within TB for other emails dealing with my given topic. Finally I want to have all files which I have identified as related to the given topic and merge it to a folder of other files dealing with that specific topic. How can I achieve this goal? Where is the folder in the file system which holds all the *.eml files? I would be very happy if the file names would start with the date, preferably in ISO8601 format (yyyy-mm-dd), because almost all my files are named like this. I would even be more happy if the file name format would be yyyy-mm-dd_FROM <email address>_SUBJECT <subject>.eml or yyyy-mm-dd_TO <email address>__SUBJECT <subject>.eml where the parts in <...> are taken from the associated fields (possibly shortening <subject> to some given limit of characters).

被選擇的解決方法

Thank you for the hint to Use ImportExportTools NG. There is a version 11 out which is claimed to work with TB Verision 68-78, however I could not install it into my TB 78. I finally got Version 10.0.2 using a normal TB Addon search and this one also works.

First you have to select the messages you want to store as files in TB's message overview. Second you have to right click on the selected ones in the subject part of the display of them. Then you select Save selected Messages > EML format.

Unfortunately, the date at the beginning of each file name is formatted in the somewhat cluttered format yyyymmdd, where I can't tell the date components apart very well. I am now writing myself a script to convert "^(\d{4})(\d{2})(\d{2}) " to "$1-$2-$3_". After its application the filenames become yyyy-mm-dd_ and then comes the rest. But most of the time you have to shorten the file names by hand anyway.

從原來的回覆中察看解決方案 👍 0

所有回覆 (3)

more options
more options

選擇的解決方法

Thank you for the hint to Use ImportExportTools NG. There is a version 11 out which is claimed to work with TB Verision 68-78, however I could not install it into my TB 78. I finally got Version 10.0.2 using a normal TB Addon search and this one also works.

First you have to select the messages you want to store as files in TB's message overview. Second you have to right click on the selected ones in the subject part of the display of them. Then you select Save selected Messages > EML format.

Unfortunately, the date at the beginning of each file name is formatted in the somewhat cluttered format yyyymmdd, where I can't tell the date components apart very well. I am now writing myself a script to convert "^(\d{4})(\d{2})(\d{2}) " to "$1-$2-$3_". After its application the filenames become yyyy-mm-dd_ and then comes the rest. But most of the time you have to shorten the file names by hand anyway.

more options

You can change the date format via the add-on's options. No scripting is required.