Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Aymeric  
#1 Posted : Thursday, May 12, 2016 7:38:58 AM(UTC)
Aymeric

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!
Aymeric  
#2 Posted : Friday, May 13, 2016 12:20:53 AM(UTC)
Aymeric

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

ivan  
#3 Posted : Friday, May 13, 2016 12:51:21 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,148

Thanks: 9 times
Was thanked: 54 time(s) in 54 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
Aymeric  
#4 Posted : Friday, May 13, 2016 4:27:54 AM(UTC)
Aymeric

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...
Users browsing this topic
Guest
Forum Jump  
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.052 seconds.

EXPLORE TUTORIALS

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