internal static void AllowedOOFTypeSetter(object value, IPropertyBag propertyBag) { AcceptMessageType acceptMessageType = (AcceptMessageType)((int)propertyBag[DomainContentConfigSchema.AcceptMessageTypes]); acceptMessageType &= ~(AcceptMessageType.LegacyOOF | AcceptMessageType.BlockOOF | AcceptMessageType.InternalDomain); AllowedOOFType allowedOOFType = (AllowedOOFType)value; acceptMessageType |= (AcceptMessageType)allowedOOFType; propertyBag[DomainContentConfigSchema.AcceptMessageTypes] = (int)acceptMessageType; }
public static void GetSDOPostAction(DataRow inputRow, DataTable table, DataObjectStore store) { if (table.Rows[0] == null) { return; } DataRow dataRow = table.Rows[0]; string mimeCharset = table.Rows[0]["CharacterSet"].ToString(); string nonMimeCharset = table.Rows[0]["NonMimeCharacterSet"].ToString(); table.Rows[0]["CharacterSet"] = DomainContentConfig.CharacterSetList.First((DomainContentConfig.CharacterSetInfo aCharSet) => aCharSet.CharsetName.Equals(mimeCharset, StringComparison.OrdinalIgnoreCase)).CharsetDescription; table.Rows[0]["NonMimeCharacterSet"] = DomainContentConfig.CharacterSetList.First((DomainContentConfig.CharacterSetInfo aCharSet) => aCharSet.CharsetName.Equals(nonMimeCharset, StringComparison.OrdinalIgnoreCase)).CharsetDescription; string name = DomainContentConfigSchema.AllowedOOFType.Name; AllowedOOFType allowedOOFType = (AllowedOOFType)Enum.Parse(typeof(AllowedOOFType), table.Rows[0][name].ToString()); AllowedOOFType allowedOOFType2 = allowedOOFType; switch (allowedOOFType2) { case AllowedOOFType.External: table.Rows[0][name] = Strings.RemoteDomainsAutomaticReplyExternal.ToString(); return; case AllowedOOFType.ExternalLegacy: table.Rows[0][name] = Strings.RemoteDomainsAutomaticReplyExternalLegacy.ToString(); return; default: if (allowedOOFType2 == AllowedOOFType.None) { table.Rows[0][name] = Strings.RemoteDomainsAutomaticReplyNone.ToString(); return; } if (allowedOOFType2 != AllowedOOFType.InternalLegacy) { return; } table.Rows[0][name] = Strings.InternalInsteadOfInternalLegacy.ToString(); return; } }