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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:10:43+00:00 2026-06-14T23:10:43+00:00

I need to get new emails real as quick as it possible from user’s

  • 0

I need to get new emails real as quick as it possible from user’s gmail account.

There are 2 options todo that:

1) Poll server periodically (maybe continiously without delay) and check for new messages. (not ideal solution)
2) Use IMAP IDLE. (supported by gmail). This solution looks promising and most eficient. And I tried go that way. Found lib which supported IDLE. It is S22.IMAP mail library.
But the problem is that I found some problem with it (or is it IDLE related problem). I don’t get OnNewMessage called each time if there are several messages arrived at once. I get 2-3 only when there are 4-6 messages arrived.

Is it IDLE related issue? And do I have to fetch for new messages each time I get EXIST with IDLE? Or is it lib issue?

  • 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-14T23:10:44+00:00Added an answer on June 14, 2026 at 11:10 pm

    I used it wrong way. IMAP IDLE is the best way to go. I just forget to stop idling on new message event.
    It has to be stopped, checked for new messages and then allow app to idle further.

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

Sidebar

Related Questions

I need to clear the <div> and insert new content I get from the
I have a program in which I need to get emails from our exchange
I am new to Java EE and I need to get some facts straight.
I need to get two JPanels into one JApplet. paneel = new RekenmachinePaneel(); nummer
I am new to PHP. I need to GET a xml stored locally using
I need to get contacts information(cursor) with email. They must be distinct. There must
my client and I need to get him receiving emails this week. The domain
A script is used to send emails (only with Gmail) daily with user interactions.
I need get the id of an images which is place inside a datatemplate..
Just need get some vals located in application.ini(main ini) in the Controller plugin I

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.