/// <summary> /// 删除邮件 /// </summary> /// <param name="keyValue">主键</param> /// <param name="emailType">邮件类型:unreadMail starredMail draftMail recycleMail addresseeMail sendMail</param> public void RemoveForm(string keyValue, string emailType) { try { switch (emailType) { case "unreadMail": //未读 break; case "starredMail": //星标 break; case "draftMail": //草稿 service.RemoveDraftForm(keyValue); break; case "recycleMail": //回收 break; case "addresseeMail": //收件 service.RemoveAddresseeForm(keyValue); break; case "sendMail": //已发 service.RemoveSentForm(keyValue); break; default: break; } } catch (Exception) { throw; } }