docker-mailserver/target/bin/getmail-cron
2023-05-26 14:00:40 +02:00

8 lines
189 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