• Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicated emails when download outlook using java  RSS feed

Alexander Cd
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple script using Java that checks the inbox looking for a specific email address and when it is found, then the message is copied to another mailbox and delete this message found in the inbox. The inbox is updated.

The problem is that when I check my emails in Microsoft Outlook: messages are duplicated. Could someone tell me how to do so that they do not duplicate? Is there anything missing in my script to tell MS Oulook to just download the messages that are in fact new and do not duplicate them?

Thank you.

A litle from my script:

folder_in.copyMessages(new Message[]{folder_in.getMessage(message.getMessageNumber())}, folder_out); //Copy message found message.setFlag(FLAGS.Flag.DELETED, true); //Delete message from inbox
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!