Lion Mail Search Stopped Working

The search in my Lion Mail doesn't work at all. When you enter some text you get nothing. This is on my Mac Pro. On my Macbook Pro it works. I even deleted all the mail and let it reimport. I even reindexed spotlight. Next step is to remove all the accounts and start over. I stopped using Apple Mail because of this before and chose Thunderbird which works perfect, but Lion Mail came out so I thought to give it a try and it still doesn't work. I have to be able to search.

Brilliant, works every time!
Actually, you were the one who found the solution by trying the following statement:
    set CS_Messages to every message that subject contains "Daily Summary"
Have you any idea why my original script stopped working, just like to know to stop this happening again.
Since the original script has always worked flawlessly on my computer under OS X 10.8.1, the only thing I can think of would be another application interfering with Mail or AppleScript in your system.
By the way, the following version of the script might be somewhat faster when you have a huge number of messages in your mailbox:
set theContents to {}
set theContentsRef to a reference to theContents
tell application "Mail"
    tell mailbox "CS Notepad"
        tell mailbox "Test"
            set CS_Messages to every message that subject contains "Daily Summary"
            repeat with thisMessage in CS_Messages
                copy content of thisMessage to the end of theContentsRef
            end repeat
        end tell
    end tell
end tell
theContents
See the AppleScript Language Guide, Class Reference, list (p. 110 in the PDF version) : “For large lists, it is more efficient to use the a reference to operator when inserting a large number of items into a list, rather than to access the list directly.”
Message was edited by: Pierre L.

Similar Messages

  • Mountain Lion Mail Searching not working (entire search)

    Hello,
    I already searched the web and the topics in this forum, but found no help.
    Since my update from 10.7 to 10.8 (with a clean install and a transition of my user data) the search 'Entire Message' oder 'any' does not work anymore. It shows no results.
    This is very strange since Spotlight is still able to find content inside Mail messages.
    There are some posts for similiar questions suggesting to rebuild either the whole spotlight index or just rebuild the mail index.
    Others suggest to rebuild the mail database by either deleting the files inside the folder of the library or use the menu command in Mail.
    Others suggest to check the rights of the mail folder and its content inside the user's library folder.
    I tried all of this. Nothing helped yet.
    Thanks for help
    carl

    I really tried everything but nothing helped.
    But finally I solved the problem.
    I made a timemachine backup (just for safety reasons).
    Then I installed Mountain Lion again over the existing installation.
    (I used a USB Stick with Mountain Lion to do that.)
    Now everything works great.

  • Mail app stopped working after upgrade to Mavericks

    Dear All,
    I have updated from Mountain Lion (Macbook Pro 3,1, 256SSD) to Mavericks, and mail app stopped working.
    That means - when I click the icon - the app does not work.
    I can see that it downloads mail - as when I click it I receive notifcation that it has downloaded some mail, however I cannot open window. Sometimes I manage to open it, but it is totally unresponsive - I cannot change or click anything in it.
    I have tried repairing disk permissions but without any success.
    Moreover if I run mail app and try to click "new message" from the top bar, the window that appears is somewhat mixed with my wallpaper backround (I can see fragments of it).
    Please help me, as I had there a few gigs of precious mails that I don't want to lose...
    Thank you in advance!
    Olek

    Do a backup.
    Take notes of all account information or take screen shots. You may need to set the accounts up again. Quit Mail.
    Copy the line below.
    ~/Library/Containers/com.apple.mail
    Select Go/Go To Folder from the Finder menu bar. Paste the line into the window. You won’t see it.
    Move the folder com.apple.mail to your desktop. You must move the entire folder, not just the contents.
    Relaunch Mail and test. If the problem is solved, recreate any required Mail settings and import any emails you want to save from the folder on the desktop. If the problem remains, return the folder to where you got it replacing the one that is there. 
    Information learned from Linc Davis.
    If you prefer to make your user library permanently visible, use the Terminal command found below.
    Show User Library Directory in Mac OS X 10.7 Lion & 10.8 Mountain Lion
    You might want to bookmark the command. I had to use it again after every update. I have also been informed that if you drag the user library to Finder it will remain visible.

  • Mail search not working properly

    Just upgraded to ML and the search function in mail just isn't working properly, I didn't think the Lion mail search was great but this one seems 10 times worse. If I search for words contained within a message, the results only show messages from the last couple of months even though I know there's dozens of messages containing the same word from the last couple years.
    I tried repairing permissions and rebooting. Still same issue.
    If I manually open an old message, and then perform a search, that particualar message will get included in the results, but I can't open thousands of emails just for the search to index them.

    You should try rebuilding your Spotlight index, as that's what Mail uses.
    Go to Spotlight preferences, and drag your boot drive (probably called "Macintosh HD") into the privacy pane.  Say OK to the warning.  Then after about 10 seconds, remove it.  The whole drive will be re-indexed (this will take a couple hours) and then search should work again.

  • Mail search not working; please help

    For some reason the search function in Mail has stopped working. If I click on the Sent folder, tons of emails come up, but when I search, it always comes back blank, when they are definitely there?
    Dosn't matter if I search for something I sent 10 minutes ago, yesterday or last week, nothing ever comes up. I have to list by name and look alphabetically which takes ages.
    Any ideas?

    Not that it's much help, Nigel, but I'm having the same problem. No matter what I search for, I get no result. I CAN find the email in Spotlight, however. Can you? If not, you can rebuild your Spotlight database, and that may fix your problem. See this article ... http://www.macobserver.com/tip/2006/07/21.1.shtml

  • Spotlight Search stopped working on my 4s

    Spotlight Search stopped working on my iPhone 4s.  Apple replaced my 4s 2 days ago and now spotlight search has stopped working on the 2nd 4s.  The Apple techs are stumped, any ideas?

    Friends,
    finally I found someone having the same problems
    I have an iPhone 4S 32 GB (germany, T-Mobile).
    I have all my mails and contacts via my work MS Exchange Server.
    My first iPhone 4S stopped searching after a while - it only shows 1 out of 10 search attempts.
    I walked to the Apple Store and they gave me a new one.
    Also the second one stopped doing any search 1 or two days later.
    So, disactiveted the search in my mails, my contact etc..
    ...but it doesn´t bring ANYTHING on the screen while typing.
    Today, I´ve been to the Apple Store again and the guy just sent me home - they can´t do anything
    Guys, this *****. I managed to use the iPhone at work instead of my Blackberry and now all other colleagues are buying iPhones, but if this is not going to work I´ll have a big problem.
    Any ideas here? What can I do?
    Thanks folks.

  • My Mail has stopped working..

    All of a sudden my Mail has stopped working...I cannot send or receive mail and one particular email has gone into the 'recovered message' folder on my mac at least 80 times..I am using a Macbook Pro.  My mail is working fine on my iphone so I know it is not the settings.  Any help is greatly appreciated

    Solution may be found if you search in the "More Like This" section over in the right column. 

  • Mail search not working + Spotlight keeps indexing

    I have an old problem that has resurfaced after creating a new user on my Mac. Mail search brings no results and Spotlight is constantly indexing - day in, day out. It never seems to get there. I tried turning my hard drive to private in Spotlight settings and then taking it out. Previously Spotlight seemed to get bogged down with external drives now it's stuck indexing my Mac.
    Any advice? Is there a way I get unstick this?

    I can't believe that Apple have STILL not sorted this out. I haven't created a new user (so it's nothing to do with that), but Mail.app won't find anything when searching "Entire Message" in the current Mailbox or in "All Mailboxes". This has been ongoing since Leopard was first released, and we are now up to 10.5.8 without this being fixed.
    Here are some of the reports:
    Topic : Spotlight does not search Mail messages
    http://discussions.apple.com/thread.jspa?threadID=1366101
    Topic : Search "Entire Message" returns "0 Found" in mailboxes
    http://discussions.apple.com/thread.jspa?threadID=1341832
    Topic : Spotlight died on me
    http://discussions.apple.com/thread.jspa?threadID=1226645
    Topic : I can't search through my inbox!
    http://discussions.apple.com/thread.jspa?threadID=1387827
    Topic : Leopard's Spotlight doesn't search Mail messages
    http://discussions.apple.com/thread.jspa?threadID=1219030
    Topic : Mail Search
    http://discussions.apple.com/thread.jspa?threadID=1347387
    Topic : Mail Won't Search
    http://discussions.apple.com/thread.jspa?threadID=1204827
    Topic : Search does not work
    http://discussions.apple.com/thread.jspa?threadID=1254966
    Topic : Mail search not working
    http://discussions.apple.com/thread.jspa?threadID=1289253
    Topic : Unable to Search Mailbox
    http://discussions.apple.com/thread.jspa?threadID=1232504
    Topic : Why is Search in Mail.app busted?
    http://discussions.apple.com/thread.jspa?threadID=1403758
    Topic : Mail Search comes up empty
    http://discussions.apple.com/thread.jspa?threadID=1378473
    Topic : Search "Entire Message" not working with Smart Mailboxes?
    http://discussions.apple.com/thread.jspa?messageID=6548355&#6548355
    Topic : Mail searches yield no results! Smart mailboxes also yield no results!
    http://discussions.apple.com/thread.jspa?threadID=1395508
    Topic : 10.5.2 Mail.app search still not working (Entire Message)
    http://discussions.apple.com/thread.jspa?threadID=1389466

  • Search stopped working in AIR

    Hello,
    It's me again. Sorry, but I am still poking around with RH 8 and AIR and trying to learn everything. I just inserted a second pdf into my project and installed the AIR output. However, the search is no longer working (was working before this pdf was embedded). I read around in this forum and found the following thread (http://forums.adobe.com/message/2284312#2284312). It indicated that the problem was with an error in the person's pdf file. How in the world did they find this error? I'm not sure how to check a pdf to make sure it is okay. Is this the reason people think the search stopped working for me as well?
    Thanks again for the great help.

    Hi there
    Unfortunately the AIR output is something reasonably new to all of us. As a result, there really isn't a good base of knowledge out there with regards to it. So in one sense, you are somewhat navigating uncharted territory. Many of us have no clue what to suggest. When issues have emerged, largely it's been the Adobe RoboHelp Engineers that have provided the solutions.
    In your case, it might be that the PDF you were adding has issues. Or, it could be something as simple as the AIR output only allowing ONE PDF to be inserted. I would think that would be easy to sort. Try removing the PDF where search is working. Add the other and compile. Does search break or continue to work?
    If it breaks, likely it's got something to do with the PDF.
    If it continues to work, likely it's got something to do with AIR not liking multiple PDFs.
    If you don't mind, I'm going to move the posts that are AIR related into the AIRHelp forum category.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • After down loading the latest up dates, I am now getting a pop up that says can't get e mail server stopped working, how can I stop this pop u.

    After the latest ISO 8.3 down  load to my, I now keep getting a pop up saying can't gette mail server stopped working, I am still receiving e mail so I know it working, it's just annoying having to cancel this pop up, any ideas how to stop this pop up.

    Pull your mail plist from ~/Library/Preferences

  • MAIL has stopped working ever since I upgraded to OS10.4.7 ? Please help!

    Hi All,
    My mail has stopped working(Sending and Recieving both) the moment I upgraded to OS 10.4.7
    Someone at work had the same issue when they upgraded to 10.4.7 and after trying for a while when they went back to OS10.4.6 the mail started working again. I dont want to go back to OS 10.4.6
    Please help.
    Thanks and regards,
    Adnan Yousuf
    Karachi-Pakistan
    [email protected]
    MacBook Pro 17"   Mac OS X (10.4.7)   Mail version 2.1

    Hi Adnan,
    The Mac OS X 10.4.7 Update introduced connection issues as a result of (according to the documentation) "Mail now supports connecting to mail servers through a SOCKS proxy". If that's the problem, you must go to System Preferences > Network and disable the SOCKS Proxy in the network configuration used to connect to the Internet, if it's enabled.

  • Yahoo mail suddenly stop working on iphone 4s

    My yahoo mail suddenly stop working on my Iphone 4s, and it is not working with Icloud either. The inbox is completley empty. Please help

    when you contacted Yahoo, what did they say?

  • TS1307 Why does send mail just stop working and how do you fix it?

    Using MacBook Pro bought last Chrismas and its mail client 5.2
    In the last 2 weeks send mail has stopped working for both my wife and myself (we have different logins / accounts / email address providers)
    We have tried different wifi / isp providers
    rebuilding the mail database
    accessing preferences and changing the default ports to specified port 25 and then back again
    taking the mail accounts off-line and then back on again
    deleting the accounts and then creating just one simple one (GMail)
    no change - send mail still does not go.
    What should we do now?
    What have we done wrong to cause this to fail in the first place?
    It was working fine, but now it is not.
    It is quite worryingand a fix would be greatly appreciated
    Thanks in advance
    Steve

    Hmmm, here's the opposite problem/fix...
    Gmail send but not receive...
    Here are two steps that have come in handy in related situations
    1) login to gmail on your computer or device via a web browser
    2) once logged in successfully, go to this URL to unlock:
    https://www.google.com/accounts/DisplayUnlockCaptch
    Is your gMail POP or IMAP?
    If IMAP...
    Is the Outgoing server smtp.gmail.com, port 25, SSL on, & Authentication = Password

  • Several days ago some of the links in my Apple Mail messages stopped working. Specifically, the links going to some variation of "response beacon" don't work. All I see is a blank screen. Does anyone have any idea how to fix this?

    Several days ago some of the links in my Apple Mail messages stopped working. Specifically, the links going to some variation of "response beacon" don't work. All I see is a blank screen. Does anyone have any idea how to fix this?

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • My Mac mail suddenly stopped working

    My Mac mail suddenly stopped working. The last email I have is from 4:40 or so this morning and I know that I have email because I can get it via a webmail program. It stopped working on my iPhone 4 too. Any ideas? It's IMAP if that means anything. Thanks.

    I'd recommend  also reposting in the Snow Leopard forum because Mail is part of SL If both sending and receiving is not working then contact your ISP and see if they have any known issues. If they don' t what I've found to work is removing the account in Mail and then recreating it.

Maybe you are looking for

  • Re-construct the key from byte[]

    Hi, I am constructing the key as follows: KeyGenerator keyGenerator = KeyGenerator.getInstance("Blowfish"); keyGenerator.init(128);      Key key = keyGenerator.generateKey(); I intend to use this key for Encryption/Decryption etc. Then, I am getting

  • How to make the words of the menu bar on the top of the screen look bigger?

    I am considering changing my 15.4'' to 17'', so I went to Apple store and took a look at the 17'' MBP, this machine is awesome and the display is set at 1900 X 1200, I realized that the words are smaller every where. While I know how to adjust the wo

  • IDVD quits with no warning

    When I try to create a new project in IDVD and click on the "Save" button it just quits with no message and the project is not created. I can only modify the latest project and cannot create a new one. It quit working recently. I tried reinstalling i

  • Displaying AVI Files through web server

    I am using Labview & Vision assistant to analyze an avi file The file is compressed and is 207KB and 5 secs long When using web publishing wizard and running the web server i cannot see the video footage on a remote machine over the internet, other d

  • Colour and transparent boolean

    Hello everyone,  I want to set the boolean indicator to colour and transparant. This mean when error occurs, boolean indicator will be changed to red and transparent, so this boolean will not cover the below floor map. I set all boolean onto the actu