Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4092696
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:31:26+00:00 2026-05-20T19:31:26+00:00

I need an alternative for IMAP search command A search 1:* unseen not deleted

  • 0

I need an alternative for IMAP search command “A search 1:* unseen not deleted” since the email server is forbidding the search command. I tried using “A status (unseen)” but it always returns zero though there’s an unread message. Is there any alternative for the command? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:31:27+00:00Added an answer on May 20, 2026 at 7:31 pm

    Is your problem that the IMAP server doesn’t support SEARCH at all, or that it doesn’t like your particular SEARCH command? If it’s the latter, we can simplify:

    A SEARCH UNSEEN UNDELETED
    

    (as 1:* is implicit). Even simpler — just in case the server doesn’t like and-ing SEARCH terms together at all — would be:

    A SEARCH UNSEEN
    B SEARCH DELETED
    

    and logically doing the AND in your code.

    The brute-force way of doing it is:

    C UID FETCH 1:* FLAGS
    

    and then picking out all the ones with neither \Seen nor \Deleted. (I’m suggesting UID FETCH because a similar FETCH command will return BAD on an empty folder.)

    Also, you’re not supposed to call the STATUS command on the currently-selected folder:

    Note: The STATUS command is intended to access the
    status of mailboxes other than the currently selected
    mailbox. Because the STATUS command can cause the
    mailbox to be opened internally, and because this
    information is available by other means on the selected
    mailbox, the STATUS command SHOULD NOT be used on the
    currently selected mailbox.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since ASP.NET response filtering and post-cache substitution are not compatible, I need an alternative
I am working in .Net environment using C#. I need some alternative for the
I need to find an open source alternative to VSS where people will share
Does anyone knows any free alternative MySQL Enterprise Monitor? I need some tool, that
I need an alternative for Dispatcher (.net 3.0) to use for a windows service
I need some alternative of implode for mysql queries.After research found concat functions. Question
I need an alternative to Java, because I am working on a genetics-calculation project.
I would really need an alternative to SimpleDateFormat, I am converting many-many Strig dates(>100k)
Does anyone know an alternative for this? I need a way to keep track
I need an alternative to frames. My layout is as follows, a hovering menu

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.