Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever posted them. This site is not responsible for what they say.
Remove Gmail's All Mail folder in Mail from Spotlight index
Authored by: Tiggar on Feb 15, '08 10:06:17AM
Another way to remove the messages from GMails [All Mail] folder out of Mail.app would be to:

1. Close Mail.app and make sure it's not running anymore.
2. Open the Terminal/iTerm
3. Navigate to (using the 'cd' command)
    /Users/<your current user>/Library/Mail/IMAP-<your gmail account name>@gmail.com@imap.gmail.com/[Gmail]
(replace the the values in the brackets with your personal data)

4. In this directory you will find a folder called (use 'ls -alhG' command):
    drw-r--r--   1 Jan  Jan     0B Dec 20 19:22 All Mail.imapmbox
5. Delete
    rm -rf "All Mail.imapmbox"
or move
    mv "All Mail.imapmbox" /Users/<your current user>/Backup/Mail.app
this folder. The folder should exist beforehand. Create it with Finder.

6. Create an empty file with the same name
    touch  "All Mail.imapmbox"
7. Start Mail.app

Now the All Mail folder should be empty and will not be synchronized by Mail in future. This works for me since last year December and I'm happy with it.

Use this guide at your own risk. Be careful when deleting things in the terminal. Always double check what you are doing! Hope That Helps.

[ Reply to This | # ]
Remove Gmail's All Mail folder in Mail from Spotlight index
Authored by: ja on Feb 15, '08 12:49:36PM

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 | # ]
Remove Gmail's All Mail folder in Mail from Spotlight index
Authored by: poppap on Mar 08, '08 01:57:15AM
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 | # ]