exact format of an mbox file
I'm using Thunderbird on Ubuntu 24 and have some messages in some mailboxes that have lost their headers. I'm trying to fix them.
Early (1980's command line mail & mailx) mbox files were pure text with messages delimited by a blank line followed by a line starting with 'From ' (or possibly 'From: '). When I open a Thunderbird mbox file in 'vi' it is 'converted', or so it says. I'm wondering what this 'conversion' is and why it's needed.
Please could someone tell me what the strict rule that delimits messages in a Thunderbird mbox file is, and what is it that 'vi' cannot handle that requires 'conversion'?
Thanks
153.3.1esr (64-bit) Thunderbird Meadow Thunderbird Snap for Ubuntuubuntu-snap-build - 1.0
Všetky odpovede (1)
I can see from examining a Thunderbird mbox folder file with a text editor (Notepad++) that each new message begins like this. It's plain ASCII text:
From - Thu Oct 08 16:39:34 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000
Sample date, of course, but this shows the format.
The X-Mozilla-Status codes are defined here:
https://vincent.bernat.ch/en/x-mozilla-status
I notice from looking at a many-years-old folder, that the messages were separated with only "From ". But after Repairing and Compacting it, it now has the date and X-Mozilla headers added, which suggests to me that the format was changed sometime in the past, presumably to make it less fragile.