fix the case of duplicated sent archive recipients
authorIan Kelling <ian@iankelling.org>
Fri, 30 Sep 2022 20:54:02 +0000 (16:54 -0400)
committerIan Kelling <ian@iankelling.org>
Fri, 30 Sep 2022 20:54:02 +0000 (16:54 -0400)
mail-setup

index 0a885ca2500df744fe6a329608429f2a3fe25322..bbe0defeb3f803a1cedf759c9b1e62f6c77389a0 100755 (executable)
@@ -3556,10 +3556,12 @@ EOF
 
     # Dont put these test messages into the sent folder or else it will
     # overwhelm it, plus i dont want to save a copy at all.
-    rm -f /etc/exim4/ignore-sent
-    for t in ${test_tos[@]}; do
-      echo $t >> /etc/exim4/ignore-sent
-    done
+    # Plus addresses we generally want to ignore.
+    i /etc/exim4/ignore-sent <<EOF
+$(printf "%s\n" ${test_tos[@]})
+vojdedIdNejyebni@b8.nz
+b@eximbackup.b8.nz
+EOF
 
     cat >/usr/local/bin/send-test-forward <<'EOF'
 #!/bin/bash