fix order of doveadm paramters

Fixes #1267

also remove u prefix from exception string.
This commit is contained in:
Andrew Fyfe
2018-01-12 15:32:31 +00:00
parent 68b3158d08
commit d4d403d4a0
+2 -2
View File
@@ -158,11 +158,11 @@ class Mailbox(AdminObject):
if curuser != mbowner:
options["sudo_user"] = mbowner
code, output = exec_cmd(
"doveadm user %s -f home" % self.full_address, **options
"doveadm user -f home %s" % self.full_address, **options
)
if code:
raise lib_exceptions.InternalError(
_(u"Failed to retrieve mailbox location (%s)") % output)
_("Failed to retrieve mailbox location (%s)") % output)
self.__mail_home = output.strip()
return self.__mail_home