Updates for Dovecot support

Also deletes old message digests, stops sending smartphone alerts
during quiet hours