How to check whether a mail is a draft or not from JavaMail API? I know that there is a Flag : DRAFT. But I connected to my gmail account and retrieved my Dfaft mails and checked whether DRAFT flag is true. But it always returns false. So it seems that's not a solution. Any suggestions are welcome.
There's no guaranteed way. Different email clients represent draft messages in different ways, usually by putting them in a folder named "Drafts" or something like that.