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


Click here to return to the 'Access local mail via Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Access local mail via Mail.app
Authored by: rwmitchell on Nov 09, '04 10:37:57AM

This no longer seems to work in 10.3.6.

Everything seems to work at first, but after deleting mail from the new mailbox, Mail.app rewrites the Local.mbox/mbox file, breaking the link.



[ Reply to This | # ]
Access local mail via Mail.app
Authored by: rwmitchell on Nov 09, '04 10:54:37AM

I think the hint can be corrected.


mv /var/mail/$USER Local.mbox/mbox
ln -s ~/Library/Mail/Mailboxes/Local.mbox/mbox /var/mail/$USER

This causes any mail put into /var/mail/$USER to be redirected via the symbolic link into the Local.mbox/mbox file. Mail.app can erase and rewrite the mbox file to its little heart's content without affecting the other end of the link. The symbolic link points to the filename that will always exist.

The old hint failed because Mail.app creates a temporary mbox file when saving the changes, unlinks the original mbox file, and then renames the temporary file to mbox - which breaks the link.



[ Reply to This | # ]