public static StripEmailHeaderProperties ( string strVar ) : String | ||
strVar | string | String to process. |
리턴 | String |
public static String StripEmailHeaderProperties(string strVar)
{
string retVal = strVar;
if (FixNull(strVar) != string.Empty)
{
retVal = HttpUtility.HtmlDecode(retVal);
List<string> badWords = new List<string>();
badWords.Add("x-mailer:");
badWords.Add("x-rcpt-to:");
badWords.Add("x-uidl:");
badWords.Add("content-transfer-encoding:");
badWords.Add("content-type:");
badWords.Add("mime-version:");
badWords.Add("x-sender:");
badWords.Add("bcc:");
badWords.Add("cc:");
badWords.Add("x-receiver:");
for (int x = 0; x < badWords.Count; x++)
{
retVal = retVal.Replace(badWords[x], "");
}
}
return retVal;
}