Aymeric
  • Aymeric
  • 52.25% (Neutral)
  • Newbie Topic Starter
9 years ago
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!
Aymeric
  • Aymeric
  • 52.25% (Neutral)
  • Newbie Topic Starter
9 years ago
Also, I can't success to find information in the documentation  about the Enumeration MailFlagsType.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
9 years ago
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.



* 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
Aymeric
  • Aymeric
  • 52.25% (Neutral)
  • Newbie Topic Starter
9 years ago
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...

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.