From c3384185a97c89471c6efc9a36e969b3bda1da79 Mon Sep 17 00:00:00 2001 From: casperklein Date: Tue, 13 Aug 2024 02:12:19 +0200 Subject: [PATCH] add rc file name to output --- target/bin/debug-getmail | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/bin/debug-getmail b/target/bin/debug-getmail index 3d52343c..33d41893 100644 --- a/target/bin/debug-getmail +++ b/target/bin/debug-getmail @@ -16,6 +16,9 @@ GETMAIL_DIR=/var/lib/getmail # If the nullglob option is set, and no matches are found, the word is removed. shopt -s nullglob +# Dump configuration from each RC file. for RC_FILE in /etc/getmailrc.d/*; do + echo "${RC_FILE##*/}:" + echo getmail --getmaildir "${GETMAIL_DIR}" --rcfile "${RC_FILE}" --dump | tail -n +6 done