add filter for sender and subject
parent
4f83c0129e
commit
d970dcf602
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue