mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-08 13:05:28 +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:
@@ -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