How I solved my Spotlight+ Mail indexing problem

OK, so I thought I would post my solution to a stubborn indexing problem, for people who may have the same issue (and it does seem many people do).
Problem: Spotlight index was unreliable. In particular, Spotlight was terrible at indexing mail. It could not find the messages by content that it would find by searching the "from" field, nor could it find those reliably. Unusable.
What DID NOT work:
-- adding and removing any folder whatsoever in the Privacy preferences of Spotlight. The index would rebuild, but with the same problems.
-- doing this via terminal (e.g, using sudo mdutil -E /Volumes/MyHardDisk)
-- using Onyx
-- using Spotless
-- simply reinstalling the system
-- manually modifying the plist files inside the .spotlight folder to add and remove the folders that would not get indexed.
What DID work:
-- first, I reinstalled the system. That's not such a big deal. Upgrade up to 10.4.6
-- then, I authorized the root user (that's probably not necessary) (this, you do by using Netinfo manager)
-- Then, I deactivated the index (via terminal:
sudo mdutil -i off /Volumes/MyHardDisk
-- now the tricky part. This concerns Mail, in particular.
I have a very complex mail folder (tens of thousands of messages). I noticed that inside each mail folder, I had two things that were not supposed to be there
1. a copy of each folder.mbox which was empty, but with the same name without the extension .mbox. This is probably something that was created while importing mail from Panther to Tiger, for what I can tell.
2. Most importantly, a file named ".index.ready". This also, apparently, was an old legacy coming from Panther. I suspect this was the main problem for the lack of indexing in Mail.
Ok, so... I deleted these folders and files. If you have a complex structure of subfolders, you can delete the files with an Unix command by first cd to your mail folder, and then use
find . -name \.index.r* -ok rm {} \;
which will ask you confirmation before deleting each file.
It was faster to remove the empty subfolders by hand, as they all had different names.
-- Ok, at this point, I erased entirely the .Spotlight-V100 directory which stays at the root of your computer. You can do it with a rmdir command from the terminal or, as I did, you can login as root (remember, we activated root), use a utility that allows you to see hidden files (e.g., Tinkertool), and move it manually to the trash folder.
Then I emptied the trash. For superstition, I restarted, and let the index be built again (that took about 5 hours in my computer, for an HD with about 60 gb occupied on it).
Now everything seems to work perfectly fine. I don't know whether this procedure can be shortened, but I do know that nothing else worked for me. I thought I would post it here as I spent sooo much time to solve this problem, and furthermore, I found that none of the suggested solutions would work.
OK, your responsibility to do it, if you want to do it. Hope nobody needs to!
Best to you all,
l.
  Mac OS X (10.4.6)  

Thank you, thank you, thank you, Lucabo! Using ideas from your post, I also (at least for now) solved my Mail indexing problem. One day (not even after an upgrade) Mail just quit finding messages by content, even when I had open a message with that content!
What I did:
-- In System Preferences, told Spotlight to index only Mail (I just use grep from a Terminal window for everything else!)
-- Ensured Mail app wasn't running
-- Backed up my Library/Mail folder to an external disk
-- Turned off indexing via Terminal (after sudo sh), with
mdutil -i off /Volumes/MyHardDisk
-- Deleted old files in my mailboxes (inside the whatever.mbox folders):
.index.ready
mbox
tableofcontents
content_index
It was clear that mbox, tableofcontents, and content_index were left over from a previous version of mail - they hadn't been accessed since I upgraded.
Note that I didn't delete the whatever.mbox folders (just the plain mbox file inside)!
-- Deleted (in Terminal) the .Spotlight-V100 in the root directory
-- Restarted my Mac. The indexing started itself. Since I had it set up to index only Mail, it took about 3-ish hours to finish (I have 100s of 1000s of emails in thousands of folders).
After the indexing finished, all the test searches that I tried worked. From now on I will always be suspicious if search doesn't find anything!
Also, I just checked - using the Spotlight field on the menu bar now works better too. When the Mail search problem showed up, I tried using the Spotlight field and the Spotlight window, but they would just flash up a few items, remove the list, over and over, sometimes with the beachball, then finally settle to an empty list. Now the Spotlight field seems to work.
I infer that the Spotlight index gets corrupted, and that the Spotlight code doesn't notice that it's reading junk from the index...
BTW, about the same time that search quit working, some emails in my Inboxes got highlighted with a dark brown background color. Have no idea why. They aren't marked as Junk (the junk messages have the text in the usual lighter brown). But, when I select a message with the dark brown highlight, mark it as junk, then mark it as not junk, the dark brown highlight goes away. On some occasions, just quitting Mail and restarting makes the dark brown highlights go away - but not always. Sigh... at least it's not a show stopper, even if it is ugly!
Thanks again, Lucabo, for your post!
  Mac OS X (10.4.6)  

Similar Messages

  • How to solve Oracle SQL Developer connection problem ?

    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?

    user8860348 wrote:
    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
    password: enter_your_correct_password given at the time of oracle installation
    role: select sysdba if you would connect as sysdba else select normal for users other than sys
    hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
    to find the hostname open terminal/command prompt in oracle installed machine
    type ---> hostname
    type ---->ping hostname
    you can find the ipaddress of the server
    port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
    SID: DB1
    try it
    Good Luck

  • How to know when spotlight is indexing

    hi,
    in previous OS versions you could tell when spotlight is indexing by clicking the spotlight icon in the toolbar and the dropdown would tell you.  now in yosemite how can we tell when spotlight is indexing?  because i use mail.app a lot and search won't work properly until the indexing is done.  thanks!
    rc

    Same way.
    Re-index Spotlight: Spotlight: How to re-index folders or volumes - Apple Support
    If that doesn't work, force it with this command in Terminal:
    sudo mdutil -E /

  • How can I stop Spotlight from indexing external drives?

    I work in an environment where we plugin several different costumer harddrives all day long as part of our working process. Often only to extract one file from a given drive. Therefore its annoying that Spotlight automatically starts indexing these drives, because it slows down everthing, but also because our windows costumers suddenly see these weird mac files on their drives, that are invisible to the macuser. The Privacy setting is not of much use, as its impossible to add oru costumers drives to the list - we simply don't know the drive until we see it.
    How can spotlight stop indexing?

    The Privacy option is okay for private users, but at work we receive alot of harddrives from costumers and we simply cannot spend the extra time waiting for a drive to be indexed every time it is connected. That drive may never be connected again as it belongs to a costumer, and it is impossible for us to add drives to the Privacy pane, because we do not know they exist before we see them infront of us. The ption to disable all external drives from being indexed would be great. Or that the indexing can be stopped in the spotlight menu, or that the indexing will not start until 10 minutes after the drive has been mounted - and only if the drive is inactive.

  • How to solve the auto word break problem in Arabic language Flex project

    Hi, I'm using Flex SDK 3.5 to develop a game in Arabic. Now I have a problem with the auto word break on the TextArea Control.
    The output looks like this (Sorry I can't type arabic, so I use English instead)
    I don't know any A
    rabic text
    The expected outpit should be
    I don't know any
    Arabic text
    My settings of the textarea are fine in English version games. But just didn't work in Arabic. Any idea how to solve this problem? Thanks.

    Hi Rodger,
    Sorry to reopen this thread again. I was puzzled by the data format in Motion-DDK.
    From the Motion-DDK, if u32, i32 and f64 data are passed to and from the controller, a specific format must be followed as below:
    u32:
    u32 cmddata[x] = (WORD) (u32data ?16);
    cmddata[x + 1] = (u16) u32data;
    i32:
    i32 cmddata[x] = (WORD) (i32data ?16);
    cmddata[x + 1] = (i16) i32data;
    f64:
    f64—big endian order cmddata[x] = ((u16) (&f64data)) [3];
    cmddata[x + 1] = ((u16) (&f64data)) [2];
    cmddata[x + 2] = ((u16) (&f64data)) [1];
    cmddata[x + 3] = ((u16) (&f64data)) [0];
    f64—little endian order cmddata[x] = ((u16) (&f64data)) [0];
    cmddata[x + 1] = ((u16) (&f64data)) [1];
    cmddata[x + 2] = ((u16) (&f64data)) [2];
    cmddata[x + 3] = ((u16) (&f64data)) [3];
    My first question: is the "?" symbol means the >> (shift operator) or something else?
    The second question is: if "?" means ">>" in this list, all the u32 and i32 data are always transferred in big-endian order. Is it the only correct way to deliver the i32 and u32 data? Or I can pass the u32 and i32 either in little-order or big-order depending on my platform?
    The last one: could you provide a feasible C code on how to convert the f64 data to u16?
    I first followed the format in the list to convert the f64 data, but met with a lot of compiler errors in VC++. After checked with MSDN, it is said the convert process is double(f64)->long(i32)->unsigned short(u16). But the decimal part of double will be truncated during converting to long...
    So, could you help me with some very simple sample code on the convert process? 
    Thank you for your support!
    Rick
    MSP

  • How to solve the Cannot find oraInventory problem in R12 installation.

    I search many places to find this so, i decided to shared for hopl anyone else.
    The note Rw-10003 During Rapidwiz Upgrade Install [ID 1266385.1] tell how to solved, crating the oraInst.loc file, but it miss something important, where I have to put it in the oraInst.loc file ? Fortunately, i have accses to others DB where look. You have to cretate the file in the /etc directory. Follows this steps.
    1.- Go to the main directory where you gonna install the R12 app and create the follow directory
    oraInventory
    in my case was /u01/hab_r12/oraInventory
    2.- Go to /etc and create a text file with the name OraInst.loc and put this lines
    inventory_loc=/u01/hab_r12/oraInventory*
    inst_group=dba**
    *you must put the root directory of the installation
    ** the group who have the privilege in DB
    3.- Re run the rapidinstall.
    I hope this can help someone.
    Cheers.

    Hi;
    In addition to Hussein Sawwan great post, Please refer:
    R12 Insllation Fails With Error "Cannot Find Orainventory" [ID 1281649.1]
    How to Create a Clean oraInventory in Release 12 [ID 834894.1]
    How to find the location of GLOBAL Inventory and LOCAL inventory on R12.x ? Why Some Times, There are Issues With The oraInventory Registration During The Post Clone ? [ID 878717.1]
    Regard

  • How do I stop spotlight from indexing files?

    I only have 2GB of RAM and Indexing files really slows down my computer, so much that i can hardly operate the computer. Is there any way that i can stop Spotlight from indexing my files automatically or have it index every week instead of every day?

    It shouldn't be running so much that it slows down the computer. It will run for a while, initially, but after that it should index files on the fly as they are added. I suppose if you dumped a ton of files onto the hard drive, it would spend a while indexing them.
    You might try restarting the index as it might be corrupt. To do so, go to the Privacy tab in Spotlight. Add your hard drive to the list. Wait about 10 seconds, then remove your hard drive. Don't do that while you're working, though.

  • How I solved issues with Mail.app and Spotlight

    Even though my upgrade from Tiger 10.4.10 to Leopard was painless, the new OS X did have a few issues that had bothered me:
    *Mail.app: * Every now and then, the app would behave like on its first startup, saying it needs to import my mail before I can work with it. What's more, at times I've had the phenomen that messages would appear empty on the preview pane and sometimes even when being opened.
    *Spotlight: * Even though I let the indexing finish on the first day of working under Leopard, every now and then it seemed to start all over. First, I thought it's the NAS being indexed but it just went on to restart indexing each time I thought I had let it finish.
    *Free disk space: * I tried to bring the usage of my homedirectory down so I would have enough free disk space to switch FileVault off and then back on so I could start using TimeMachine. But whatever I did, the free disk space just wouuldn't inrease - it just stayed the same (yes, I did let the system recover space on shutdown).
    The *free disk space* issue made me think there was a problem with my disk but repeated runs with the Disk Utility yielded nothing...not for about a month. Yesterday I got some warnings about 'damaged but not repaired' but according to an Apple doc those could be safely ignored.
    Somebody suggested to apply the combo update for 10.5.1 as that could solve some issues so I went ahead - after all, the update had already been applied earlier so just re-installing wouldn't hurt much, right?
    Wrong.
    The install of the combo update went smoothly, FileVault recovered some space on shutdown but upon restart I couldn't log in anymore: My homedirectory was damaged. The friendly OS X Leopard offered to repair it but soon later reported back that it failed doing so.
    Now, to cut a long story short - deleting the affected user's account and using a different user on the same machine (without FileVault) solved any issues I've had. Mail now works like a charm (despite 40k+ messages with attachments), spotlight doesn't restart all it's indexing and disk space is shown correctly again. Also the odd corrupt file copy I had experienced occasionally (especially with large files) was gone.
    My advise to anyone who didn't de-activate FileVault under Tiger to make the switch to Leopard: Even if you think it worked, switch it off and let Leopard set it up again. You may think things went right...but the above shows that there may be issues with it that you may blame other apps for...but they're probably not guilty at all.
    I don't think the combo update actually caused FileVault to turn corrupt, it was just what broke the camel's neck. While it's no fun to lose your homedirectory, I'm glad the underlying issue finally came to light.

    Thanks to this thread, it's been solved.
    https://bbs.archlinux.org/viewtopic.php?id=97653

  • How to solve iPhone OS 3.1 problems by downgrading back to 3.0.1

    I had problems with my battery dying after 15 minutes of use, the phone not waking up from sleep mode, and cell signal problems after downloading OS 3.1 and iTunes 9. The problem couldn't be solved immediately because iTunes 9 deletes your previous iPhone backups on Macs. I successfully restored my phone to the 3.0.1 software (easily) after reading through a bunch of long processes on the Internet and trying a simpler way. Here are the steps:
    1. Find your backup files on your Mac, it should be a cube icon with a name similar to "iPhone1,13.0.1_7A400Restore.ipsw" The numbers after "iPhone1,1_" tell which firmware version it is. My files were in the trash, If you deleted your trash since downloading iTunes 9 it may not be there anymore. You can always do a search in Spotlight to find the backups, in case it's in a different location.
    2. If you don't have this backup on your hard drive because of deleting it, I read that you can download it from the Internet. However, I don't know how safe this part is. Google the term "downgrade iPhone 3.1 to 3.0" to find a site that has the 3.0 firmware.
    3. Once you find or obtain the restore file/firmware, remember it's location or simply drag it to the Desktop to find it quicker. Open iTunes and connect your iPhone. THE MOST IMPORTANT PART is to hold Option (Alt) and Click the Restore button (Without Option-Clicking the Restore button, you will only be able to restore to the 3.1 firmware). This brings up a screen to find the file on your hard drive. Click the backup/firmware from the location that you had to remember or from the Desktop, and your iPhone will restore back to firmware 3.0.1 and not cause your phone to be useless anymore
    Hope this helps.

    I forgot to add that the new update 3.1.2 did not help with any of the problems that 3.1.1 did.

  • Mail indexing problem

    Hello,
    I have a problem with indexing my email. I have 7 accounts. every working perfect except one.
    I have every day about 20-30 mails. inbox and outbox. but suddenly (with out any restart of computer) it start to show only last message and one month ago.
    I deleted all index files (envelope) in ~/Library/Mail/V2 but nothing happened. Mail program did reindexing but still one month old.
    so firstly when was indexing it was like 13 000 mails. after i retried delete envelope files from indexing. and it shows 6000 mail. Free space on hart didn't appear or disappear. it the same like yesterday. (so hope mails are still on hard drive) But how to restore them?

    Try rebuilding the mailbox of the account you are having problems with. This can take awhile if you have a lot of mail.
    Rebuild mailbox

  • How do you stop Spotlight from indexing other OSX partition?

    I have my harddrive partioned, on one partition is osx 10.8, on the other is osx 10.9. I'd like to stop Spotlight on 10.8 from indexing 10.9's partition. If 10.8 is booted and I set Spotlight to not index 10.9's "macintosh HD"  via systemprefs/spotlight it has the unfortunate consequence of carring over, so when I boot into my 10.9 partition Spotlight won't be indexing - which is not what I want.
    Anyone able to shed some light on this one?

    Unfortunately, when you add a drive in the Privacy field, a small file is created on that drive which tells Spotlight not to index it. So both 10.8 and 10.9 see that file and won't index, no matter which OS you did the Privacy change from. Also then, of course, if you remove the drive from Privacy, both will index it.
    At least that's how it's worked for me. I haven't been able to get the same drive to behave differently for multiple startup partitions.

  • How to solve the Embed Color Profile problem...

    Hi Everyone,
    This vijay from Chennai. I have one doubt for rectify the Embed color Profile problem, that's is how can i judges whether the file had Embed Color Profile or not. anyone solve this problem.
    Thanks in Advance.
    -yajiv

    I used another profiles name, because I dont have the old one installed anymore, Youll have to be exact about the letters though.
    And from a prepress-standpoint Id like to point out that removing the profile as opposed to »Convert to Profile« seems a peculiar practice, though of course Your reasons for doing so may be valid indeed.
    You could try:
    var myDocument = app.activeDocument;
    if (myDocument.colorProfileName == "U.S. Web Coated (SWOP) v2") {
    // =======================================================
    var idassignProfile = stringIDToTypeID( "assignProfile" );
    var desc2 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref1 = new ActionReference();
    var idDcmn = charIDToTypeID( "Dcmn" );
    var idOrdn = charIDToTypeID( "Ordn" );
    var idTrgt = charIDToTypeID( "Trgt" );
    ref1.putEnumerated( idDcmn, idOrdn, idTrgt );
    desc2.putReference( idnull, ref1 );
    var idmanage = stringIDToTypeID( "manage" );
    desc2.putBoolean( idmanage, false );
    executeAction( idassignProfile, desc2, DialogModes.NO );
    else {

  • Spotlight Content indexing Problem

    Spotlight will not index content. It does index the names of files, but when I do a content search, it merely performs the names search. I tried the privacy/index command but that does not work. Anyone else having these problems. BTW, this started after installing Leopard. Thanks!

    Spotlight will not index content. It does index the names of files, but when I do a content search, it merely performs the names search. I tried the privacy/index command but that does not work. Anyone else having these problems. BTW, this started after installing Leopard. Thanks!

  • How to Solve Wi-Fi or Bluetooth Problems on your iOS Device?

    Do you have any problem with Wi-Fi and Bluetooth on your iOS Device? Please read these steps carefully and follow it!
    These Steps that I am sharing are TESTED by 10 iOS users what had problems with Wi-Fi or Bluetooth or both and was successful
    - Please note that Resetting/Factory Resetting/Hard Resetting or Recovering or un-jailbreaking your device will not work at all -
    To Solve Wi-Fi Problems Follow these steps (But before doing anything please restart your iOS Device and see if you still have network problems):
    Step 1 Go to Settings > General > Reset > Rest Network Settings and Reset your Network Settings and wait until your device re-boots
    Step 2 Go to Settings > Wi-Fi and see if you can connect to your Wi-Fi If you can't then go to next step
    Step 3 Go to Settings > Airplane Mode and turn on Airplane Mode and shut down your device. Go to your network provider and ask to restart the Modem or do it your self (Just unplug power cord and plug it back in) You have to wait 30 seconds.
    Step 4 Boot your device and go to Settings > Airplane Mode and this time turn if off and go to Wi-Fi and see if you can connect it again. If you can't then go to next step - Note: If you are going on to Step 5 it means that your device is experiencing Critical System Error that cannot be fixed easily -
    Step 5 Go your laptop/desktop and open your browser then type this on the webpage search bar 192.168.0.1 and click enter. If it doesn't work then go and ask your network provider for an address for your modem/internet settings.
    Step 6 Change your modem/internet settings to no password and make it "available/visible for everyone" and go to your iOS device and got to Settings > Wi-Fi and see if it works this time. If it still doesn't work go to next step - Note: If you are going on to the next step it means you are experiencing Critical System Error that had been cause by glitch/bug -
    Step 7 Connect your iOS Device to iTunes on your laptop/desktop and update your iOS version -Note: this process if basically re-installing your operating system- If you can't update if because the new update if not available you have to wait for next update unfortunately
    Step 8 After updating your iOS Device Go to Settings > Wi-Fi and see if it connects to your Wi-Fi. It normally fixes the problem but if it still doesn't, it means your device is experiencing hardware problem. Visit your local Apple Retail Store or reseller and ask them for complimentary/device-exchange/warranty help or go to Apple website for online support: www.apple.com/support/ for better support.
    To Solve Bluetooth Problem all you need to do is resetting (not factory resetting) your device and see if it works, if it doesn't you will need to update your iOS or Google for more technical troubleshooting because it could be your pairing device's problem. Visit www.apple.com/support/ for better support.
    If anyone of you had these experiences and was successful troubleshooting please do share your experience. I will also be avaliable to answer your questions if you have one! Please do share your openions about my post if you have one

    If you don't mind, would you do that for me please?

  • How to solve (partially) the install FH problem

    Many thanks to Mark/maeric for coming up with the solution.
    The original install was not placing a Macromedia folder in the Application Support folder. So he had me manually make a Macromedia folder in MacHD > Library > Application Support AND in User > Library > Application Support. It appears it needs both. Put the MXa Registratin file in there after installing (but before running) FH and it works. At last!
    However, a similar, less earth-shaking problem has arisen. I can't seem to install the updater. No matter what I do, I get "Cannot complete > File not found: Marcormedia Freehand."
    Another user, Claire in the UK, has had the same initial problem. So the major issue at least appears to be solved. And FH MXa documents open in FH MX 11.0.
    Best to all,
    Ernie

    Glad to help out Ernie.  On to the second question about the updater; I realized that if you only have FHMX 11.0 installed you can't jump to 11.02 without first having updated to 11.01. But to get that, you have to go through Customer Service (which is a total pain.) The easy solution is to download the FHMX trial version which is FH 11.0.2. This will bypass the 11.01 updater. Read this thread and Judy's answer: http://forums.adobe.com/thread/1035987?tstart=0)
    more: http://www.adobe.com/support/freehand/updaters.html

Maybe you are looking for