docker-mailserver/target/bin/getmail-cron
2023-05-24 09:06:59 +02:00

9 lines
188 B
Bash

#! /bin/bash
for FILE in /etc/getmailrc.d/getmailrc*
do
if ! pgrep -f "${FILE}$" &>/dev/null; then
/usr/local/bin/getmail --getmaildir /var/lib/getmail --rcfile "${FILE}"
fi
done