add filter for sender and subject

master
Christopher 2020-07-01 21:15:44 +02:00
parent 4f83c0129e
commit d970dcf602
1 changed files with 7 additions and 3 deletions

View File

@ -256,6 +256,7 @@ namespace OpenSim.Modules.EMail
using (var client = new SmtpClient())
{
client.CheckCertificateRevocation = false;
client.Timeout = 10;
if (SMTP_SERVER_SSL == true)
{
@ -309,9 +310,12 @@ namespace OpenSim.Modules.EMail
lslMessage.numLeft = messages.Count - 1;
if((lslMessage.sender == sender || sender == "") && (lslMessage.subject == subject || subject == ""))
{
m_messages.Remove(messages[0]);
return lslMessage;
}
}
else
{
if (m_debug)