fetch mails only then a script request mails

master
Christopher 2020-07-01 20:49:38 +02:00
parent 4a1b910942
commit 4f83c0129e
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,7 @@ namespace OpenSim.Modules.EMail
private bool IMAP_SERVER_SSL = false; private bool IMAP_SERVER_SSL = false;
private bool IMAP_SERVER_TLS = false; private bool IMAP_SERVER_TLS = false;
private bool m_requester = false;
#region ISharedRegionModule #region ISharedRegionModule
public string Name public string Name
@ -137,6 +138,9 @@ namespace OpenSim.Modules.EMail
private void checkForMails(object sender, ElapsedEventArgs f) private void checkForMails(object sender, ElapsedEventArgs f)
{ {
if (!m_requester)
return;
try try
{ {
if(m_debug) if(m_debug)
@ -276,6 +280,8 @@ namespace OpenSim.Modules.EMail
public Email GetNextEmail(UUID objectID, string sender, string subject) public Email GetNextEmail(UUID objectID, string sender, string subject)
{ {
m_requester = true;
SceneObjectPart sceneObject = m_scene.GetSceneObjectPart(objectID); SceneObjectPart sceneObject = m_scene.GetSceneObjectPart(objectID);
if(sceneObject != null) if(sceneObject != null)