Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Keep Mail on an encrypted disk image Apps
You can keep your mailboxes on an encrypted image created by Disk Copy. Mail keeps your mailboxes in the ~/Library/Mail folder, and you can copy this folder over to an encrypted image. Unfortunately, you can't just delete the original and replace it with an alias (by dragging the folder back while holding down the Command and Option keys). That doesn't work -- Mail will not give a warning but will not find your mailboxes, either.

Instead, you must create a symbolic link. Suppose you have created an image which mounts on the desktop as a disk named SECRET and you have copied over the Mail folder and deleted the original. Start up the Terminal application and type
 % cd ~/Library
% ln -s "/Volumes/SECRET/Mail" Mail
Now if you look back in ~/Library folder with the finder, you will find what looks like an alias. Mail will now work correctly. By the way, if you are using Eudora for mail (in Classic mode), you can just create an alias to the Eudora Folder. A symbolic link is not required.

[Editor's note: You can, of course, use a more generic version of this hint to keep your Mail folder on any volume, not just an encrypted disk image.]
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)

Keep Mail on an encrypted disk image | 3 comments | Create New Account
Click here to return to the 'Keep Mail on an encrypted disk image' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
corrupted disk images...
Authored by: Anonymous on Sep 28, '02 06:51:09AM
...will rock your world like no other. Not directly related to this hint, but a few folks have reported problems with their disk images getting corrupted. Maybe an HFS+ problem, maybe a hard drive failure, maybe a cosmic ray! Regardless of the cause, there is no known tool that repairs a corrupted disk image, AFAIK. So if you use encrypted disk images to store sensitive data, back it up!

[ Reply to This | # ]
One problem...
Authored by: tcurtin on Feb 15, '03 04:00:39PM

Keeping files in disk images is squirrelly business. If you eject the image, an alias (created using command-option-drag) will actually open the disk image for you when double-clicked. However, a static link created with ln -s will not. Unfortunately, this means if your encrypted disk image isn't mounted and you start up, you'll see an empty mailbox.

Anyone know of a way around this?

[ Reply to This | # ]
Applescript Workaround
Authored by: noworryz on Feb 17, '03 01:01:56AM

A workaround is to create an Applescript that tells the Finder to open your disk image then tells the Finder to open Mail. Hide away the Mail application and always launch it via the Applescript.

Or do what I do and assign a function key (using FruitMenu) to mounting your disk image and another to launching Mail. I've never mixed them up, probably because the 'mount' key is easier to find (near my power button) and the 'Mail' key is just to the right of it.

[ Reply to This | # ]