diff mod_auth_imap/auth_imap/mod_auth_imap.lua @ 1198:b21bd39c8a12

mod_auth_imap: Leave port nil if not specified in the config, so we can auto-detect based on whether we use SSL
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Sep 2013 18:11:44 +0100
parents f45ca6edc159
children 34216cdffda6
line wrap: on
line diff
--- a/mod_auth_imap/auth_imap/mod_auth_imap.lua	Thu Sep 26 18:10:41 2013 +0100
+++ b/mod_auth_imap/auth_imap/mod_auth_imap.lua	Thu Sep 26 18:11:44 2013 +0100
@@ -6,7 +6,7 @@
 local log = require "util.logger".init("auth_imap");
 
 local imap_host = module:get_option_string("imap_auth_host", "localhost");
-local imap_port = module:get_option_number("imap_auth_port", 143);
+local imap_port = module:get_option_number("imap_auth_port");
 
 
 local imap_service_realm = module:get_option("imap_service_realm");