mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-23 15:32:37 +00:00
New feature : 1496; Unknown outgoing email addresses can now be automatically be added to your address books.
This commit is contained in:
1 parent
31ace947cb
commit
76307cfaaf
13 files changed
+405
-94
No files matched your search
@@ -52,6 +52,7 @@
|
||||
|
||||
SOGoIMAPServer = "localhost";
|
||||
SOGoMailDomain = "localhost";
|
||||
SOGoSelectedAddressBook = "collected";
|
||||
SOGoMailMessageCheck = "manually";
|
||||
SOGoMailMessageForwarding = "inline";
|
||||
SOGoMailReplyPlacement = "below";
|
||||
|
||||
@@ -221,20 +221,17 @@ static SoSecurityManager *sm = nil;
|
||||
NSException *error;
|
||||
|
||||
cm = [GCSChannelManager defaultChannelManager];
|
||||
folderLocation
|
||||
= [[GCSFolderManager defaultFolderManager] folderInfoLocation];
|
||||
folderLocation = [[GCSFolderManager defaultFolderManager] folderInfoLocation];
|
||||
fc = [cm acquireOpenChannelForURL: folderLocation];
|
||||
if ([fc isOpen])
|
||||
{
|
||||
gcsFolderType = [[self class] gcsFolderType];
|
||||
|
||||
sql
|
||||
= [NSString stringWithFormat: (@"SELECT c_path4 FROM %@"
|
||||
@" WHERE c_path2 = '%@'"
|
||||
@" AND c_folder_type = '%@'"),
|
||||
[folderLocation gcsTableName],
|
||||
owner,
|
||||
gcsFolderType];
|
||||
sql = [NSString stringWithFormat: (@"SELECT c_path4 FROM %@"
|
||||
@" WHERE c_path2 = '%@'"
|
||||
@" AND c_folder_type = '%@'"),
|
||||
[folderLocation gcsTableName], owner, gcsFolderType];
|
||||
|
||||
error = [self _fetchPersonalFolders: sql withChannel: fc];
|
||||
[cm releaseChannel: fc];
|
||||
// sql = [sql stringByAppendingFormat:@" WHERE %@ = '%@'",
|
||||
@@ -248,6 +245,7 @@ static SoSecurityManager *sm = nil;
|
||||
return error;
|
||||
}
|
||||
|
||||
|
||||
- (NSException *) appendSystemSources
|
||||
{
|
||||
return nil;
|
||||
@@ -386,14 +384,17 @@ static SoSecurityManager *sm = nil;
|
||||
if (!subFolders)
|
||||
{
|
||||
subFolders = [NSMutableDictionary new];
|
||||
error = [self appendPersonalSources];
|
||||
error = [self appendPersonalSources];
|
||||
if (!error)
|
||||
error = [self appendSystemSources];
|
||||
if ([self respondsToSelector:@selector(appendCollectedSources)])
|
||||
error = [self appendCollectedSources];
|
||||
if (!error)
|
||||
error = [self appendSystemSources]; // TODO : Not really a testcase, see function
|
||||
if (error)
|
||||
{
|
||||
[subFolders release];
|
||||
subFolders = nil;
|
||||
}
|
||||
{
|
||||
[subFolders release];
|
||||
subFolders = nil;
|
||||
}
|
||||
}
|
||||
else
|
||||
error = nil;
|
||||
|
||||
@@ -87,6 +87,9 @@ extern NSString *SOGoWeekStartFirstFullWeek;
|
||||
- (NSString *) language;
|
||||
|
||||
/* mail */
|
||||
- (void) setMailAddOutgoingAddresses: (BOOL) newValue;
|
||||
- (BOOL) mailAddOutgoingAddresses;
|
||||
|
||||
- (void) setMailShowSubscribedFoldersOnly: (BOOL) newValue;
|
||||
- (BOOL) mailShowSubscribedFoldersOnly;
|
||||
|
||||
@@ -111,6 +114,9 @@ extern NSString *SOGoWeekStartFirstFullWeek;
|
||||
- (void) setMailListViewColumnsOrder: (NSArray *) newValue;
|
||||
- (NSArray *) mailListViewColumnsOrder;
|
||||
|
||||
- (void) setSelectedAddressBook: (NSString *) newValue;
|
||||
- (NSString *) selectedAddressBook;
|
||||
|
||||
- (void) setMailMessageCheck: (NSString *) newValue;
|
||||
- (NSString *) mailMessageCheck;
|
||||
|
||||
|
||||
@@ -185,8 +185,8 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
||||
{
|
||||
migratedKeys
|
||||
= [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
@"SOGoLoginModule", @"SOGoUIxDefaultModule",
|
||||
@"SOGoLoginModule", @"SOGoDefaultModule",
|
||||
@"SOGoLoginModule", @"SOGoUIxDefaultModule",
|
||||
@"SOGoLoginModule", @"SOGoDefaultModule",
|
||||
@"SOGoTimeFormat", @"TimeFormat",
|
||||
@"SOGoShortDateFormat", @"ShortDateFormat",
|
||||
@"SOGoLongDateFormat", @"LongDateFormat",
|
||||
@@ -197,6 +197,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
||||
@"SOGoLanguage", @"SOGoDefaultLanguage",
|
||||
@"SOGoLanguage", @"Language",
|
||||
@"SOGoMailComposeMessageType", @"ComposeMessagesType",
|
||||
@"SOGoSelectedAddressBook", @"SelectedAddressBook",
|
||||
@"SOGoMailMessageCheck", @"MessageCheck",
|
||||
@"SOGoMailMessageForwarding", @"MessageForwarding",
|
||||
@"SOGoMailSignature", @"MailSignature",
|
||||
@@ -384,6 +385,16 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
||||
return userLanguage;
|
||||
}
|
||||
|
||||
- (void) setMailAddOutgoingAddresses: (BOOL) newValue
|
||||
{
|
||||
[self setBool: newValue forKey: @"SOGoMailAddOutgoingAddresses"];
|
||||
}
|
||||
|
||||
- (BOOL) mailAddOutgoingAddresses
|
||||
{
|
||||
return [self boolForKey: @"SOGoMailAddOutgoingAddresses"];
|
||||
}
|
||||
|
||||
- (void) setMailShowSubscribedFoldersOnly: (BOOL) newValue
|
||||
{
|
||||
[self setBool: newValue forKey: @"SOGoMailShowSubscribedFoldersOnly"];
|
||||
@@ -467,6 +478,16 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
||||
return [self stringArrayForKey: @"SOGoMailListViewColumnsOrder"];
|
||||
}
|
||||
|
||||
- (void) setSelectedAddressBook:(NSString *) newValue
|
||||
{
|
||||
[self setObject: newValue forKey: @"SOGoSelectedAddressBook"];
|
||||
}
|
||||
|
||||
- (NSString *) selectedAddressBook
|
||||
{
|
||||
return [self stringForKey: @"SOGoSelectedAddressBook"];
|
||||
}
|
||||
|
||||
- (void) setMailMessageCheck: (NSString *) newValue
|
||||
{
|
||||
[self setObject: newValue forKey: @"SOGoMailMessageCheck"];
|
||||
|
||||
Reference in new issue
Block a user