mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
fix order of doveadm paramters
Fixes #1267 also remove u prefix from exception string.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user