mailcow/data/Dockerfiles/dovecot/maildir_gc.sh

3 lines
154 B
Bash
Executable File

#!/bin/bash
[ -d /var/vmail/_garbage/ ] && /usr/bin/find /var/vmail/_garbage/ -mindepth 1 -maxdepth 1 -type d -cmin +${MAILDIR_GC_TIME} -exec rm -r {} \;