VMM/password: list_schemes(): report suffixes with a leading dot. v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Mon, 07 Nov 2011 02:43:07 +0000
branchv0.6.x
changeset 464 7d4d79ff08d0
parent 463 b175c9f62602
child 466 863c691d7d14
VMM/password: list_schemes(): report suffixes with a leading dot.
VirtualMailManager/password.py
--- a/VirtualMailManager/password.py	Mon Nov 07 02:40:10 2011 +0000
+++ b/VirtualMailManager/password.py	Mon Nov 07 02:43:07 2011 +0000
@@ -360,7 +360,7 @@
     dcv = cfg_dget('misc.dovecot_version')
     schemes = (k for (k, v) in _scheme_info.iteritems() if v[1] <= dcv)
     if dcv >= 0x10100a01:
-        encodings = DEFAULT_B64[1:] + DEFAULT_HEX[1:]
+        encodings = ('.B64', '.BASE64', '.HEX')
     else:
         encodings = ()
     return schemes, encodings