Ejemplo n.º 1
0
        } //Safe

        public void FetchAndSaveMails(Label label, Int64 fromUid, Int64 toUid, ref Int32 amountOfMails)
        {
            List <Mail> mails = this.MyFetcher.GetMailsBetweenUID(label.Entity.Name, (int)fromUid, (int)toUid);

            foreach (Mail mail in mails)
            {
                mail.Entity.MailAccountEntity = this.Entity;
            }
            MailAccount.Save(mails);
            amountOfMails = mails.Count;
        }