mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
a8057812a3
The output changed (due to a slight change in version); hence we need to adjust the output of the dump.
20 lines
496 B
Bash
20 lines
496 B
Bash
#! /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
|
|
|
|
if [[ -d /var/lib/getmail ]]; then
|
|
GETMAILDIR=/var/lib/getmail
|
|
else
|
|
mkdir -p /tmp/docker-mailserver/getmail
|
|
GETMAILDIR=/tmp/docker-mailserver/getmail
|
|
fi
|
|
|
|
for FILE in /etc/getmailrc.d/getmailrc*; do
|
|
getmail --getmaildir "${GETMAILDIR}" --rcfile "${FILE}" --dump | tail -n +6
|
|
done
|