# HG changeset patch # User Matthew Wild # Date 1294506500 0 # Node ID f663ea45436fd9815775844c484829fe53f2a965 # Parent b3bcd1913c85d905f4197381e47877a48b8dfe58 mod_auth_dovecot: Only check Dovecot major version. Bump log level from 'warn' to 'error'. (thanks Adrien Clerc) diff -r b3bcd1913c85 -r f663ea45436f mod_auth_dovecot/mod_auth_dovecot.lua --- a/mod_auth_dovecot/mod_auth_dovecot.lua Sat Jan 08 16:54:33 2011 +0000 +++ b/mod_auth_dovecot/mod_auth_dovecot.lua Sat Jan 08 17:08:20 2011 +0000 @@ -69,11 +69,10 @@ first = parts(); if (first == "VERSION") then -- Version should be 1.1 - local v1 = parts(); - local v2 = parts(); + local major_version = parts(); - if (not (v1 == "1" and v2 == "1")) then - log("warn", "server version is not 1.1. it is %s.%s", v1, v2); + if major_version ~= "1" then + log("error", "dovecot server version is not 1.x. it is %s.x", major_version); provider:close(); return false; end