internal static SetterDelegate ImapProtocolLoggingEnabledSetterDelegate()
 {
     return(delegate(object value, IPropertyBag propertyBag)
     {
         if (value == null)
         {
             CASMailboxHelper.SetSettingsString(propertyBag, "IMAP4", 11, string.Empty, 14);
             return;
         }
         CASMailboxHelper.SetSettingsInt(propertyBag, "IMAP4", 11, (int)value, 14);
     });
 }
 private static void SetSettingsMimeTextFormat(IPropertyBag propertyBag, string protocolName, int position, MimeTextFormat value, int totalNumberOfFields)
 {
     CASMailboxHelper.SetSettingsInt(propertyBag, protocolName, position, (int)value, totalNumberOfFields);
 }