public BodyExtractor(ExtractorResultObject o, string mailBody, enumPlatFrom platform) : base() { // mailBody = Regex.Replace(mailBody,@"<br[/\s]?>", "%#%"); mailBody = Regex.Replace(mailBody, @"\s*<[^>]*>\s*", string.Empty);//replace html tags and blank lines // mailBody = Regex.Replace(mailBody, @"<[^>]*>", string.Empty);//replace html tags and blank lines this.mailBody = mailBody; if (o == null) o = new ExtractorResultObject(); resultObject = o; switch (platform) { case enumPlatFrom.Alibaba: extractRule = new ExtractorRuleAli(mailBody); break; case enumPlatFrom.MadeInChina: extractRule = new ExtractorRuleMic(mailBody); break; } }
public ContentExtractor(string emlPath) { resultObject = new ExtractorResultObject(); emlFilePath = emlPath; }