1
votes

I'm using imap to connect to gmail and getting the whole inbox folder
where can i see if a specific mail is read/unread?

is there any way to fetch only the unread mails from the server instead of all the inbox folder?

thanks

1
offtopic question belongs on Android ExchangeJPM

1 Answers

0
votes

found the answer

FlagTerm ft = new FlagTerm(new Flags(Flags.Flag.SEEN), false);  
Message messages[] = inbox.search(ft);