Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Exporting to Mbox with 'ImportExportTools NG' add-on not quite working

  • 1 件の返信
  • 1 人がこの問題に困っています
  • 43 回表示
  • 最後の返信者: Mark Foley

more options

After researching on how to export my inbox to an Mbox file I found the suggestion(s) to use 'ImportExportTool NG' add-on. I installed that and ran it as instructed (right-click on Inbox folder > ImportExportTools NG > Export Folder). The resulting file, Inbox, is not an mbox file, at least not one like gets created by Linux in the /var/spool/mail folder. I cannot open it with mailx directly. It does appear to open with mutt. I can open it with mailx if I remove the \r at the end of each line (since the "standard" mbox format wants a blank line between messages). However, the From line for each message has the datestamp of when the files was exported, not the datestamp of when the actual messages was sent. E.g:

From - Thu Nov 11 23:28:10 2021

versus: From mike@mydom.com Fri Nov 5 08:04:38 2021

Can this be fixed?

After researching on how to export my inbox to an Mbox file I found the suggestion(s) to use 'ImportExportTool NG' add-on. I installed that and ran it as instructed (right-click on Inbox folder > ImportExportTools NG > Export Folder). The resulting file, Inbox, is not an mbox file, at least not one like gets created by Linux in the /var/spool/mail folder. I cannot open it with mailx directly. It does appear to open with mutt. I can open it with mailx if I remove the \r at the end of each line (since the "standard" mbox format wants a blank line between messages). However, the From line for each message has the datestamp of when the files was exported, not the datestamp of when the actual messages was sent. E.g: From - Thu Nov 11 23:28:10 2021 versus: From mike@mydom.com Fri Nov 5 08:04:38 2021 Can this be fixed?

選ばれた解決策

Problem solved with a custom bash script. The CR/LF issue is solved by using the Linux Thunderbird version of the 'ImportExportTool NG' add-on. However, the "From " line is still messed up and not in accordance with man mbox which says, "A postmark line consists of the four characters "From", followed by a space character, followed by the message's envelope sender address, followed by whitespace, and followed by a time stamp." Furthermore, the date in the add-on's "From " line is the date of the export, not the date of the message.

I saw no add-on developer's contact info, but I suppose he/she would have be contacted to fix this.

More detail and a bash script to post-process the exported mbox file can be found here: https://www.linuxquestions.org/questions/linux-server-73/export-of-thunderbird-inbox-to-mbox-file-not-quite-working-4175703465

この回答をすべて読む 👍 0

すべての返信 (1)

more options

選ばれた解決策

Problem solved with a custom bash script. The CR/LF issue is solved by using the Linux Thunderbird version of the 'ImportExportTool NG' add-on. However, the "From " line is still messed up and not in accordance with man mbox which says, "A postmark line consists of the four characters "From", followed by a space character, followed by the message's envelope sender address, followed by whitespace, and followed by a time stamp." Furthermore, the date in the add-on's "From " line is the date of the export, not the date of the message.

I saw no add-on developer's contact info, but I suppose he/she would have be contacted to fix this.

More detail and a bash script to post-process the exported mbox file can be found here: https://www.linuxquestions.org/questions/linux-server-73/export-of-thunderbird-inbox-to-mbox-file-not-quite-working-4175703465