Rank: Newbie
Groups: Registered
Joined: 5/12/2016(UTC) Posts: 3
Hey,
I can't success to read via the SDK that my mail is marked as a Draft in Gmail.
I tried that way:
(mailInfo.Flags & EAGetMail.MailFlagsType.Draft) == EAGetMail.MailFlagsType.Draft) but without luck.
Also
mailInfo.IMAP4MailFlags doesn't ouput a \Draft flag neither.
In the
BodyHeaders , I can see
X-Apple-Auto-Saved: 1 because I used Mail.app client ; but it's too much platform dependant.
I dind't find anything in the documentation related to Draft... any ideas? Tanks!
Rank: Newbie
Groups: Registered
Joined: 5/12/2016(UTC) Posts: 3
Also, I can't success to find information in the
documentation about the Enumeration
MailFlagsType .
Edited by user Friday, May 13, 2016 12:22:07 AM(UTC)
| Reason: Not specified
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,154
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Hi, That is because Gmail doesn't return Draft flag in IMAP protocol.
I just did a test, i put a draft in the Gmail draft folder, then using IMAP4 to access it.
Code:
* OK [HIGHESTMODSEQ 172893]
A0007 OK [READ-WRITE] [Gmail]/Drafts selected. (Success)
A0008 FETCH 1:* (UID RFC822.SIZE FLAGS)
* 1 FETCH (UID 210 RFC822.SIZE 640 FLAGS (\Seen))
A0008 OK Success
This is what Gmail IMAP returned, i thought there is no other way except the X-Apple-Auto-Saved header
Rank: Newbie
Groups: Registered
Joined: 5/12/2016(UTC) Posts: 3
Thanks for the answer Ivan. Indeed, when creating a draft in Gmail we have absolutely no clue from the flags neither from headers that it is a draft. I wonder how Gmail manages it itself...
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.