• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 467
  • Last Modified:

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?

  • 2
  • 2
1 Solution
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("mail.smtp.host", 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[] = folder.search(st);
                        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:

monday16868Author Commented:
The problem is resolved.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now