oc-mail: activate user context needed
Before creating new sogo objects
This commit is contained in:
parent
f4e3b98042
commit
68ae978b13
|
@ -494,6 +494,7 @@ static Class NSArrayK, MAPIStoreAppointmentWrapperK;
|
||||||
folder = [sogoObject container];
|
folder = [sogoObject container];
|
||||||
|
|
||||||
/* reinstantiate the old sogo object and attach it to self */
|
/* reinstantiate the old sogo object and attach it to self */
|
||||||
|
[[self userContext] activate];
|
||||||
woContext = [[self userContext] woContext];
|
woContext = [[self userContext] woContext];
|
||||||
if (isNew)
|
if (isNew)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1614,6 +1614,8 @@ _compareBodyKeysByPriority (id entry1, id entry2, void *data)
|
||||||
max = [keyParts count];
|
max = [keyParts count];
|
||||||
if (max > 0)
|
if (max > 0)
|
||||||
{
|
{
|
||||||
|
[[self userContext] activate];
|
||||||
|
|
||||||
currentPart = [sogoObject lookupName: [keyParts objectAtIndex: 0]
|
currentPart = [sogoObject lookupName: [keyParts objectAtIndex: 0]
|
||||||
inContext: nil
|
inContext: nil
|
||||||
acquire: NO];
|
acquire: NO];
|
||||||
|
|
|
@ -1077,6 +1077,7 @@ MakeMessageBody (NSDictionary *mailProperties, NSDictionary *attachmentParts, NS
|
||||||
dd = [activeUser domainDefaults];
|
dd = [activeUser domainDefaults];
|
||||||
from = [[activeUser allEmails] objectAtIndex: 0];
|
from = [[activeUser allEmails] objectAtIndex: 0];
|
||||||
|
|
||||||
|
[[self userContext] activate];
|
||||||
woContext = [[self userContext] woContext];
|
woContext = [[self userContext] woContext];
|
||||||
authenticator = [sogoObject authenticatorInContext: woContext];
|
authenticator = [sogoObject authenticatorInContext: woContext];
|
||||||
error = [[SOGoMailer mailerWithDomainDefaults: dd]
|
error = [[SOGoMailer mailerWithDomainDefaults: dd]
|
||||||
|
|
Loading…
Reference in a new issue