#!/bin/sh

# autopkgtest check: smoke test of courier-imap.
# Author: Markus Wanner <markus@bluegap.ch>

set -eu

export LANG=C
unset LANGUAGE LC_ALL LC_CTYPE

# cleanup after running tests
finish() {
    service courier-imap stop
    service courier-authdaemon stop
}
trap finish EXIT

service courier-authdaemon start && echo " ... authdaemon started"
service courier-imap start && echo " ... courier-imap started"
service courier-imap status
