Reformatted excerpts from Gabriel Landais's message of 2008-06-03: > Here it is (for 10, same thing for 100 000!) : > > [EMAIL > PROTECTED]:~/.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 <[EMAIL PROTECTED]> _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk