Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft mail does not have draft flag set for Gmail #345

Closed
m00nlight opened this issue Oct 18, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@m00nlight
Copy link

commented Oct 18, 2018

I saved a draft message using GMail in the browser. But when I check the mail from java.mail.
It seems that it does not contain the draft flag

        // the folder is [Gmail]/Draft in Chinese
        Message[] messages = imapUtil.fetchMessageByIds("[Gmail]/草稿",
                new String[]{messageId}, "2018-10-18", "2018-10-18");

        for (Message m : messages) {
            MimeMessage msg = (MimeMessage) m;
            Constants.printIfDebug(msg.getSubject());
            Constants.printIfDebug(msg.getFlags().toString());
        }

the output is something like

draft test
\Seen

Is it also a known issue that gmail does not set the draft flag properly?

@bshannon

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2018

Yes, I just tried it as well and it appears to be a Gmail bug, please report it to Google.

@bshannon bshannon closed this Oct 18, 2018

@m00nlight

This comment has been minimized.

Copy link
Author

commented Oct 19, 2018

@bshannon Thanks

@m00nlight

This comment has been minimized.

Copy link
Author

commented Nov 1, 2018

@bshannon

First of all thanks for provide the java.mail API. I build an email client on android recently using java.mail. Maybe you would like to add this as another one in the third party product list.

You could find the product at: https://m00nlight.github.io/OMail/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.