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 8421587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:11:21+00:00 2026-06-10T03:11:21+00:00

Store imapsStore = getStore(imapHost, imapPort, userName, userPass, getProperties(),debugMail); Folder givenFolder = imapsStore.getFolder(sourceFolder); givenFolder.open(Folder.READ_ONLY); /*

  • 0
        Store imapsStore = getStore(imapHost, imapPort, userName, userPass, getProperties(),debugMail);
        Folder givenFolder = imapsStore.getFolder(sourceFolder);
        givenFolder.open(Folder.READ_ONLY);

        /* Get the messages which is unread in the Inbox */
        Message messages[] = givenFolder.search(new FlagTerm(new Flags(Flags.Flag.RECENT), true));

        /* Use a suitable FetchProfile */
        FetchProfile fp = new FetchProfile();
//      fp.add(FetchProfile.Item.ENVELOPE);
//      fp.add(FetchProfile.Item.FLAGS);
        givenFolder.fetch(messages, fp);

This doesn’t return new mails from GMail. ? How To get It Work ? Does It Even Work ?
I know there is SEEN flag as well which is used to mark messages as READ/UNREAD, Im looking for Truly recent messages and not Unread messages.

  • 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-06-10T03:11:23+00:00Added an answer on June 10, 2026 at 3:11 am

    Gmail doesn’t support \Recent.

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

Sidebar

Related Questions

var store = GetStore(); using (IsolatedStorageFileStream fileStream = store.OpenFile(RootData, FileMode.Create)) { DataContractSerializer serializer =
To store uploaded files by users on remote server inside disk folder I change
STORE = { item : function() { } }; STORE.item.prototype.add = function() { alert('test
I store some data as XML and the changes of the user as diff
I store some data in a database and I read those data with a
I store some data in MySQL and want to filter out rows that match
I store dates as String in my database, in this format: YYYY-MM-DD HH:MM and
I store various user details in my MySQL database. Originally it was set up
I store serialized data in the registry. I want to use a foreach loop
I store some dates in my NSMutableArray, I want to retrieve them and change

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.