try {
final Store store = openGmailStore();
folder = getFolder(this.srcFolder, store);
folder.open(Folder.READ_WRITE);
for (final Message message : folder.search(new FlagTerm(
new Flags(Flags.Flag.SEEN), false))) {
message.setFlag(Flags.Flag.SEEN, true);
}
} catch (Exception e) {
throw new GmailException("ImapGmailClient failed marking"