Leopard's Spotlight doesn't search Mail messages

Leopard's Spotlight isn't searching email messages. I made a clean install of 10.5, and have two POP accounts. The message files are right there under ~/Library/Mail/... . I rebuilt the index for the system volume by adding and then removing the volume from the Privacy zone in Spotlight preferences. I also tried some of the command-line suggestions posted elsewhere for this problem. I recently added my backup volume to the privacy zone, but other than that the zone is empty.
But the problem remains. Outside Mail.app, Spotlight never comes back with search results that are mail messages. Inside Mail.app, searching "entire message" returns 0 results. Does anyone know how to diagnose this problem? Can I see if a particular file is included in the metadata index?

Hahaaaa! Solved it - at least for me...
Please read the whole explanation first before just gabbing any presented commands and executing them in the Terminal. The solution requires no Terminal.
I had exactly the same problem described by MikeW and JJ. I tried everything like you before at no avail, too. But I tried one more thing that did work and indexed all my mail. Here is what I did at the command line. Don't type the command right away. It will work, but this is not the root cause of your problem, I present it just to explain:
find ~/Library/Mail -name "*.emlx" -exec mdimport {} \;
This searches for the individual message (*.emlx) files themselves and throws them one by one onto the mdimporter which imports them just fine. Still, a plain mdimport ~/Library/Mail would not work which pointed me in the right direction: Spotlight did not "see" these individual message files. But Why?
I fiddled a bit with file/folder permissions since I also simply upgraded from Tiger and ended up with old Tiger permission based user accounts. No result. I discovered, that in Finder the mailboxes, say ~/Library/Mail/Mailboxes/INBOX.mbox etc. were displayed as package files instead of folders. Strange. So again I tried mdimport -d1 ~/Library/Mail now with a bit of debugging. Aha! Spotlight imports this folder as type 'dyn.ah62d4rv4ge81g45mr3wgn8a', or similar, a dynamic UTI, instead of with 'com.apple.mail.mbox' as what it should have been. Since this unknown dynamic UTI dosn't mean anything sensible to Spotlight, it would simply skip the folder, not scanning it's contents with the well known result that mails cannot be searched by content.
So, what is essentially overwriting these UTIs? Especially because this would not happen in another Leopard-created user account. I felt guilty as I added some custom UTIs in the past, but nothing to do with mail at all. So who carries UTIs for Mail.app? Well... Mail.app! Another Mail.app? YES! I remembered, that I had an older complete pre-Spotlight system backup on my current system, including all applications including Mail.app in version 1.3.something. AFAIK only with Mail 2.0 Apple changed the way Mail saves messages and they apparently also changed the UTI of .mbox to the new format. I simply deleted the old version of Mail.app. Immediately after that the icons of the .mbox changed and I could open these folders in Finder. I tried again mdimport ~/Library/Mail and - boom - Spotlight imported all my mails!
Long story to explain my thoughts, here are 5 steps for you to try:
1. Search your system to find out if you have multiple different copies of Mail.app. You can do that with Spotlight/Finder or enter in the terminal:
sudo find / -type d -name "Mail.app" -ls
(You need to be admin to sudo, type your password when prompted)
2. Locate and check the found versions of Mail.app in Finder via the get info window.
3. Delete all but the actual copy of Mail.app in /Applications from your system (empty trash!).
4. Enter the following line in the terminal to have Spotlight import your messages:
mdimport ~/Library/Mail
Should take much longer now, depending on the number of mails you have.
5. Check the result by searching mail content in Mail/Finder/Spotlight, enjoy!
Note: If you did find and delete old versions of Mail.app, but step 4 did not work, you might have to log out and in or you can even try to restart the machine. In my case the result was instant. If all of that did not work for you - sorry - but probably the above helps you to track your particular problem down.
ecke

Similar Messages

  • Leopard's Spotlight doesn't search...

    Hi there!
    I've got a problem with Leopard Server...
    It's the first time that I run a server version.
    Everything works great! But... Spotlight...
    Spotlight doesn't search anything on my internal HD. On my external HD (connected with FireWire) it works!
    I already deleted the .Spotlight Folder on my startup disk... But that doesn't help... I added my HD to the "privacy" Tab in Spotlight and deleted it after that... But that doesn't help, too...
    Has anybody of you an idea how to make this work?
    Thanks a lot!

    I got to Spotlight to search and index my internal harddisk again.
    I rebuilt the .Spotlight-V100 folder including the subfolder which I copied from a working (searchable external harddisk) which I initially deleted in my trial to get Spotlight working again.
    After a lot of tinkering with mdutil, Cocktail (a superb OS X system utility) and the Spotlight preference panel the overal problem for Spotlight might have been that I have got the internal and the Windows partition named starting the same name "Aristoteles" then a "blank" and the "HD" on the OS X partition and "WinXP" on the Windows partition. Obviously that got Spotlight confused because when I specifically excluded the windows partition (using the Spotlight preferences panel) and reactivated the remaining OS X partition using the "sudo mdutil -i on /Volumes/Internal" command (I renamed the OS X disk partition from "Aristoteles" to "Internal") ... bang Spotlight kicked in ... but the strange thing is that Spotlight kicked in telling me it is searching the OS X partition "Aristoteles" instead of "Internal".
    I cannot remember any technical comment (this is pure "trial and error" on my side) that Spotlight only takes the first part of a disk name. But if two partitions on the same disk start with the same name Spotlight may run in to troubles unless one is excluded from searching ... and even a later renaming of a partition doesn't help ...
    Message was edited by: OlympusUser

  • Spotlight doesn't search mails in Entourage

    I just upgraded my Air from Lion to Mountain Lion. Spotlight took about 15 minutes to Index everything, but now I'm not able to see my emails from Entourage in Spotlight.

    .

  • How to fix spotlight doesn't search movies,places or bing web search?

    spotlight doesn't search movies or anything bing web search, it only search file on my mac in yosemite. How can i fix this???

    Hello arnoota,
    for me Spotlight's content search works for docx, too. Are the info in your signature correct? If so you should install the 10.5.4 update of Leopard! At least for 10.5.3 some changes concerning Spotlight are documented by Apple, so probably this issue got fixed as well with one of these two updates.
    floba
    (MN358)

  • Smart Folders, Spotlight comments and Apple mail messages

    Hi,
    I have a simple question, but couldn't figure it out yet:
    I have a workflow that tags specific mail messages according to the specific mail inbox folders I assign them to (be it via incoming rules, or Act-On rules) by automatically adding specific Spotlight comments.
    My mail messages, therefore, have text in their comment boxes (if you check via GetInfo).
    When I use Spotlight, I can find mail messages by searching for the comments - this is exactly as expected.
    I however also have smart folders (searching for a specific Spotlight comment) that list other files that I tag with the same Spotlight comments - but my Smart Folders never find the mail messages with the requested tags (at most they find the folder that contains the messages if this folder is tagged - which it is generally not).
    Question: how can I make sure that the Smart Folder does indeed identify and list the mail messages that I have tagged via Spotlight comment ?
    Thanks a lot !
    D.V.
    iBook G4   Mac OS X (10.4.6)  

    Howdy,
    I cannot reproduce this problem myself...I see the same results in both the Mail spotlight and the spotlight menu bar item. I'm not sure if after installing 10.5 a new spotlight index is created, but it might be worth a shot to create a fresh index and see if that helps.
    I haven't tried this, but it was the easy way I could find to reindex.
    Open Spotlight Preferences
    In the privacy tab, add the volume you want to reindex
    After a few moments, remove that volume from the privacy list
    Allow Spotlight to reindex the volume
    Please let me know if that works for reindexing.
    +R

  • Spotlight doesn't search Stickies

    I've just realised today that Spotlight can't find entries in Stickies. I have all boxes ticked in Spotlight so you'd think that Stickies being an Apple app, that it would also search in Stickies. I keep my software up-to-date, so it's not that.
    I have snother notes application called PadsX - and Spotlight doesn't search that either.
    Any suggestions anyone on how to make Spotlight more efficient?

    Hi Irena,
    A few ways to do it...
    http://guides.macrumors.com/Addingfiletypes_toSpotlight
    http://www.macosxhints.com/article.php?story=20060729190236629&mode=print
    http://www.macosxhints.com/article.php?story=2005052015041510
    SpiralBound is a note App that has a Search function bui;t in...
    http://www.rivulus-sw.com/Rivulus/SpiralBound.html

  • Searching Mail Messages

    Is it just me or is the search function in Apple Mail really bad all of a sudden? I'm searching for messages, which I know are there, and it doesn't find any of them. I have 3 IMAP Google Apps account in Apple Mail and at the moment to search for a specific message I'm having to login to Webmail and then search via Gmail's search function, which then finds the messages I'm after.

    One thing thing the cited article doesn't mention is that you can prepare an image that is Spotlight indexed, convert it to a DVD image, and burn that...
    With regard to your question, if you know how to use the UNIX command line, open a Terminal window and use grep to search the elmx files. If you don't want to go that route, there are a bunch of desktop search alternatives like Google Desktop which, *I think*, will permit you to to index removable media.

  • Spotlight won't EXCLUDE mail messages

    i am having a terrible time with my searches getting cluttered up with "Mail Messages". seems like since the day i started using Spotlight i have not been able to /exclude/ mail messages from my searches and this means i can never sort big searches the way i need to because there is so many mail messages listed.
    can anyone help me as to whether there is a plist i can delete and write over or if i can simply exclude the MAIL folder in Privacy to get this accomplished?
    TIA

    I had added the email account manually on the iPhone.
    I just tried deleting it then setting it up on my Mac, then syncing it via iTunes
    Same thing. If the work email is enabled then spotlight doesn't find emails in my .Mac account.
    If I disable the .Mac account it doesn't find work emails, so I think it's not multiple accounts per-se but something to do with my work account - that said we do run a very antiquated Sun mail server, so my eyebrows are definitely not moving in an upward direction.
    Paul

  • Spotlight doesn't search imdb or bing, why?

    It was mentioned that spotlight would also search the web. Well, in my case it doesn't. I have all sources checked in System settings for spotlight.
    But when I search for i.e. Mel Gibson I only recieve results from my harddrive and dictionary.
    Yes, I am on WiFi and connected to Internet. Running Yosemite on my MBA. I live in Sweden, but that shouldn't matter.
    Anyone else had this problem and found a sollution?

    Same problem but only on one share out of three.
    I just setup a OS X Server (10.5.2), standard (easy) configuration. Clients are 10.5.2 as well. Absolutely nothing out of the ordinary.
    But spotlight searches are ONLY working on one out of the three shares! I tried deleting the Spotligt database (via Cocktail) and rebuilding but it didn't help.
    The something strange happened! One folder on one of the non-indexed shares was indexed but nothing else. Almost as if Spotlight had done a little bit of work and then crashed. But the md-processes are still running. Strange...
    I've tried looking for Spotlight log messages but haven't had any luck...
    Amazing that such a central piece of OS X Server can be so hard to diagnose. After searching the forums I understand that I'm not the only one with problems.
    Apple - how about user-friendly tool to verify and peek at Spotlight databases?

  • Spotlight doesn't search Word 2008 doc(x)s

    Though Spotlight doesn't have any problems searching within older Word files (all with the .doc extension), it does not search within the new Word 2008 .docx files. It does include the file names of .docx files, but doesn't seem to be able to search within the docs themselves. Does anyone know how to fix this? Thank you so much!

    Hello arnoota,
    for me Spotlight's content search works for docx, too. Are the info in your signature correct? If so you should install the 10.5.4 update of Leopard! At least for 10.5.3 some changes concerning Spotlight are documented by Apple, so probably this issue got fixed as well with one of these two updates.
    floba
    (MN358)

  • SmartFolder doesn't locate Mail messages

    Spotlight search includes Mail messages, but when using the same criteria for a Smart Folder, Mail messages are NOT included. Is this by design, or an anomaly?
    Yes, I know I could use a Smart Mailbox, but I'd like a SmartFolder on my desktop that would include correspondence along with the other items that meet my criteria.
    PowerMac   Mac OS X (10.4.8)  

    Mike has it nailed. You can create your own Smart Folder WITHOUT the exclusion. Thus if you created Smart Folder that searches for pinkmutant the actual query that is executed is this:
    (* = "pinkmutant*"wcd || kMDItemTextContent = "pinkmutant*"cd) && (kMDItemContentType != com.apple.mail.emlx) && (kMDItemContentType != public.vcard)
    So email and vcards are silently excluded from the search. What you can do is instead of typing the term in the Search box, go to the Other item in the criterion drop down menu, scroll down the list and select Raw Query, then enter just this in the Raw Query search box:
    (* = "pinkmutant*"wcd || kMDItemTextContent = "pinkmutant*"cd)
    It will now search for items whose text contains pinkmutant, including email and vcards.
    Francine
    Francine
    Schwieder

  • Spotlight won't search mail with more than one account enabled

    Just upgraded to iPhone OS 3. On the whole good.
    I have a .Mac mail account for my personal stuff and I have an IMAP account set up for my work email.
    When both are active Spotlight on the iPhone won't find any Mail messages. Turn off the work account and it then works OK.
    Anyone else seeing this?

    I had added the email account manually on the iPhone.
    I just tried deleting it then setting it up on my Mac, then syncing it via iTunes
    Same thing. If the work email is enabled then spotlight doesn't find emails in my .Mac account.
    If I disable the .Mac account it doesn't find work emails, so I think it's not multiple accounts per-se but something to do with my work account - that said we do run a very antiquated Sun mail server, so my eyebrows are definitely not moving in an upward direction.
    Paul

  • Spotlight Doesn't Search Servers anymore?

    Spotlight used to search servers attached to my computer such as backup drives I'd mount here at work but lately no matter what you search for on the drive it can't find. It comes back empty handed. What is the story here? is it a bug or something else i'm not aware of?
    Any help would be great

    Same problem but only on one share out of three.
    I just setup a OS X Server (10.5.2), standard (easy) configuration. Clients are 10.5.2 as well. Absolutely nothing out of the ordinary.
    But spotlight searches are ONLY working on one out of the three shares! I tried deleting the Spotligt database (via Cocktail) and rebuilding but it didn't help.
    The something strange happened! One folder on one of the non-indexed shares was indexed but nothing else. Almost as if Spotlight had done a little bit of work and then crashed. But the md-processes are still running. Strange...
    I've tried looking for Spotlight log messages but haven't had any luck...
    Amazing that such a central piece of OS X Server can be so hard to diagnose. After searching the forums I understand that I'm not the only one with problems.
    Apple - how about user-friendly tool to verify and peek at Spotlight databases?

  • Search Mail message bodies?

    Can I search the message body in Mail like I can in Gmail?  I can't seem to find a way to do it and I thought Mountain Lion OSX would allow this.

    When you type something in the search field, you should get a choice of what kind of search you want Mail to make, including 'message content':

  • Spotlight doesn't search in word documents

    Hello,
    I have a Question regarding Spotlight: If I look for any phrase which is in word documents, Spotlight doesn't find it. (I got some documents from a friend, each about 100 pages). When I use OpenOffice and export the documents to pdf: no problem, Spotlight works perfectly.
    Is there a way to force Spotlight to index this folder? I thought, Spotlight would index word documents automatically...

    I found out the reason:
    The *.doc documents were rtf-documents with a doc at the end. Spotlight doesn't index rtf as it seems.
    Saving them as word solved the problem.

Maybe you are looking for

  • Where can I find a horizontal accordion menu tutorial

    I have googled all day looking for a horizontal accordion menu for javascript and haven't found an actual tutorial. I have found downloads, but I want learn how to make one.

  • Bootcamp wont open 10.9.4

    So basically iv'e had alot of trouble installing windows on my mac, i'm using an iso and a bootable usb and the main issue at the moment is bootcamp wont show up at all since iv'e modified one of the files in it, specifically the info.plist file and

  • Sql loader syntax issue

    SQL*Loader: Release 11.1.0.7.0 - Production on Thu Mar 18 07:21:37 2010 Copyright (c) 1982, 2007, Oracle. All rights reserved. SQL*Loader-350: Syntax error at line 1. Expecting keyword LOAD, found "ÐÏ". ÐÏࡱá ^ My sqlldr file looks like this: sqlldr

  • Sys password problem

    Hi, I am trying to login as a sys user.... but icouldn't, i am getting an error ORA-01017... but i have entered correct username and password.... still i am not able to login into the system........ now, should i create new password by deleting the o

  • Memory Options for Manifest?

    Hi all, Is there a way to set the JVM memory arguments (like -Xms and -Xmx) in the manifest or similar mechanism? I'm converting an application from being launched with a .bat file to a double-clickable .jar, but i'm seeing a bit performance hit rega