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


Click here to return to the '10.4: Remove duplicate 'ghost' Mail messages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Remove duplicate 'ghost' Mail messages
Authored by: Mattherat on Jul 09, '05 09:30:56AM
Unfortunately for me this fix didn't help because I deleted the accounts from were the orphaned messages came from, trying to fix this error. Without any luck...
BTW, I suppose these ghost messages occur when Mail crashes while downloading them by pop from your account and/or while importing them from somewhere... Also inaccessible IMAP mails result in such messages.

In my case I found the mails as stated above with a Smart Mailbox, but when I tried to delete them the font color just became grey but the messages stayed where they were...

After a little bit of searching the web, I thought I found the solution by re-indexing for mails with Spotlight, as Mail.app is using Spotlight in it's internal search (and therefore in the Smart Mailboxes)
mdimport -r /System/Library/Spotlight/Mail.mdimporter
Found at http://www.macintouch.com/tigerreview/spotlight.html
but also this didn't help... :-( Does anyone know how I can get rid of these annoying messages?

[ Reply to This | # ]
10.4: Remove duplicate 'ghost' Mail messages
Authored by: Mattherat on Jul 09, '05 11:43:50AM
After further thinking and trial and error, I finally found out how to solve my problem:
  1. Exit Mail.app
  2. Backup your ~/Library/Mail folder
  3. Delete ~/Library/Mail folder
  4. Start Mail.app and set up at least one of your accounts
  5. Select File->Import Mailboxes, choose "Mail for MacOSX" and select your previously backuped Mail folder
  6. all your Mails should be imported now and if you set up a Smart List as mentioned above, no orphaned Mails exist anymore
  7. Exit Mail.app and copy MessageRules.plist, SmartMailboxes.plist and you Bundles Folder from your backup to ~/Library/Mail to recover your rules, smartlists and plugins...
That's it...
For my 10000+ (1GB) mails the import lastet less than 10mins...

[ Reply to This | # ]
10.4: Remove duplicate 'ghost' Mail messages
Authored by: mahakali on Dec 12, '06 07:13:27AM
This command worked for me:
sudo mdimport -f ~/Library/Mail/


[ Reply to This | # ]