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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:47:42+00:00 2026-05-15T12:47:42+00:00

I am using Postfix as a mail server and I configured it to receive

  • 0

I am using Postfix as a mail server and I configured it to receive emails to some destination.

I want to make a Java code that parse the incoming emails and do some action. Any idea where to start or what to use?

  • 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-15T12:47:43+00:00Added an answer on May 15, 2026 at 12:47 pm

    I see two approaches:

    • Parse the mailbox (or mail) itself using jcup or jflex for instance
    • Add an imap server and use some java lib to query the imap server. (it can provide you filters for instance)

    The imap approach lets you select unread mail, mail by id (single or multiple), move mail from one directory to an other, and so on.

    Some links:

    http://www.ibm.com/developerworks/linux/library/l-lexyac2.html

    It is for C, but tips may be helpful for java. I mean the theoretical background.

    http://www.example-code.com/java/imap.asp

    This one is a collection of imap sample with java. It seems to use a lib, but in all case, it gives you an overview of what is doable with imap.

    finally, there was a question about imap and java on stackoverflow:

    Getting mail from GMail into Java application using IMAP

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

Sidebar

Related Questions

I have a program to send mail using python smtplib. I have the mail
I have a form that submits to PHP self. This script runs and says
I am using Reflection.Emit to build a mathematical expression parser (e.g. 2+2 ). A
I am currently using Dozer to map to sets of objects. I have a
I'm currently setting up two servers, one for me and one for a client.
For a built in type integer array say int a[10]; int i = 2;
I asked this question two months ago and got nary an answer. In fact
I'm getting following linker error when I compile my program with VS2008 solution which
I have always wondered what the most effective way is of creating String's in
We're changing the way users embed images in their blogs, but I need to

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.