From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Tue, 03 Jun 2008 19:42:36 -0700 Subject: [sup-talk] [bug] NoMemoryError on huge mbox In-Reply-To: <188c71690806030109u23997504w93195ebc7efd22fa@mail.gmail.com> References: <188c71690806011026u55851e39k2dd982dae28621d@mail.gmail.com> <1212460371-sup-5830@entry> <188c71690806030109u23997504w93195ebc7efd22fa@mail.gmail.com> Message-ID: <1212547299-sup-1634@entry> Reformatted excerpts from Gabriel Landais's message of 2008-06-03: > Here it is (for 10, same thing for 100 000!) : > > [glandais at server:~/.mozilla-thunderbird/4v86e51w.default/Mail/pops.codelutin.com > ] > $ ruby -e 'p File.open("Inbox").read(10)' > "\000\000\000\000\000\000\000\000\000\000" Ok, well, you can't really fault Sup for that one! It's just reading until it gets a newline. :) Still, why would Thunderbird produce a file full of zeros? > Perhaps I just shouldn't use that mbox. I never understood how > messages are saved in these directories. Here's what the Thunderbird FAQ claims: Your mail files are inside your profile (see the Profile Folder), in the Mail and (if you use IMAP) ImapMail folders. Each mail folder (Inbox, Sent, etc.) is stored as two files ? one with no extension (e.g. INBOX), which is the mail file itself (in "mbox" format), and one with an .msf extension (e.g. INBOX.msf), which is the index (Mail Summary File) to the mail file. Tell the other program to import mail from the file with no extension. http://www.mozilla.org/support/thunderbird/faq Which implies to me that Inbox was the correct file. But apparently not. Are there any other files that look like normal mbox files? -- William