about me

I'm a 34'ish year old web application developer from South Portland, Maine. I love meeting fellow techies, drop me a line if you want to talk shop.

Categories

Apple Mail troubles, rebuild spotlight index

Posted on 05/18 at 12:17 PM

I did some searching today on an issue I was having with Apple’s Mail program. 

Messages I’d had in a custom mailbox had disappeared on me, 3,821 of them to be exact. (gogo BBEdit mailing list) I tried getting Mail to rebuild the folder but no go. I then shut down Mail, deleted that folders “Info.plist” file on the hard drive and restarted Mail. The app quickly reloaded my emails into view, but I then found I was unable to search for them via spotlight.

After some searching, I found a Terminal command you can use to have Spotlight properly rebuild its index for your boot drive. Couldn’t hurt, right? Seems to have fixed everything for me.

sudo mdutil --i on /

re: Found here

3 Comments

Comment #1 by Jake  on  12/12  at  01:12 AM

I am using Mail 3.1 with Leopard… I was having a problem.  I had 3 ways of accessing one of my email addresses (Pop, Imap, Exchange).  After I decided to just use the Imap, I deleted all of the other emails via finder.  Then Mail would show me the message header of an email… but it would think that it was showing you an email when it just showed an empty preview pane (opening also no joy). 

I looked here and ran your terminal command, although I don’t think that was my problem (wasn’t with spotlight).  Instead, I found an option under Mailbox (while having a single mailbox selected)… the last one called “Rebulid”.  That didn’t seem to do much… although it did download a bunch of my messages again.

What finally worked was to go into my Users/ directory, Library/Mail and delete the (relatively) large “Envelope Index”.  Then I restarted Mail, and it rebuilt this file (took a couple of minutes with 21,000 messages).  This solved my problems.

BTW, nice site.  I like your “expand code” js.  Your look and feel is slick, but not overwhelming.

Comment #2 by CodeOfficer  on  12/12  at  02:06 AM

hmm interesting.

I had done the ‘rebuild’ option a number of times but it just wasn’t working for me. Deleting the Envelope Index is a way to force mail to rebuild its index, but I am not sure if it also updates spotlight. I’ll have to check this out now that I am on leopard too, might not be an issue anymore.

Comment #3 by PrE[M]aX  on  09/29  at  04:59 PM

Thanks for the tips !!!

Leave a comment?

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:


RailsConf 2008 Often times I will release code for free or go that extra distance to help others online. If my skills were useful to you, please consider a small donation. Thank you very much.

recommend me!

Search

You Can Find Me

@ github.com
@ twitter.com

My Wishlists

@ Amazon.com

My Other Sites

Foundation's Edge, RJones Family, We're Not.com (only for staging), Ailee Jones (same as rjones for now)

Friends of Mine

Aaron, Barnaby, Brian, Chris, Dirk, Frank, Fred, Four, Justin, Matt, Mike, Monty, Paul, Sean, Travis

IRC Hangouts

I can usually be found lounging on irc.freenode.net while I work, on the following channels: #fauna, #github, #hello-heroku, #jquery, #passenger, #ruby, #rubyonrails, #slicehost, #sproutcore, #textmate, #werenot.