Domino Mial Inbox

Hi Domino Mail Expert,

I am using Lotus Note Client for viewing mail from a Domino Mail server. In lotus Note Inbox, I see both messages that I have open and the ones I have not. My question is when I click on a new message, does the message still physically remain in my Inbox in the server or the message has been moved out to other place?

The reason I am asking this question is I have JavaMial program connecting to the server and reading messages in my Inbox, it only sees the ones i have not open and those I have open are not being seen by the program.

I need to process a specific message by subject with the latest date received, whether or not it is open or not, in a Java program (Javamail or other method). Is it feasible?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

For that, you can create a rule and have a new folder and run the Java program on this folder.
Even you can design your own view through Designer.
Since you mentioned Javamail I presume you're using IMAP (or POP3) to read your Domino mail?
I would also have to see the code in order to analyze what is wrong.
It's obvious that the code gets only unread messages

Here's the same problem:
monday16868Author Commented:

Thanks for the link. It gave me more info to try. Our Domino only supports POP3.

I tried the reset property and close folder with true option, the results are the same as if I did not made the changes. Please let me know if you see anything that I am not doing correctly. The results are the followings:

1. New messages can be seen by the above codes, as usual.
2. Once the program is done, no messages can be seen if I ran the program again. So that means the reset function did not work as it should. Please tell me if I am wrong. I thought if the reset prop is set to true and folder is closed with true, all the messages were seen by the program will NOT be updated by Domiino as "deleted", therefore, they can still stay as "New".
3. Just using getMessage(), the messages were NOT marked as deleted or seen but search() will.

Other than above question, is there any way that you know of that my program can read those that have been marked as deleted (have been seen before both by my program and by myself)?

Here are the codes:
               try {
                          Properties props = System.getProperties();
                    props.put("", host);
                    props.put("mail.pop3.rsetbeforequit", "true");
                    Session session1 = Session.getDefaultInstance(props, null);
                    Store store = session1.getStore("pop3");
                    Folder folder = store.getFolder("INBOX");
                    Message msg[] = folder.getMessages();
                    //SearchTerm st = new SubjectTerm("Special Events");
                    //Message msg[] =;
                        out.println("len=" + msg.length + " Count=" + folder.getMessageCount());      
                        } catch (MessagingException mex)

Did you try to play with Folder's methods:

 - getNewMessageCount
 - getUnreadMessageCount

Also, you can try to get a subset of messages (in order to determine how they are marked and when) using FetchProfile in the Folder's method fetch:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
monday16868Author Commented:
The problem is resolved.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.