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

Notification

Icon
Error

Options
Go to last post Go to first unread
trentcioran  
#1 Posted : Tuesday, November 1, 2016 2:55:12 PM(UTC)
trentcioran

Rank: Newbie

Groups: Registered
Joined: 11/1/2016(UTC)
Posts: 4

Hi,

I am connecting to an exchange server but haven't seen a property that tells me an email is a draft. Is there a way to identify draft emails when retrieving items from a folder? Am I missing something?


Thanks in advance,
Manuel
ivan  
#2 Posted : Tuesday, November 1, 2016 5:31:11 PM(UTC)
ivan

Rank: Administration

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

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Hi, you can use this undocumented property, it will be formal property at next major release.
Code:

MailInfo info = infos[i];
if ((info.Flags & MailFlagsType.Draft) == MailFlagsType.Draft)
{ 
  //this is draft.
}
trentcioran  
#3 Posted : Friday, November 4, 2016 7:48:51 AM(UTC)
trentcioran

Rank: Newbie

Groups: Registered
Joined: 11/1/2016(UTC)
Posts: 4

Thank you Ivan,

I don't see that property in the MailInfo class, is this a 4.6+ only property? (I have currently 4.5).


Thank you,
Manuel
ivan  
#4 Posted : Friday, November 4, 2016 4:51:00 PM(UTC)
ivan

Rank: Administration

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

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Yes, only latest version 4.6+ supports this.
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.055 seconds.

EXPLORE TUTORIALS

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