mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-12 18:31:23 +00:00
Monotone-Parent: 730c8a73525c070f1f66243a9c692f2ee0adbcd0
Monotone-Revision: be5e3b15cde44245718151c5191d6eb1a73b061b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-12-07T16:16:01 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2009-12-07 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/PreferencesUI/UIxPreferences.m (-defaultAction):
|
||||
setVacationOptions: and setForwardOptions: are now set from here.
|
||||
|
||||
* SoObjects/SOGo/SOGoDomainDefaults.m (-forwardEnabled)
|
||||
(-vacationEnabled): we must query "SOGoForwardEnabled" and
|
||||
"SOGoVacationEnabled", respectively.
|
||||
|
||||
2009-12-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoUserDefaults.m (+initialize): we need to
|
||||
|
||||
@@ -152,12 +152,12 @@
|
||||
|
||||
- (BOOL) forwardEnabled
|
||||
{
|
||||
return [self boolForKey: @"SOGoForceIMAPLoginWithEmail"];
|
||||
return [self boolForKey: @"SOGoForwardEnabled"];
|
||||
}
|
||||
|
||||
- (BOOL) vacationEnabled
|
||||
{
|
||||
return [self boolForKey: @"SOGoForceIMAPLoginWithEmail"];
|
||||
return [self boolForKey: @"SOGoVacationEnabled"];
|
||||
}
|
||||
|
||||
- (NSString *) mailingMechanism
|
||||
|
||||
@@ -87,20 +87,14 @@
|
||||
{
|
||||
vacationOptions = [[userDefaults vacationOptions] mutableCopy];
|
||||
if (!vacationOptions)
|
||||
{
|
||||
vacationOptions = [NSMutableDictionary new];
|
||||
[userDefaults setVacationOptions: vacationOptions];
|
||||
}
|
||||
vacationOptions = [NSMutableDictionary new];
|
||||
}
|
||||
|
||||
if ([dd forwardEnabled])
|
||||
{
|
||||
forwardOptions = [[userDefaults forwardOptions] mutableCopy];
|
||||
if (!forwardOptions)
|
||||
{
|
||||
forwardOptions = [NSMutableDictionary new];
|
||||
[userDefaults setForwardOptions: forwardOptions];
|
||||
}
|
||||
forwardOptions = [NSMutableDictionary new];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -875,6 +869,7 @@
|
||||
id <WOActionResults> results;
|
||||
WORequest *request;
|
||||
NSString *method;
|
||||
SOGoDomainDefaults *dd;
|
||||
|
||||
request = [context request];
|
||||
if ([[request method] isEqualToString: @"POST"])
|
||||
@@ -882,7 +877,13 @@
|
||||
SOGoMailAccount *account;
|
||||
id mailAccounts;
|
||||
id folder;
|
||||
|
||||
|
||||
dd = [[context activeUser] domainDefaults];
|
||||
if ([dd vacationEnabled])
|
||||
[userDefaults setVacationOptions: vacationOptions];
|
||||
if ([dd forwardEnabled])
|
||||
[userDefaults setForwardOptions: forwardOptions];
|
||||
|
||||
[userDefaults synchronize];
|
||||
|
||||
mailAccounts = [[[context activeUser] mailAccounts] objectAtIndex: 0];
|
||||
|
||||
Reference in New Issue
Block a user