/// <summary> /// 彻底删除邮件 /// </summary> /// <param name="keyValue">主键</param> /// <param name="emailType">邮件类型:unreadMail starredMail draftMail recycleMail addresseeMail sendMail</param> public void ThoroughRemoveForm(string keyValue, string emailType) { try { switch (emailType) { case "unreadMail": break; case "starredMail": break; case "draftMail": service.RemoveDraftForm(keyValue); break; case "recycleMail": EmailContentEntity emailcontententity = this.GetEntity(keyValue); if (emailcontententity == null) { service.ThoroughRemoveAddresseeForm(keyValue); } else { service.ThoroughRemoveSentForm(keyValue); } break; case "addresseeMail": service.ThoroughRemoveAddresseeForm(keyValue); break; case "sendMail": service.ThoroughRemoveSentForm(keyValue); break; default: break; } } catch (Exception) { throw; } }