Exemplo n.º 1
0
        private static Dictionary <TnefPropertyTag, int> GetAttachmentProperties(ref int index)
        {
            Dictionary <TnefPropertyTag, int> dictionary = new Dictionary <TnefPropertyTag, int>(25, TnefPropertyBag.PropertyTagComparer);

            dictionary.Add(TnefPropertyTag.AttachDataBin, index);
            dictionary.Add(TnefPropertyTag.AttachDataObj, index++);
            dictionary.Add(TnefPropertyTag.AttachMethod, index++);
            dictionary.Add(TnefPropertyTag.AttachLongFilenameA, index);
            dictionary.Add(TnefPropertyTag.AttachLongFilenameW, index++);
            dictionary.Add(TnefPropertyTag.AttachFilenameA, index);
            dictionary.Add(TnefPropertyTag.AttachFilenameW, index++);
            dictionary.Add(TnefPropertyTag.AttachExtensionA, index);
            dictionary.Add(TnefPropertyTag.AttachExtensionW, index++);
            dictionary.Add(TnefPropertyTag.DisplayNameA, index);
            dictionary.Add(TnefPropertyTag.DisplayNameW, index++);
            dictionary.Add(TnefPropertyTag.AttachTransportNameA, index);
            dictionary.Add(TnefPropertyTag.AttachTransportNameW, index++);
            dictionary.Add(TnefPropertyTag.AttachPathnameA, index);
            dictionary.Add(TnefPropertyTag.AttachPathnameW, index++);
            dictionary.Add(TnefPropertyTag.AttachMimeTagA, index);
            dictionary.Add(TnefPropertyTag.AttachMimeTagW, index++);
            dictionary.Add(TnefPropertyTag.RenderingPosition, index++);
            dictionary.Add(TnefPropertyTag.AttachRendering, index++);
            dictionary.Add(TnefPropertyTag.AttachContentIdA, index++);
            dictionary.Add(TnefPropertyTag.AttachContentIdW, index++);
            dictionary.Add(TnefPropertyTag.AttachContentLocationA, index++);
            dictionary.Add(TnefPropertyTag.AttachContentLocationW, index++);
            dictionary.Add(TnefPropertyTag.AttachmentFlags, index++);
            dictionary.Add(TnefPropertyTag.AttachHidden, index++);
            TnefPropertyBag.AddLookupEntries(dictionary);
            return(dictionary);
        }
Exemplo n.º 2
0
        private static Dictionary <TnefPropertyTag, int> GetMessageProperties(ref int index)
        {
            Dictionary <TnefPropertyTag, int> dictionary = new Dictionary <TnefPropertyTag, int>(61, TnefPropertyBag.PropertyTagComparer);

            dictionary.Add(TnefPropertyTag.TnefCorrelationKey, index++);
            dictionary.Add(TnefPropertyTag.MessageCodepage, index++);
            dictionary.Add(TnefPropertyTag.InternetCPID, index++);
            dictionary.Add(TnefPropertyTag.MessageLocaleID, index++);
            dictionary.Add(TnefPropertyTag.ContentIdentifierA, index);
            dictionary.Add(TnefPropertyTag.ContentIdentifierW, index++);
            dictionary.Add(TnefPropertyTag.ReadReceiptRequested, index++);
            dictionary.Add(TnefPropertyTag.ReadReceiptDisplayNameA, index);
            dictionary.Add(TnefPropertyTag.ReadReceiptDisplayNameW, index++);
            dictionary.Add(TnefPropertyTag.ReadReceiptEmailAddressA, index);
            dictionary.Add(TnefPropertyTag.ReadReceiptEmailAddressW, index++);
            dictionary.Add(TnefPropertyTag.ReadReceiptAddrtypeA, index);
            dictionary.Add(TnefPropertyTag.ReadReceiptAddrtypeW, index++);
            dictionary.Add(TnefPropertyTag.ReadReceiptSmtpAddressA, index);
            dictionary.Add(TnefPropertyTag.ReadReceiptSmtpAddressW, index++);
            dictionary.Add(TnefPropertyTag.ReadReceiptEntryId, index++);
            dictionary.Add(TnefPropertyTag.SenderNameA, index);
            dictionary.Add(TnefPropertyTag.SenderNameW, index++);
            dictionary.Add(TnefPropertyTag.SenderEmailAddressA, index);
            dictionary.Add(TnefPropertyTag.SenderEmailAddressW, index++);
            dictionary.Add(TnefPropertyTag.SenderAddrtypeA, index);
            dictionary.Add(TnefPropertyTag.SenderAddrtypeW, index++);
            dictionary.Add(TnefPropertyTag.SenderEntryId, index++);
            dictionary.Add(TnefPropertyTag.SentRepresentingNameA, index);
            dictionary.Add(TnefPropertyTag.SentRepresentingNameW, index++);
            dictionary.Add(TnefPropertyTag.SentRepresentingEmailAddressA, index);
            dictionary.Add(TnefPropertyTag.SentRepresentingEmailAddressW, index++);
            dictionary.Add(TnefPropertyTag.SentRepresentingAddrtypeA, index);
            dictionary.Add(TnefPropertyTag.SentRepresentingAddrtypeW, index++);
            dictionary.Add(TnefPropertyTag.SentRepresentingEntryId, index++);
            dictionary.Add(TnefPropertyTag.ClientSubmitTime, index++);
            dictionary.Add(TnefPropertyTag.LastModificationTime, index++);
            dictionary.Add(TnefPropertyTag.ExpiryTime, index++);
            dictionary.Add(TnefPropertyTag.ReplyTime, index++);
            dictionary.Add(TnefPropertyTag.SubjectA, index);
            dictionary.Add(TnefPropertyTag.SubjectW, index++);
            dictionary.Add(TnefPropertyTag.NormalizedSubjectA, index);
            dictionary.Add(TnefPropertyTag.NormalizedSubjectW, index++);
            dictionary.Add(TnefPropertyTag.SubjectPrefixA, index);
            dictionary.Add(TnefPropertyTag.SubjectPrefixW, index++);
            dictionary.Add(TnefPropertyTag.ConversationTopicA, index);
            dictionary.Add(TnefPropertyTag.ConversationTopicW, index++);
            dictionary.Add(TnefPropertyTag.InternetMessageIdA, index);
            dictionary.Add(TnefPropertyTag.InternetMessageIdW, index++);
            dictionary.Add(TnefPropertyTag.Importance, index++);
            dictionary.Add(TnefPropertyTag.Priority, index++);
            dictionary.Add(TnefPropertyTag.Sensitivity, index++);
            dictionary.Add(TnefPropertyTag.MessageClassA, index);
            dictionary.Add(TnefPropertyTag.MessageClassW, index++);
            dictionary.Add(new TnefPropertyTag(TnefPropertyId.Body, TnefPropertyType.Binary), index);
            dictionary.Add(TnefPropertyTag.BodyA, index);
            dictionary.Add(TnefPropertyTag.BodyW, index++);
            dictionary.Add(TnefPropertyTag.RtfCompressed, index++);
            dictionary.Add(TnefPropertyTag.BodyHtmlB, index);
            dictionary.Add(TnefPropertyTag.BodyHtmlA, index);
            dictionary.Add(TnefPropertyTag.BodyHtmlW, index++);
            dictionary.Add(TnefPropertyTag.SendRecallReport, index++);
            dictionary.Add(TnefPropertyTag.OofReplyType, index++);
            dictionary.Add(TnefPropertyTag.AutoForwarded, index++);
            dictionary.Add(TnefPropertyTag.INetMailOverrideFormat, index++);
            dictionary.Add(TnefPropertyTag.INetMailOverrideCharset, index++);
            TnefPropertyBag.AddLookupEntries(dictionary);
            return(dictionary);
        }