Smart folders duplicating emails with IMAP

I have set up smart folders for one imap accounts but notice that I get duplicate emails showing in the smart folder because it is listing items from All Mail and Inbox. Is there any way of having the smart folder only show the inbox items?
Using Mail 3.5 on Leopard 10.5.5
Thanks

I have the same problem with Mail Smart Folders for Gmail IMAP.
I found the solution here:
http://discussions.apple.com/thread.jspa?messageID=8346170&#8346170
Basically you have exclude the All MAIL IMAP mailbox from the Smart Folder.
I am using MAIL 2.1.3 and OSX 10.4.11
Message was edited by: talkderby2me

Similar Messages

  • How to set up iPhone 5 iOS 6 email with IMAP over SSL on a custom port?

    Basically I have the same problem as this guy 5 years ago but the thread contained no useful answer. Maybe there are people out there who became smarter in the meantime? Please help me out how to get my iPhone read emails via IMAP over SSL on a custom port to the corporate server. The issue is that the iPhone only seems to work if you use the standard 993 port for IMAPS, not with a custom port as we have. I've installed the corporate root certificate in a profile, and it shows up as trusted and verified in the phone, so that should not be the issue. The mail app in the iPhone tries to connect, I can verify that from the server, but then does nothing, doesn't try to authenticate, doesn't log out, nothing is going on, and then drops the connection after 60 seconds. Repeats this every 5 minutes (as set to fetch e-mail every 5 minutes.)
    Original thread 5 years ago: https://discussions.apple.com/message/8104869#8104869

    Solved it by some (a lot) of fiddling.
    Turns out it's not a bug in the iPhone, it's a feature.
    Here's how to make it work.
    DOVECOT
    If the IMAPS port is anything other than 933 (the traditional IMAPS port) the iPhone's Mail App takes the "Use SSL" setting on the IMAP server as 'TLS', meaning it starts the communication in plain text and then issues (tries to issue) the STARTTLS command to switch the connection to encrypted. If, however, Dovecot is set up to start right away in encrypted mode, the two cannot talk to each other. For whatever reason neither the server nor the client realizes the connection is broken and only a timeout ends their misery.
    More explanation about SSL/TLS in the Dovecot wiki: http://wiki2.dovecot.org/SSL
    So to make this work, you have to set Dovecot the following way. (Fyi, I run Dovecot 2.0.19, versions 1.* have a somewhat different config parameters list.)
    1. In the /etc/dovecot/conf.d/10-master.conf file make sure you specify the inet_listener imap and disable (set its port to 0) for imaps like this:
    service imap-login {
      inet_listener imap {
        port = --your port # here--
      inet_listener imaps {
        port = 0
        ssl = yes
    This of course enables unencrypted imap for all hackers of the universe so you quickly need to also do the things below.
    2. In the /etc/dovecot/conf.d/10-ssl.conf file, make sure you set (uncomment) the following:
    ssl = required
    This sets Dovecot to only serve content to the client after a STARTTLS command was issued and the connection is already encrypted.
    3. In /etc/dovecot/conf.d/10-auth.conf set
    disable_plaintext_auth = yes
    This prevents plain text password authentication before encryption (TLS) is turned on. If you have also set ssl=required as per step 2, that will prevent all other kinds of authentications too on an unencrypted connection.
    When debugging this, please note that if you connect from localhost (the same machine the server runs on) disable_plaintext_auth=yes has no effect, as localhost is considered secure. You have to connect from a remote machine to make sure plain text authentication is disabled.
    Don't forget service dovecot restart.
    To test if your setup works as it's supposed to, issue the following (green) from a remote machine (not localhost) (I'm using Ubuntu, but telnet and openssl is available for almost all platforms) and make sure Dovecot responds with something like below (purple):
    telnet your.host.name.here yourimapsportnumber
    * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot ready.
    Most importantly, make sure you see 'STARTTLS' and 'LOGINDISABLED'. Then issue STARTTLS and hopefully you see something like this:
    a STARTTLS
    a OK Begin TLS negotiation now.
    (The 'a' in front of STARTTLS is not a typo, a prefix is required by the IMAP server in front of all commands.)
    Close the telnet (with 'a logout' or Ctrl+C) and you can use openssl to further investigate as you would otherwise; at the end of a lot of output including the certificate chain you should see a line similar to the one below:
    openssl s_client -starttls imap -connect your.domain.name.here:yourimapsportnumber
    . OK Pre-login capabilities listed, post-login capabilities have more.
    You can then use the capability command to look for what authentication methods are available, if you see AUTH=PLAIN, you can then issue a login command (it's already under an encrypted connection), and if it's successful ("a OK Logged in"), then most likely your iPhone will be able to connect to Dovecot as well.
    a capability
    * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN
    a login username password
    * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
    a OK Logged in
    POSTFIX
    Likewise, you have to set Postfix to wait for STARTTLS before encrypting the communication.
    1. You have to delete the setting smtpd_tls_wrappermode=yes from /etc/postfix/master.cf and/or /etc/postfix/main.cf, if it was enabled. This will mean Outlook won't be able to connect any more because it requires a TSL connection without issuing STARTTLS as per Postfix documentation (haven't tested.) In my case we don't use Outlook so I didn't care. Outlook + iPhone + custom SMTPS port are simply not possible together at the same time as far as I understand. Pick one to sacrifice.
    2. Require encrypted (TLS) mode for any data transfer in /etc/postfix/main.cf:
    smtpd_tls_security_level = encrypt
    3. Authentication should only happen while already in encrypted (TLS) mode, so set in /etc/postfix/main.cf:
    smtpd_tls_auth_only = yes
    Don't forget postfix reload.
    To test if this works, issue the following telnet and wait for the server's greeting:
    telnet your.host.name.here yoursmtpsportnumber
    220 your.host.name ESMTP Postfix (Ubuntu)
    Then type in the EHLO and make sure the list of options contains STARTTLS and does not include an AUTH line (that would mean unencrypted authentication is available):
    ehlo your.host.name.here
    250-STARTTLS
    Then issue starttls and wait for the server's confirmation:
    starttls
    220 2.0.0 Ready to start TLS
    Once again, it's time to use openssl for further testing, detailed info here http://qmail.jms1.net/test-auth.shtml
    CERTIFICATES
    You also need to be aware that iOS is somewhat particular when it comes to certificates. First of all, you have to make sure to set the following extensions on your root certificate (probably in the [ v3_ca ] section in your /etc/ssl/openssl.cnf, depending on your openssl setup), especially the 'critical' keyword:
    basicConstraints = critical,CA:true
    keyUsage = critical, cRLSign, keyCertSign
    subjectKeyIdentifier=hash
    authorityKeyIdentifier=keyid:always,issuer:always
    And then on the certificate you sign for your mail server, set the following, probably in the [ usr_cert ] section of /etc/ssl/openssl.cnf:
    basicConstraints=CA:FALSE
    keyUsage = nonRepudiation, digitalSignature, keyEncipherment
    subjectKeyIdentifier=hash
    authorityKeyIdentifier=keyid,issuer
    subjectAltName = DNS:your.domain.name.here
    issuerAltName=issuer:copy
    Please note, the above are results of extensive google-ing and trial and error, so maybe you can omit some of the stuff above and it still works. When it started working for me, I stopped experimenting because figuring this all out already took way too much time. The iPhone is horribly undocumented when it comes to details of its peculiar behaviors. If you experiment more and have more accurate information, please feel free to post here as a reply to this message.
    You have to import your root certificate into your iPhone embedded in a profile via the iPhone Configuration Utility (free, but only available in Windows or a Mac; details here: http://nat.guyton.net/2012/01/20/adding-trusted-root-certificate-authorities-to- ios-ipad-iphone/ ), after having first added it to Windows' certificate store as a trusted root certificate. This way the Utility will sign your certificate for the phone and it becomes usable; if you just add it from the phone it will be there but won't be used. Using a profile has the added benefit of being able to configure mail settings in it too, and that saves a lot of time when you have to install, remove, reconfigure, install again, etc. a million times until it works.
    Another undocumented constraint is that the key size is limited to a max of 4096. You can actually install a root certificate with a larger key, the iPhone Configuration Utility will do that for you without a word. The only suspicious thing is that on the confirmation screen shown on your iPhone when you install the profile you don't get the text "Root Certificate/ Installing the certificate will add it to the list of trusted certificates on your iPhone" in addition to your own custom prompt set up in the iPhone Configuration Utility. The missing additional text is your sign of trouble! - but how would know that before you saw it working once? In any case, if you force the big key certificate on the device, then when you open the Mail App, it opens up and then crashes immediately. Again, without a word. Supposedly Apple implemented this limit on the request of the US Government, read more here if you're interested: http://blogs.microsoft.co.il/blogs/kamtec1/archive/2012/10/13/limitation-of-appl e-devices-iphone-ipad-etc-on-rsa-key-size-bit.aspx .
    IN CLOSING...
    With all this, you can read and send email from your iPhone.
    Don't forget to set all your other clients (Thunderbird, Claws, etc.) to also use STARTTLS instead of SSL, otherwise they won't be able to connect after the changes above.

  • Cannot get Hostgator email with IMAP to work with Thunderbird

    I have cpanel for VPS hostig with Hostgator.com
    One of my domains, www.fasttractionmarketing.com has webmail with hostgator wihich is working properly.
    I have been trying for hours to get email set up with Thuderbird client. I have dlownloaded Thunderbird and followed the instructions by entering the mail settings according to Hostgator cpanel into Thunderbird.
    In Thunderbird, I go to Tools, Account Settings, Account Actions, Add Mail Account, and then I enter my name, email address which is [email protected] , then I enter my email password and click "continue"
    Then, I click "Manual config" and fill out the fields:
    Incoming IMAP: mail.fasttractionmarketing.com
    Port 43
    SSL STARTTLS
    Authenticatoin: Normal password
    Username: [email protected]
    ougoing SMTP: mail.fasttractionmarketing.com
    Port 25
    SSL: STARTTLS
    Authentication: Normal Password
    Username: [email protected]
    Then I click "Done" and it creates the email account for me in Thuderbird. I am able to create an email
    I click on "Write" to compose an email, enter "test" in subject line and email body, then click "Send"
    When I click "Send" Thunderbird tries to send the email and then after about 20 seconds I get the message
    "Sending of message failed.
    The message could not be sent because the connection to SMTP server mail.fasttractionmarketing.com timed out. Try again or contact your network administrator."
    How Can I set this up properly so it will work? Please let me know, I've been trying to get this to work for hours. HostGator can't figure it out.
    Thanks,
    Sean Travis

    try port 143

  • Cannot get EMails with IMAPS

    I have a own mail server at home (linux, postfix) and this one is accessible from outside per IMAPS.
    Now i synced the mail account settings from my MacBook Pro. But i cant access with the iphone 3g to this account. I tried with same settings from my macbook and it works fine. Then i tried IMAP instead of IMAPS and it works fine.
    But i don't want to use IMAP. It should be IMAPS.
    Does anyone has any idea ?

    Had the same problem had to Delete and re-add email accounts to fix
    Steps: Delete your email accounts under Settings->Mail,Contacts,Calendars,->(Select Account)->Delete , and then open email and add accounts back in

  • I have an iPad with IMAP email accounts set up but I can find no "inbox, drafts, trash" folders anywhere, either on my ipad or desktop Mac.  How can I set them up?  They do not show on my MacMail preferences either and I can find no way to add them.

    I have an iPad with IMAP email accounts set up but can find no "inbox, drafts, trash" folders for each email account anywhere on my iPad or in Mac Mail.   How can I set them up? I can't find anyway to set them up anywhere.  Thanks

    Hello blu monkey,
    I found some resources that I think might help with the visibility of your IMAP email folders on your iPad and Mac.
    On your iPad, you may need to follow the steps in this article to make sure your folders are visible:
    iOS: If IMAP Mail folders are not visible
    http://support.apple.com/kb/HT1393
    On your Mac, I am not sure if you have the sidebar enabled, but you can enable it using the steps in the article below.  When this is showing, you should see your email account listed near the bottom with a triangle next to it.  When the triangle is pointing down, it should show your folders:
    Mail (Mountain Lion): Show or hide the sidebar
    http://support.apple.com/kb/PH11763
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I have just recently bought a MacBook Air. I am looking for an email which I put into a folder on my Mac Pro. The smart folders have come across to the Air, but not the 'On my Mac' folders. Are they lost?

    I have just recently bought a MacBook Air. I am looking for an email which I put into a folder on my Mac Pro. The smart folders have come across to the Air, but not the 'On my Mac' folders. Are they lost?

    Are you sure that the "On My Mac" folders weren't empty? If all your mail accounts are IMAP, they may have been.

  • Can smart folders see color of emails?

    I have yet to upgrade to Leopard, and I have a specific question about Mail. In Tiger, I can assign a color to an email message, and I use this as a way to set categories for emails. However, smart mailboxes in Tiger cannot sort emails by their color. Do smart mailboxes in mail have this ability?
    Thanks,
    Jack

    No, Leopard hasn't added that feature. Best you can do is create a rule that adds a color to specific emails based on your criteria, then have it move that email to another folder. But this won't be a Smart folder but an actual one that the email moves to and out of your inbox. And if you are adding the colors manually then you can't even do that unless there is a specific criteria that all red emails have that you can make a rule from.
    There is a third party app called MailTags:
    http://www.indev.ca/MailTags.html
    That allows for all kinds of tagging and will then sort those tags into Smart folders. I haven't used it but I've had my eye on it. Just can't live with the $30 price tag. If it was $15 I'd have snapped it up.

  • Unable to move email with attachments from local folders to icloud

    I'm in the process of migrating my email to icloud. I've been able to move all emails without attacments from local folders to the cloud but evrytime I try to move emails with attachments I get one of two errors, either the imap server times out or it's unable to establish a secure connection (SSL).
    Anyone else come across this or point me in the right direction.
    And yes - I have been searching Google all afternoon and have not been able to find anything.

    I do not have an answer to your problem but am interested in following this thread because I would like to get off the Mail application and do everything in iCloud.  My problem is I have a ton of messages in Mail folders, on my MacAir. I don't know how to get them to iCloud folders.  At this point I keep the attachments in folders on the HD so I don't need the attachments to come but I do need the message.

  • How download emails in IMAP folders?

    I store many emails in folders (not Inbox / Sent) on an IMAP email account (not iCloud).
    In Mail App then my inbox/sent IMAP folders are auto-sync'd and all email messages downloaded from server to Mail App. Great. But it seems that mail messages in an IMAP folder are only downloaded if I click on the related folder, so do download email messages in 100 folders then I need to click one-by-one on each folder. Email messages that are not downloaded clearly do not appear in any search functionality with Mail App.
    Is there a setting or way to force Mail App to download email messages with IMAP folders?

    You could search within the account in question, not globally:
    # Right-click on the account name in the folder list to the left
    # select "Search Messages" from the menu
    # enter your search criteria, use the [+] button to add further lines
    # in the result list, you should see "Location" as a column

  • Delete emails from server after retrieving with IMAP protocol?

    Hi,
    I am using Mail as my email program and have set up my account with IMAP.
    When I use the POP protocol, I get the option to 'Remove copy from server after retrieving message'. When I set up Mail with the IMAP protocol, there is no such an option. The result is that my server inbox is slowly filling up and I manually have to login on my server to delete older messages.
    Is there a setting to automatically remove retrieved messages from my email server using IMAP?
    Thanks for your help.
    Erik

    Dear Thomas,
    Thanks for the clarification! Now I understand the mechanism.
    Still I would like to know if there is a way to automatically remove retrieved messages from the e-mail server. Would it help to automatically move my incoming messages in INBOX to a different mailbox in Mail.app? How would I set this up?
    Thanks for the response!
    Erik

  • Good morning! i'd like to know why when I write an email in Mail, it creates numerous copies each second which fill the trash box. My email is set up with IMAP and is a gmail account. Thanks

    good morning! i'd like to know why when I write an email in Mail, it creates numerous copies each second which fill the trash box. My email is set up with IMAP and is a gmail account. Thanks

    Open Mail preferences and select Accounts then MailBox Behavior. You probably need to unclick the safe draft to server.

  • My email account in Mail.app is IMAP, but when I delete emails, they don't delete from other devices connected to the mail server with IMAP. Deleted mail on other devices delete as normal from the server and thus from other devices as normal.

    MacBook Pro, late 2011 version. Up to date Mountain Lion.
    My email account in the Mail.app is set up as IMAP, but when I delete emails in the Mac Mail App, they are not deleted from the mail clients of the other devices that are connected to the mail server with IMAP. IMAP works perfectly between Windows Outlook 2010, iPad Mail App and Android default mail client. Deleted messages behave correctly, as in delete from one device and the mail is deleted from all devices.
    Having just tested in reverse order on the Mac; emails deleted from the email client on Windows, iPad and Android are not deleted in the Mac Mail App.  It appears that the account is behaving like POP rather than IMAP.
    Any advice on how to have IMAP work correctly on the MacBook Pro Mail.app?
    Thank you.

    Hi Csound1, thanks. The email host is 1and1.co.uk, however, i am going to fess up and make myself look like a plonker now -
    the email account in question was set up in Outlook as POP - stupid, stupid, stupid me, wasted an afternoon on this!  I have now changed the Outlook account to IMAP and Mail.app works perfectly - and looks much nicer than Outlook did.  Im in the middle of converting from Windows to a Mac, and still finding my way around the Mac
    The lesson learned, never assume - always double  check!  All my other email addresses with 1and1 are all imap, except this one, and it happened to be the first one I set up in the Mail.app. (bows head in disgrace!)
    Thank you anyway for attempting to help me!
    Cheers

  • I have an imac with IMAP email. have managed to partially sync up my ipad in that I can receive the same emails that appear on my imac but I can't send from my ipad.  Any ideas?

    I have an imac with IMAP email. have managed to partially sync up my ipad with it in that I can receive the same emails that appear on my imac but I can't send from my ipad.  Any ideas?

    That sounds like a settings issue to me. Check with your IT depatment to make sure you have it configured properly.

  • Smart folders seems not to work with star rating. Is there a fix?

    I Rate photos with a five star rating either on iPhoto or Adobe Bridge CS5. When I create a smart folder setting the search attribute to "Rating equals 5" nothing appears on the search.

    Sorry,
    I think I misunderstood your question. You were talking about smart folders in the Finder and not about smart albums in iPhoto, right?  "Rating equals 5" does not work on any of my machines, neither in Snow leopard nor in Lion. The problem seems to be how to represent the rating in the search string. If I search for "Rating is not 5" the smart folder contains plenty of pictures, also those with a rating of five. Does anyone know how the rating is coded to be used in a search string in the Finder?

  • Use smart mailbox to find email with specific text in attached pdf

    Does anyone known if a smart mailbox can be created to find emails with specific text within a pdf attached document. I know that spotlight can do this and it works fine but it would suite me better to be able to do this in mail.

    After some digging, I found that Spotlight returns the pdf attachment (found within the library/mail/download folder), but not the actual email. The only time it returns the email is if the search text or numerics are coincidentally within the written contents or subject line.
    Yes, i have tried setting up smart mailbox search criteria using the entire message contents but this does not find emails where the text exist within the pdf.
    I've checked spotlight pref.'s and all categories are checked off.
    Essentally, i need the smartbox search criteria to return results where the search text is found within the pdf attachment if possible. If this is not possible, i'll continue using spotlight searches outside of mail.
    I appreciate any help you can offer.

Maybe you are looking for

  • Confirmation Text

    Hi Expert, We are working in process order scenario. I have one problem while doing confirmation through CORK(CREATE PROCESS ORDER CONFIRMATION) there is one field "CONFIRMATION TEXT" user is filling some text as per business needs like "resizing","r

  • Microsoft Publisher to Photoshop?

    We are new to Photoshop and need to transfer our materials. Is it possible to copy a microsoft publisher document into a new photoshop document?

  • Time triggered graphics swaps

    I have a banner on my site that displays graphics promoting TV show finales on the days that they happen. Currently I am updating my banner every morning at 8:00am but that leaves the problem of having yesterday's event posted from midnight-8:00am. I

  • Can you migrate directly from 10.4.11 to 10.8?

    I have new Imac with 10.8 and want to migrate all my files from my old Imac with 10.4.11.  Can I do that?

  • Quiting Game-Please Read!!!!:(

    My game is quiting without unexpectally and the game is Zoo Tycoon 2 and I will load a game and it will just shut off. I need help!!!! Please help me! and I am not sure was OS my mac is so...