MAPIPropertyValue.cs
changeset 787 5cd68ac62d71
child 910 9bd60ca2c6ac
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/MAPIPropertyValue.cs	Fri Apr 08 15:38:54 2016 +0200
     1.3 @@ -0,0 +1,97 @@
     1.4 +´╗┐using System;
     1.5 +
     1.6 +namespace pEp
     1.7 +{
     1.8 +    /// <summary>
     1.9 +    /// MAPI helper class containing all defined property values.
    1.10 +    /// </summary>
    1.11 +    public class MAPIPropertyValue
    1.12 +    {
    1.13 +        /// <summary>
    1.14 +        /// Enumeration of flags for PidTagMessageFlags which specifies the status of the Message object.
    1.15 +        /// After the first successful call to the RopSaveChangesMessage ROP ([MS-OXCROPS] section 2.2.6.3), 
    1.16 +        /// as described in section 2.2.3.3, these flags are read-only for the client.
    1.17 +        /// </summary>
    1.18 +        [Flags]
    1.19 +        public enum EnumPidTagMessageFlags : int
    1.20 +        {
    1.21 +            /// <summary>
    1.22 +            /// The message is marked as having been read.
    1.23 +            /// </summary>
    1.24 +            mfRead = 0x00000001,
    1.25 +
    1.26 +            /// <summary>
    1.27 +            /// The message has not been modified since it was first saved (if unsent) or it was delivered (if sent).
    1.28 +            /// This flag is always read-only for the client.
    1.29 +            /// </summary>
    1.30 +            mfUnmodified = 0x00000002,
    1.31 +
    1.32 +            /// <summary>
    1.33 +            /// The message is marked for sending as a result of a call to the RopSubmitMessage ROP.
    1.34 +            /// This flag is always read-only for the client.
    1.35 +            /// </summary>
    1.36 +            mfSubmitted = 0x00000004,
    1.37 +
    1.38 +            /// <summary>
    1.39 +            /// The message is still being composed and is treated as a Draft Message object. 
    1.40 +            /// This bit is cleared by the server when responding to the RopSubmitMessage ROP ([MS-OXCROPS] section 2.2.7.1) with a success code.
    1.41 +            /// </summary>
    1.42 +            mfUnsent = 0x00000008,
    1.43 +
    1.44 +            /// <summary>
    1.45 +            /// The message has at least one attachment. This flag corresponds to the message's PidTagHasAttachments property (section 2.2.1.2).
    1.46 +            /// This flag is always read-only for the client.
    1.47 +            /// </summary>
    1.48 +            mfHasAttach = 0x00000010,
    1.49 +
    1.50 +            /// <summary>
    1.51 +            /// The user receiving the message was also the user who sent the message.
    1.52 +            /// This flag is always read-only for the client.
    1.53 +            /// </summary>
    1.54 +            mfFromMe = 0x00000020,
    1.55 +
    1.56 +            /// <summary>
    1.57 +            /// The message is an FAI (folder associated information) message.
    1.58 +            /// This flag is always read-only for the client.
    1.59 +            /// </summary>
    1.60 +            mfFAI = 0x00000040,
    1.61 +
    1.62 +            /// <summary>
    1.63 +            /// The message includes a request for a resend operation with a non-delivery report.
    1.64 +            /// For more details, see [MS-OXOMSG] section 3.2.4.5.
    1.65 +            /// </summary>
    1.66 +            mfResend = 0x00000080,
    1.67 +
    1.68 +            /// <summary>
    1.69 +            /// The user who sent the message has requested notification when a recipient (1) first reads it.
    1.70 +            /// This flag is always read-only for the client.
    1.71 +            /// </summary>
    1.72 +            mfNotifyRead = 0x00000100,
    1.73 +
    1.74 +            /// <summary>
    1.75 +            /// The user who sent the message has requested notification when a recipient (1) deletes it before reading or the Message object expires.
    1.76 +            /// This flag is always read-only for the client.
    1.77 +            /// </summary>
    1.78 +            mfNotifyUnread = 0x00000200,
    1.79 +
    1.80 +            /// <summary>
    1.81 +            /// The message has been read at least once. This flag is set or cleared by the server whenever the mfRead flag is set or cleared. Clients SHOULD ignore this flag.
    1.82 +            /// This flag is always read-only for the client.
    1.83 +            /// </summary>
    1.84 +            mfEverRead = 0x00000400,
    1.85 +
    1.86 +            /// <summary>
    1.87 +            /// The incoming message arrived over the Internet and originated either outside the organization or from a source the gateway does not consider trusted.
    1.88 +            /// This flag is always read-only for the client.
    1.89 +            /// </summary>
    1.90 +            mfInternet = 0x00002000,
    1.91 +
    1.92 +            /// <summary>
    1.93 +            /// The incoming message arrived over an external link other than X.400 or the Internet. 
    1.94 +            /// It originated either outside the organization or from a source the gateway does not consider trusted.
    1.95 +            /// This flag is always read-only for the client.
    1.96 +            /// </summary>
    1.97 +            mfUntrusted = 0x00008000
    1.98 +        }
    1.99 +    }
   1.100 +}