Reading Mails When CC'd to Mail Address

Here is the Screnario
i have a mail address created in Apache James Mail Server 'test1@localhost'.
When send mail to 'test1@localhost' keeping that address in CC. I'm unable to read mail
Here is the Code Snippet
folder = store.getFolder("INBOX");
if(folder != null){
      folder.open(Folder.READ_WRITE);
       Message message[] = folder.getMessages();Any Guess or Clue why this is happenning
I tried to read default folder also but didnt solve my issue??????
Please Help

The JavaMail FAQ has debugging tips, did you find it?
Turn on session debugging and the protocol trace will help you
figure out what's going wrong.

Similar Messages

Maybe you are looking for