Added "ResetMail.sh" to handle refreshing the test inboxes before and between tests

This commit is contained in:
Robert Hafner 2013-12-01 23:04:55 -08:00
parent 2a1c46e48d
commit 63a358bcfa

View File

@ -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'.