Given that it’s a rather cold and unpleasant day outside, I’ve been devoting a bit of time and patience to my usual quarterly backups, which are now (at least apparently) smoother thanks to Time Machine and Mail.app’s archival feature.
Anyway, I’ve been rather lazy where it regards updating my IMAP backup script. A number of people have sent me patches and little improvements for it, but it always turns out that I cannot really test them (i.e., give them a thorough workout) until my next backup is due, and then, on that date, something else comes up and I end up not testing them. And so on.
Plus, despite it being exceptionally useful for the geek crowd, it’s not something I can easily tell other (non-geek) people to use/do, so I’ve been playing around with Mail.app in an attempt to figure out what it can do on its own.
Call it a learning experience, if you will.
And guess what, its
Archive Mailbox... command actually does what it says on the tin – it saves an IMAP folder as a
.mbox bundle (which contains a standard
mbox file and a
table_of_contents file), and will do that not just for SSL mailboxes but even for an entire tree of folders, which is nice.
What isn’t nice (and which was, I now recall, one of the reasons I wrote imapbackup in the first place) is that Mail.app crashes during export of very large mailboxes (4281 items, roughly 1.9GB overall) to an external disk3.
When it’s the only app running5.
It also doesn’t do incremental backups or remove duplicate messages when exporting (plus having a few quirks with pathnames), but I could live with that if it had gotten the basics right.
Time to search for those imapbackup patches again, I think.
1 I still cannot fathom why it couldn’t have been architected to have access to my FileVault home directory whilst I’m logged in, like “proper” backup solutions.
3 I’m using a folder alongside Time Machine backups on the same external disk.
4 Tried it again. Worked fine. Tried another folder, waited a while… Bang.
5 Other than Time Machine, which wakes up now and then to sniff the hard disk.