seawasp: (Default)
seawasp ([personal profile] seawasp) wrote2009-07-29 06:38 pm

Mail Issues #2...

Well, I switched from Netrape Aggravator to the Mac Mail program for the interim.

So far, I can't get any of the obvious applications to open (a copy of) the original mail file. Word of course doesn't recognize it, TextEdit refuses it, and when I tried:

"formail -e -d -s inboxfile >> newinboxfile"

(substituting "Inbox" for "inboxfile" and "NewInbox" for "newinboxfile")

my console just sorta sat there for, well, a long time until I finally killed it off. There was a new file called "NewInbox", but it had nothing in it.

Any more ideas? I've got like 1.2GB of mail file sitting there mocking me. I'm sure MOST of it must be perfectly fine.

[identity profile] ninjarat.livejournal.com 2009-07-30 03:38 pm (UTC)(link)
Not if it isn't ASCII. That's the rub. Most text editors can't deal with non-text data, and how they deal with it varies. Anyway, there's always Emacs. It will read just about anything. Size might be a problem but content isn't. For a quick check with Emacs, "cat Inbox | head -1000 > tempfile" and then "emacs tempfile". (And for the record, I hate Lj's auto-formatting. It eats > and <.)

[identity profile] ninjarat.livejournal.com 2009-07-30 04:08 pm (UTC)(link)
ASCII is 7-bit, codes 0-127.

That error confirms something: line ends are messed up. So do this instead: "dd if=Inbox of=tempfile bs=1024 count=1024". That will give you an exactly 1MB tempfile. Edit that with Emacs. That will work even if the file is totally mangled. It may not be pretty but it will work.

[identity profile] kpreid.livejournal.com 2009-07-30 04:08 pm (UTC)(link)
You misunderstand:
Open the file with 'less' as you did before. Make your terminal window reasonably large. Select and copy from your terminal and show us the result.