public bool Remove(SmtpAddress smtpAddress)
        {
            ClutterUtilities.ValidateSmtpAddress(smtpAddress);
            int num = this.neverClutterSenders.FindIndex((SmtpAddress sender) => sender.Equals(smtpAddress));

            if (num >= 0)
            {
                this.neverClutterSenders.RemoveAt(num);
                this.isDirty = true;
                return(true);
            }
            return(false);
        }
        public void Add(SmtpAddress smtpAddress)
        {
            ClutterUtilities.ValidateSmtpAddress(smtpAddress);
            int num = this.neverClutterSenders.FindIndex((SmtpAddress sender) => sender.Equals(smtpAddress));

            if (num >= 0)
            {
                this.neverClutterSenders.RemoveAt(num);
            }
            this.neverClutterSenders.Add(smtpAddress);
            this.isDirty = true;
            if (this.neverClutterSenders.Count > 1024)
            {
                this.neverClutterSenders.RemoveAt(0);
            }
        }
 public bool Contains(SmtpAddress smtpAddress)
 {
     ClutterUtilities.ValidateSmtpAddress(smtpAddress);
     return(this.neverClutterSenders.Contains(smtpAddress));
 }