Access local mail via

Mar 18, '04 10:16:00AM

Contributed by: opudeldix

I wanted to read my local mail (stored in /var/mail/$USER) with, so I played around a little. Here is the result. I don't know if there is an easier way in Panther to do this. First open a terminal. Type in:

cd ~/Library/Mail/Mailboxes/
Create a new Mailbox:
mkdir Local.mbox
(or whatever name you like) Change the permissions for the mailbox:
chmod 755 Local.mbox
Create the Info.plist (with vi):
vi Local.mbox/Info.plist
Go to the INSERT mode by hitting i, and paste the following XML statements (the !DOCTYPE line needs to be one line, not two -- shown as two here for width reasons. Replace the return with one space):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
<plist version="1.0">
Exit vi by pressing the Escape key, then typing :wq. Now link to your mail in /var/mail:
sudo ln /var/mail/$USER  Local/mbox
That's it...

[robg adds: I thought we'd run something like this before, but I can't find it anywhere ... so my apologies if this is a dupe!]

Comments (17)

Mac OS X Hints