Link to home
Start Free TrialLog in
Avatar of monday16868
monday16868

asked on

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?

Thanks,
Avatar of madheeswar
madheeswar
Flag of Singapore image

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:
http://forums.sun.com/thread.jspa?forumID=43&threadID=464062
Avatar of monday16868
monday16868

ASKER

Mbonaci,

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");
                    store.connect(host,u,p);
                    Folder folder = store.getFolder("INBOX");
                    folder.open(Folder.READ_WRITE);
                    Message msg[] = folder.getMessages();
                    //SearchTerm st = new SubjectTerm("Special Events");
                    //Message msg[] = folder.search(st);
                  
                        out.println("len=" + msg.length + " Count=" + folder.getMessageCount());      
      
                    folder.close(true);
                    store.close();
                        } catch (MessagingException mex)
                          {}


Thanks,
ASKER CERTIFIED SOLUTION
Avatar of mbonaci
mbonaci
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The problem is resolved.