mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 20:37:14 +00:00
Allow exception raising when connecting to IMAP
By setting `SoIMAP4ExceptionsEnabled` config key to YES Enabled for OpenChange by default, it will ensure no action is taken when IMAP connection is not valid.
This commit is contained in:
1 parent
13a82826f8
commit
061244a0a5
3 files changed
+43
-2
No files matched your search
@@ -172,6 +172,11 @@ sogo_backend_init (void)
|
||||
|
||||
/* We force the plugin to base its configuration on the SOGo tree. */
|
||||
ud = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
/* Ensure imap4Connection calls raise Exception if
|
||||
IMAP connection is not established. See NGImap4Connection.m */
|
||||
[ud setBool: YES forKey: @"SoIMAP4ExceptionsEnabled"];
|
||||
|
||||
if (!leakDebugging && [ud boolForKey: @"SOGoDebugLeaks"])
|
||||
{
|
||||
NSLog (@" leak debugging on");
|
||||
|
||||
Reference in new issue
Block a user