Ejemplo n.º 1
0
        // Token: 0x06000113 RID: 275 RVA: 0x0000661C File Offset: 0x0000481C
        internal static ImapDefaultFolderType GetDefaultFolderType(string mailboxName, out bool preferredMapping, out bool exactCaseSensitiveMatch)
        {
            ImapDefaultFolderType result = ImapDefaultFolderType.None;

            preferredMapping        = false;
            exactCaseSensitiveMatch = false;
            KeyedPair <string, ImapDefaultFolderType> keyedPair;

            if (ImapMailbox.preferredDefaultFolderMappings.TryGetValue(mailboxName, out keyedPair))
            {
                preferredMapping        = true;
                result                  = keyedPair.Second;
                exactCaseSensitiveMatch = (0 == string.Compare(mailboxName, keyedPair.First, StringComparison.Ordinal));
            }
            else
            {
                ImapMailbox.secondaryDefaultFolderMappings.TryGetValue(mailboxName, out result);
            }
            return(result);
        }
Ejemplo n.º 2
0
 // Token: 0x06000117 RID: 279 RVA: 0x0000674C File Offset: 0x0000494C
 private static void AddPreferredMapping(string folderNameUTF7, ImapDefaultFolderType type)
 {
     ImapMailbox.preferredDefaultFolderMappings[folderNameUTF7] = new KeyedPair <string, ImapDefaultFolderType>(folderNameUTF7, type);
 }