private void GetBody(long uid)
 {
     lock (EmailList)
     {
         var emailView = EmailList[uid.ToString()];
         if (emailView.Text == null)
         {
             lock (imap)
             {
                 BodyStructure structure = imap.GetBodyStructureByUID(uid);
                 string        text = null, html = null;
                 if (structure.Text != null)
                 {
                     text = imap.GetTextByUID(structure.Text);
                 }
                 if (structure.Html != null)
                 {
                     html = imap.GetTextByUID(structure.Html);
                 }
                 EmailViewManager.SetBody(ref emailView, text, html);
                 ListChanged = true;
             }
         }
     }
 }
 private void GetBody(string uid)
 {
     lock (EmailList)
     {
         var emailView = EmailList[uid.ToString()];
         if (emailView.Text == null)
         {
             lock (pop)
             {
                 MailBuilder builder = new MailBuilder();
                 IMail       email   = builder.CreateFromEml(
                     pop.GetMessageByUID(uid));
                 EmailViewManager.SetBody(ref emailView, email.Text, email.Html);
                 ListChanged = true;
             }
         }
     }
 }