private static RuleAction.ForwardAction.ForwardFlags MapiForwardFlagsToForwardFlags(RuleAction.Forward.ActionFlags mapiForwardFlags) { RuleAction.ForwardAction.ForwardFlags forwardFlags = RuleAction.ForwardAction.ForwardFlags.None; if ((mapiForwardFlags & RuleAction.Forward.ActionFlags.DoNotMungeMessage) == RuleAction.Forward.ActionFlags.DoNotMungeMessage) { forwardFlags |= RuleAction.ForwardAction.ForwardFlags.DoNotChangeMessage; } if ((mapiForwardFlags & RuleAction.Forward.ActionFlags.ForwardAsAttachment) == RuleAction.Forward.ActionFlags.ForwardAsAttachment) { forwardFlags |= RuleAction.ForwardAction.ForwardFlags.ForwardAsAttachment; } if ((mapiForwardFlags & RuleAction.Forward.ActionFlags.PreserveSender) == RuleAction.Forward.ActionFlags.PreserveSender) { forwardFlags |= RuleAction.ForwardAction.ForwardFlags.PreserveSender; } if ((mapiForwardFlags & RuleAction.Forward.ActionFlags.SendSmsAlert) == RuleAction.Forward.ActionFlags.SendSmsAlert) { forwardFlags |= RuleAction.ForwardAction.ForwardFlags.SendSmsAlert; } return(forwardFlags); }
public ForwardAction(uint userFlags, RuleAction.ForwardActionBase.ActionRecipient[] recipients, RuleAction.ForwardAction.ForwardFlags forwardFlags) : base(RuleActionType.Forward, userFlags, recipients) { EnumValidator.ThrowIfInvalid <RuleAction.ForwardAction.ForwardFlags>(forwardFlags); this.Flags = forwardFlags; }