30 lines
479 B
C#
30 lines
479 B
C#
using System.Collections.Generic;
|
|
|
|
namespace smtpproxy.net;
|
|
|
|
public class Email
|
|
{
|
|
public string FromIP;
|
|
|
|
public string sHELO;
|
|
|
|
public string sMAIL;
|
|
|
|
public string sDATA;
|
|
|
|
public List<string> sRCPTs;
|
|
|
|
public string GetRecipientEmail(string sRCPTTo)
|
|
{
|
|
return sRCPTTo.ToLower().Replace("rcpt to:", "").Replace("<", "")
|
|
.Replace(">", "")
|
|
.Replace("\r", "")
|
|
.Replace("\n", "");
|
|
}
|
|
|
|
public Email()
|
|
{
|
|
sRCPTs = new List<string>();
|
|
}
|
|
}
|