docker-mailserver/target/bin/getmail-cron
2023-12-21 17:47:17 +01:00

8 lines
174 B
Bash

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