Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Remove Gmail's All Mail folder in Mail from Spotlight index' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Remove Gmail's All Mail folder in Mail from Spotlight index
Authored by: ja on Fri, Feb 15 2008 at 12:49PM PST

I used a similar technique to keep my spam folder on an imap account from being synced with Mail.app.

Instead of creating an empty file I just link the mailbox to /dev/null

Follow the directions in the parent comment and then instead of

touch "All Mail.imapmbox"
use
ln -s /dev/null "All Mail.imapmbox"

Or, more accurately in my case:

ln -s /dev/null spam.imapmbox



[ Reply to This | Parent | # ]
Remove Gmail's All Mail folder in Mail from Spotlight index
Authored by: poppap on Sat, Mar 8 2008 at 1:57AM PST
Instead of touch or ln -s to /dev/null
I copied the emptied Trash folder (Empty it in Mail.app first) as All Mail and chmod it to be read only.

first,
rm -fr "All Mail.imapmbox"
or back it up
then
cp -R Trash.imapmbox "All Mail.imapmbox"
chmod -R 500 "All Mail.imapmbox"

This prevent Mail.app from crashing when performing the search.

[ Reply to This | Parent | # ]