docker-mailserver/target/bin/debug-getmail

14 lines
378 B
Plaintext
Raw Permalink Normal View History

#! /bin/bash
# shellcheck source=../scripts/helpers/log.sh
source /usr/local/bin/helpers/log.sh
# shellcheck source=../scripts/startup/setup-stack.sh
source /usr/local/bin/setup.d/getmail.sh
_setup_getmail
GETMAILDIR=/tmp/docker-mailserver/getmail
2023-05-26 14:00:40 +02:00
for FILE in /etc/getmailrc.d/getmailrc*; do
getmail --getmaildir "${GETMAILDIR}" --rcfile "${FILE}" --dump | tail -n +6
done