Doc: Clear mailbox before deleting the user

This commit is contained in:
Chanvin Xiao 2022-06-22 20:06:37 +08:00
parent fab696dcd1
commit 1e6a587363
1 changed files with 1 additions and 0 deletions

View File

@ -631,6 +631,7 @@ Here's what that might look like:
def receiving_user(mail_admin):
user = mail_admin.create_user()
yield user
user.clear_mailbox()
mail_admin.delete_user(user)