add rc file name to output

This commit is contained in:
casperklein 2024-08-13 02:12:19 +02:00
parent 6d8744b9c4
commit c3384185a9
1 changed files with 3 additions and 0 deletions

View File

@ -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