Added 'Sent' folder when creating user.

这个提交包含在:
Peter Timofejew
2015-10-12 09:43:35 -04:00
父节点 d6d4085809
当前提交 1bdfdbee89
+1 -1
查看文件
@@ -318,7 +318,7 @@ def add_mail_user(email, pw, privs, env):
conn.commit() conn.commit()
return ("Failed to initialize the user: " + e.output.decode("utf8"), 400) return ("Failed to initialize the user: " + e.output.decode("utf8"), 400)
for folder in ("INBOX", "Trash", "Spam", "Drafts"): for folder in ("INBOX", "Sent", "Trash", "Spam", "Drafts"):
if folder not in existing_mboxes: if folder not in existing_mboxes:
utils.shell('check_call', ["doveadm", "mailbox", "create", "-u", email, "-s", folder]) utils.shell('check_call', ["doveadm", "mailbox", "create", "-u", email, "-s", folder])