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

  • SEARCH
  • Home
  • 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 7410529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:14:50+00:00 2026-05-29T06:14:50+00:00

I need to develop an IMAP poller which pings an email server every few

  • 0

I need to develop an IMAP poller which pings an email server every few seconds and fetches every new email which arrives.

I’ve done it once for another application, but there I used an inbound mail channel from Spring Integration.

I just started “playing” with Play, and am not sure what the best way to achieve this is. I know that JavaMail already offers the possibility to fetch mails, but I am not sure how to actually package this. Should this be a separate module, a separate plugin, a service, or sth?

Should the polling functionality be implemented as a job?

NOTE: It is a web application BTW, although the description above may suggest it is not.

  • 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-29T06:14:50+00:00Added an answer on May 29, 2026 at 6:14 am

    There are a few options to solve this:

    1) Use java in a Job to poll the IMAP server at regular intervals

    documentation on creating a Job is available and is pretty straight forward, just setup the job to run every minute or 5 minutes and then add the code to actually check for new emails.

    http://www.playframework.org/documentation/1.2.4/jobs

    If you’re looking for how to check for new emails on IMAP then have a look through stack exchange there. For example, to poll gmail check out this question: Getting mail from GMail into Java application using IMAP

    2) Use camel module to poll IMAP server with a custom route/processor

    This is a heavyweight solution and only recommended if you want to make use of other features of Apache Camel.

    The module is available here: http://www.playframework.org/modules/camel

    Using camel to poll for IMAP messages is fairly easy once you get your head around how to use camel, the specific info for the IMAP route is here: http://camel.apache.org/mail.html

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

Sidebar

Related Questions

I need to develop an application which stores data in a SQL Server 2005
I need to develop a WCF server (basically a web service which will eventually
I need to develop a CRM system which will allow users to have a
I need to develop a page which has 2 dropdownlist. Options of dropdownlist 2
i need to develop a .net library which exposes a java web service proxy
I need to develop a game server that will run periodically (e.g., triggered by
I need to develop a joomla component but I got confused on defining which
We need to develop a Finance Application in Java J2EE which can be accessed
I need to develop an embedded audio streaming server. Requirements: Voice quality or better
I need to develop a server side application that opens sockets and manages communication

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.