Emailmodule. Receive mailbox dependis on prim having email event on scripts; send via smpt or to external prims are now options. The ini section name smtp is not wrong"

This commit is contained in:
UbitUmarov
2022-03-18 16:15:07 +00:00
parent a2f7a3e34a
commit d06efefb48
5 changed files with 95 additions and 57 deletions

View File

@@ -3106,6 +3106,12 @@ namespace OpenSim.Region.Framework.Scenes
{
if((ev & (scriptEvents.anyTarget)) != 0 && ParentGroup != null)
ParentGroup.RemoveScriptTargets(scriptid);
if ((AggregatedScriptEvents & scriptEvents.email) != 0)
{
IEmailModule scriptEmail = ParentGroup.Scene.RequestModuleInterface<IEmailModule>();
if (scriptEmail != null)
scriptEmail.RemovePartMailBox(UUID);
}
m_scriptEvents.Remove(scriptid);
aggregateScriptEvents();
}
@@ -5384,7 +5390,14 @@ namespace OpenSim.Region.Framework.Scenes
m_localFlags = (PrimFlags)objectflagupdate;
if (ParentGroup != null && ParentGroup.RootPart == this)
if ((AggregatedScriptEvents & scriptEvents.email) != 0)
{
IEmailModule imm = ParentGroup.Scene.RequestModuleInterface<IEmailModule>();
if (imm != null)
imm.AddPartMailBox(UUID);
}
if (ParentGroup.RootPart == this)
{
ParentGroup.aggregateScriptEvents();
}