diff --git a/tests/vagrant/ResetMail.sh b/tests/vagrant/ResetMail.sh new file mode 100644 index 0000000..2f94d5c --- /dev/null +++ b/tests/vagrant/ResetMail.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +echo 'Refreshing the test mailbox- this could take a minute.' + +sudo stop dovecot +[ -d "/home/testuser/Maildir" ] && sudo rm -R /home/testuser/Maildir +sudo cp -Rp /resources/Maildir /home/testuser/ +sudo chown -R testuser:testuser /home/testuser/Maildir +sudo start dovecot + +echo 'Test mailbox restored'. \ No newline at end of file