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

Similar Messages

  • 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

  • New mail message, tab to body doesn't work

    I have an Automator app. on my desktop that jsut creates a new mail message. It does not pre-fill any information, just a new, blank mail message.
    The problem is, I can type the recipients address, tab to the Subject and type that. Then, when I try to tab to the message area or body, it just highlights the Subject and will not tab forward.
    Any ideas?

    The bug affects all applications that interact with Mail by way of Apple Events. Such apps as iPhoto, Automator, and AppleScript all use Apple Events to compose the buggy message. Until Mail's AE behavior is fixed, the only things I can offer are workarounds.
    The previous script merely emulates user input instead of sending Apple Events. This is a bit of a kludge, and on second read a more precise solution would have been to invoke a blank mailto link:
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">open location "mailto:"</pre>A workaround for your iPhoto-to-Mail bridge would be very difficult to conjure (if it's even possible) and unreliable at best. :\

  • Apple Mail Search and Spotlight do not work for locating email messages after upgrading to Lion 10.8.3.

    Apple Mail Search and Spotlight do not work for locating email messages after upgrading to Lion 10.8.3 on my 27" iMac.
    When searching in Apple Mail, sometimes a get a few results (with many missing), and sometimes no results at all.
    I had absolutely no problems before with Snow Loepard.
    I have reindexed mail and my startup drive. I have followed discussions regarding this matter and tried everything - a waste of time.
    This is VERY serious for me - I have many thousands of messages that I archive and need to reference for work and clients, and now I cannot find them.

    I found out that I needed a $100 mini displayport to dual-link dvi adapter to make my $30" cinema display work with my macbook pro
    http://store.apple.com/us/product/MB571Z/A/mini-displayport-to-dual-link-dvi-ada pter?fnode=51
    When I found out that solved the problem, I took it back because that was too expensive for a stupid adapter, and it still didn't work perfectly.

  • Mail doesn't show new messages

    Mail sometimes doesn't show new messages for an IMAP account. The badge in the dock says that there is a new mail but it doesn't show up in the inbox. I'm sure that I didn't just miss it, because, smart mailboxes will not find that new mail as well. When I restart mail, the mail finally shows up in the inbox as well.
    Anybody else seeing this and what can I do to resolve that issue?
    Thanks!

    I'll bring everyone up to speed on what's been happening with my family accounts. I first suspected Safari, because it seemed to be a local problem, but then, inexplicably, all mobileme mail accounts tied to that family account, which included 4 subaccounts and 1 mail-only account, not only did not work in mail.app, but also failed in other email clients I tested, including clients on Linux. Also, the webmail version was not working well, either.
    So, if your problem is isolated to a single computer and just to mail.app, or just with a particular network, then I think the local troubleshooting steps are the way to go.
    But, if your problem extends to other platforms, clients, and webmail, then it is likely an issue the engineers at Apple will have to figure out. I found the online chat service for mobileme users to be very helpful in checking through all the 'usual suspects' and after we had pretty much ruled out any of the usual culprits, it was escalated to the engineers, who are working on it now.
    They were able to release all the email that had been piling up, but there are still some glitches they are trying to iron out. As an aside, I have been personally managing various mail servers for a dozen years, and am well aware of the difficulties in diagnosing email problems, and it was stumping me, and I have intimate knowledge of Exim and Exchange and various email modules used with mx services.
    +While this 'should never happen', it's unrealistic for users to expect it never will. Of all the services provided on the Internet, email, is arguably the most complex service and it's become much more complex in the past few years. In my work, typically 94% of all email traffic hitting the server is filtered out as spam. So, the 6% that is allowed through is the stuff most of us see and are spending time and resources filtering out the 20-40% additional unwanted spam that the host let through because if they tightened it down any further the risk of false positives would become too great. I spend way more time on the mail service aspects of my job than the web services, and mail problems occupy at least 80% of my troubleshooting logs. So, while email seems more 'simple' than the exotic and bandwidth intensive services like video chat, voip, and web2 transactions, compared to the amount of wasted bandwidth and cpu cycles filtering packets, I think email is the number one problem service for most host providers. We tried to depend upon it for mission-critical communications, and it was never designed for that initially, and the spammers are making certain it won't achieve that status at least in the near future. If anything, email is your least dependable Internet service. Combine this with the growing array of user configurations, email clients, forwarding/retrieving/syncing scenarios, and user experience, and you may find yourself uttering a little prayer now and then for the poor email administrators and support personnel.+
    [end of sermon - thanx for letting me get that off my chest; I feel better now! I'll feel a lot better when my email is flowing smoothly, but that's out of my hands for now.]

  • "Filter Mail Messages" in Automator doesn't filter out mails of today

    Is it me, or does the Automator action "Filter Mail Messages" doesn't have an option to find messages that have not been sent or received today. It seems that there is no option to get rid of the messages sent or received today while filtering.
    I mean there is no option for "Date received" -> "Not today"; and I seem to can not find any easy workaround for this.
    i.e. What I'm trying to do is, filter the messages that are in a certain mailbox and are not sent or received in the last 7 days. However, the mails of today always show up.
    I hope somebody had found a solution to this, it appears to be an obvious problem with the Automator, trying to work with the Mail App and many have probably run into this before.
    Thanks!

    OK.... Did a bit more debugging... updated script
    property secondsIn21Days : 1814400
    on run {input, parameters}
      try
      set dateToday to current date
      tell application "Mail"
      set archiveCount to 0
      set theArchiveMailboxName to "CurrentArchive"
      if (mailbox theArchiveMailboxName exists) = false then
      make new mailbox with properties {name:theArchiveMailboxName}
      end if
      repeat with aMessage in input
      -- set theMessages to input
      -- repeat with aMessage in theMessages
      set messageRDate to date received of aMessage
      set messageSDate to date sent of aMessage
      set messageSubject to subject of aMessage
      set messageID to id of aMessage
      set timeRDifference to 0
      set timeSDifference to 0
      -- if messageRDate > 0 then
      set timeRDifference to dateToday - messageRDate
      -- end if
      -- if messageSDate > 0 then
      set timeSDifference to dateToday - messageSDate
      -- end if
      display dialog messageSubject & " " & messageID & " " & timeRDifference & " " & timeSDifference
      if timeRDifference > secondsIn21Days then
      display dialog "Move " & messageID & " Received" & messageRDate & " " & messageSDate
      move aMessage to mailbox theArchiveMailboxName
      set archiveCount to archiveCount + 1
      else if timeSDifference > secondsIn21Days then
      display dialog "Move " & messageID & " Sent" & messageRDate & " " & messageSDate
      move aMessage to mailbox theArchiveMailboxName
      set archiveCount to archiveCount + 1
      end if
      end repeat
      end tell
      display notification "emails archived = " & archiveCount with title "Mail Archive"
      -- return -- Successful completion of handler.
      on error errStr number errorNumber
      -- If our own error number, warn about bad data.
      -- if the errorNumber is equal to 750 then
      -- display dialog "All items in the list must be integers."
      -- return integerSum -- Return the default value (0).
      -- else
      -- An unknown error occurred. Resignal, so the caller
      -- can handle it, or AppleScript can display the number.
      error errStr number errorNumber
      display notification "emails archived = " & archiveCount with title "Mail Archive"
      -- end if
      end try
    end run

  • I changed my gmail password after suspicious activity was detected.  It works fine on my computer but my iphone 5 doesn't recognize my new password ("cannot get mail" message).  I've tried changing my phone settings to the new password, but no good.

    I changed my gmail password after suspicious activity was detected.  It works fine on my computer but my iphone 5 doesn't recognize my new password ("cannot get mail" message).  I've tried changing my phone settings to the new password, but no good.

    Hello there dinadinadina,
    It sounds like you have modified the password settings for your Gmail account after changing the password. Thats where I would have started too. Next I would restart the device and test it one more time, and then remove and add the account again in Settings:
    Get help with Mail on iPhone, iPad, and iPod touch
    Restart your iOS device.
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Tap the affected email account.
    Tap Delete Account.
    Add your account again.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Alert message "Unable to locate Mail spool file".

    I'm using Ubuntu 14.04 OS. Mozilla Thunderbird is being used for email client. Whenever I'm opening Thunderbird, I'm receiving Alert message reading "Unable to locate Mail spool file". What is the remedy?

    Thanks Matt for your cooperation. It could be SOLVED.

  • Mail message "Save as..." doesn't save attachments when "include attachments" is ticked

    Mail message "Save As..." doesn't save attachments when "Include Attachments" is ticked for "Rich Text Format"
    Messages are supposed to be saved as rtfx files (actually folders that include the attchments in seperate files)
    It worked fine in 10.6
    How do I submit a bug report?  I have sent several request through the "Provide Mail Feedback" link since 10.7 - no joy.
    Thanks

    You can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

  • Changing default Mail message storage location

    Hello,
    I'd like to start storing my mail messages by default on a wireless enabled HD that I just recently purchased. Is this even possible? I have a desktop machine as well as a laptop that I use around the house. Ideally, I'd like to have identical mail setups on each computer, that way I'm never scrounging around for sent messages or having to switch back and forth to remember which computer I sent a reply from.
    What I'm hoping is that if both mail programs are accessing the same message storage destination, then the messages will be the same on both computers. Can this be achieved?
    Thank you for your help!

    This is what IMAP is for
    Theoretically, I suppose you could do it by creating a directory on the external harddrive and then symlink ~/Library/Mail to it on each machine. Might be a little slow over the network though.

  • Airport extreme will only get or send e-mail messages, or allow Safari to function for about 5 minutes.  After that it doesn't respond even though the green light is on and diagnostics says there is nothing wrong. Have to unplug again to get a response.

    For the past 2 days Airport Extreme works for about 5 minutes and then will not receive or send e-mail messages, or let Safari work.  The only way I can send or receive is to unplug Airport Extreme for a few seconds, reconnect and then work frantically for 5 minutes before it does the same thing.  The green light stays on and the diagnostics tells me nothing is wrong even though no mail is moving.
    Any ideas?
    Thanks,
    Greg
    (I plugged my laptop directly into the modem in order to send this message.)

    For the past 2 days Airport Extreme works for about 5 minutes and then will not receive or send e-mail messages, or let Safari work.  The only way I can send or receive is to unplug Airport Extreme for a few seconds, reconnect and then work frantically for 5 minutes before it does the same thing.  The green light stays on and the diagnostics tells me nothing is wrong even though no mail is moving.
    Any ideas?
    Thanks,
    Greg
    (I plugged my laptop directly into the modem in order to send this message.)

  • Can't figure out how to edit a Draft e-mail message--simple, right? Wrong.

    OK, sorry if this is too basic and belongs in the Getting Started folder, but I couldn't find the problem here or in that location.
    I thought I could figure out how to edit a message in the Drafts folder. I tried; it didn't work. I looked online, found a tutorial, which showed that I was indeed trying to do the right thing the right way. So why doesn't it work????
    Here's what happens.
    I start an e-mail message, click Cancel, then save as a Draft. That works fine. But then...
    From the Home screen, I tap Mail.
    On the Mailboxes screen, I tap Drafts (there's a number on the right -- 2 -- which disagrees with the number of messages actually seen -- 1 -- at the next step; I don't know if that's an important detail or not).
    I see the draft message I want to edit. I tap it.
    I tap Edit. According to the tutorial, the message is supposed to open up for me to edit further. But it doesn't. Instead...
    The two lines representing the message (Recipient and first few words) move a bit to the right, and the Edit button changes to Cancel.
    A dull red Delete button and a blue-gray Move button show up at the bottom. But the first line of the draft message, which has (accurately) shown up under the boldface "(No Recipient)" line, stays where it is -- showing as part of an entry in the list but not as something I can edit. I don't see the complete message, and I can't edit anything, even though I think I have just entered an Edit mode.
    I click those two lines, and a red checkmark appears on the left, and the dull buttons at the bottom become brighter red and brighter blue-gray.
    Tapping, double-tapping, tap-and-holding... all just toggle that checkmark on and off.
    THIS MUST BE REALLY SIMPLE... HOW DO I EDIT THE TEXT OF THE DRAFT MESSAGE????

    Zero replies??? Wow, I guess this is a really uncommon problem.
    Well, the Genius Bar fixed the problem. They confirmed that it WAS real, and they couldn't figure out how it had gotten that way. There must have been some internal list in an inconsistent state... or something.
    The fix was to deactivate my MobileMe account on my iPhone -- just wipe it out. Then they re-activated it. Everything re-synched and the problem was gone.

  • How do I embed YouTube or Vimeo video in an apple mail message

    Is there an easy  way to embed YouTube or Vimeo video in an apple mail message?
    I've tried using command+i (same with share feature) on a YouTube page ... looks great except I get missing plugin error on video.
    I'm up to date on Flash plugin, running Safari 6, OS X 10.8. No old Flash files in the internet library.
    Any help is appreciated!

    There's an HTML validator built in to the editor and it will, by default, throw out all but the simplest HTML tags.
    The Apple document, Mac OS  X Server, Wiki Server Administration V 10.6 explains all the gruesome details. But here's the solution that I use:
    Change to the Wiki Server's directory by using
    cd /Library/Application\ Support/Apple/WikiServer
    If it doesn't exist, create a file called whitelist.plist:
    sudo touch whitelist.plist
    The file will be owned by root and all members of the _teamserver group. The latter is required for the Wiki service to have access.
    Then edit the file with any appropriate editor -- I like vi:
    sudo vi whitelist.plist
    The file needs to have very specific formatting. This one should get your YouTube embedded HTML working:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>protocols</key>
    <array>
    <string>scp</string>
    </array>
    <key>styles</key>
    <array>
    <string>font-size</string>
    </array>
    <key>tags</key>
    <dict>
    <key>object</key>
    <array>
    <string>width</string>
    <string>height</string>
    </array>
    <key>param</key>
    <array>
    <string>name</string>
    <string>value</string>
    </array>
    <key>embed</key>
    <array>
    <string>src</string>
    <string>type</string>
    <string>width</string>
    <string>height</string>
    </array>
    <key>script</key>
    <array>
    <string></string>
    </array>
    <key>hr</key>
    <array>
    <string></string>
    </array>
    </dict>
    </dict>
    </plist>
    After making changes or additions, save and close the whitelist.plist file then restart the Web service using the Server Admin application.
    If you aren't at all familiar with vi, then you may want to instead create a text file on your desktop, put the content into it, then move it to the right location and change its ownership and permissions.
    Hope this helps.

  • Why I cannot assess deleted Apple mail messages in time machine after installing mountain lion from snow leopard.

    Ever since I installed Mountain Lion from Snow Leopard, I cannot retrieve my deleted Apple mail messages from Time Machine.  I could do it in the past using Snow Leopard.  The effective date for the the non-retrival of deleted messages is the date I installed Mountain Lion from Snow Leopard.  Any thoughts?

    Keith Montreal wrote:
    It was origionally a local folder for things like receipts from the Apple Store, etc
    I'm still not sure what you mean . . . is it listed in the "On My Mac" section in Mail's sidebar, like these?
    Mountain Lion appears to have given it an icon very much like an Archive box and put the "on My Mac" folder within that "Box" on both the back ups and the new Mail program - in fact it did it 6 times, which was the origional problem.
    Can you post a screenshot?
    I could restore inbox messages although they came in as a new mail box called Time Machine rather than into their origional mailboxes (there are 7 different addresses)
    Yes, that's how Time Machine restores Mail messages, so it doesn't erase the current contents of an existing mailbox.  You can then move them into the desired location.

  • Mail messages open in new window

    Recently when a notification comes in for Mail, if I click on the banner notification or the notication in Notification Centre, the new mail message opens in a new window instead of just going to the mail app and showing me the message there.
    As far as I am aware I have not changed any settings. Could anyone help me change this back please?
    Many thanks.

    Don't forget to turn off banner notification for Mail in System Preferences!
    http://www.noproblemmac.com/blog/2014/02/27/herald-smart-mail-notification-softw are-on-the-mac/
    Dajanis wrote:
    I've tried Herald (http://erikhinterbichler.com/apps/herald/) but it doesn't work at all for me even if the latest version is supposed to work with Mac OS X 10.9.2

Maybe you are looking for

  • How can i reset my IPad password if i am locked out

    My Ipad is disbled and i dont have the computer that i last synced it on how can i restore my IPad or change the password so i can get into it?

  • HT1414 My iphone 4s is stuck in the CONNECT TO ITUNES screen (appears everytime i turn it on or connect it to a power source)

    It all started when i tried to update to iOs 6 but then, my battery drained. I charged it (va power source) and waited for the red battery bar icon to appear. However, it did not appear. Instead a CONNECT TO THE ITUNES screen appeared even when i'm n

  • HTTP HEADER in IIS 5.0

    Hi All, I am not getting LOGON USER ID ( who has logged into the AM 7.1 ) after redirecting to the Application, This is Happened in Windows 2000 IIS 5.0 for an ASP application, I m getting the same when I m trying it in WINDOWs2003 IIS 6.0, I dont kn

  • 128 bit password confusion

    Hi! I have created a network with my airport express and I have entered an ASCII (8 letters - numbers) password with WEP 128 encryption. When I access the setting of my network I can see a long string of dots in the place of the password. I guess thi

  • Problems importing .mov file

    I am all of a sudden having problems importing .mov files from my camera in iPhoto '08. Can't get them to import in Image Capture either...On the import preview screen, all that comes up are empty "boxes". If I highlight one of the boxes, it shows th