-e spamdpid: $spamdpid
-if [[ ! $spamdpid ]]; then
- echo $HOSTNAME mailtest spamd pid not found. systemctl status spamassassin:
- systemctl status spamassassin
-fi
-tmpfile=$(mktemp)
-declare -i unexpected=0
-for folder in ${folders[@]}; do
- for from in ${froms[@]}; do
- latest=
- last_sec=0
-
- if ! grep -rlFx "From: $from" $folder/{new,cur} >$tmpfile; then
- e "no message found from: $from"
- continue
- fi
- # webmail sends them to cur it seems
- while read -r file; do
- if [[ $file -nt $latest ]]; then
- latest=$file
+ fi
+ e spamdpid: $spamdpid
+ if [[ ! $spamdpid ]]; then
+ echo mailtest spamd pid not found. systemctl status spamassassin:
+ systemctl status spamassassin
+ fi
+ tmpfile=$(mktemp)
+ declare -i unexpected=0
+ declare -i missing_dnswl=0
+ for folder in ${folders[@]}; do
+ for from in ${froms[@]}; do
+ latest=
+ last_sec=0
+
+ if ! grep -rlFx "From: $from" $folder/{new,cur} >$tmpfile; then
+ echo "no message found from: $from"
+ continue