public SmtpSubmissionItem(RuleEvaluationContext context, MessageItem item, WorkItem workItem) : base("Microsoft SMTP Server") { base.Session = context.StoreSession; base.Item = item; this.context = context; this.workItem = workItem; this.submissionTime = DateTime.UtcNow; }
protected override void MessageTrackThrottle <C, L>(string limitType, C count, L limit) { if (base.ServerIPAddress == null) { base.ServerIPAddress = this.context.LocalServerNetworkAddress; } RuleEvaluationContext ruleEvaluationContext = this.context as RuleEvaluationContext; MessageTrackingLog.TrackThrottle(MessageTrackingSource.MAILBOXRULE, ruleEvaluationContext.MbxTransportMailItem, base.ServerIPAddress, this.context.CurrentFolderDisplayName, string.Format(CultureInfo.InvariantCulture, "{0}:{1}/{2}", new object[] { limitType, count, limit }), this.context.Recipient, this.context.CurrentRule.Name); }
protected MessageContext(RuleEvaluationContext parentContext) : base(parentContext) { }
protected RuleEvaluationContext(RuleEvaluationContext parentContext) : base(parentContext) { this.mailItemDeliver = parentContext.mailItemDeliver; }