diff options
author | 2025-02-03 22:01:03 +0100 | |
---|---|---|
committer | 2025-02-05 19:38:51 +0100 | |
commit | 07835619e8e3f0d62eedeff5a9e172f32d9f4099 (patch) | |
tree | 986d2e9d3bee6713431e56dabb974407d5725492 | |
parent | Have Fredrick only reply to 25% of mailing list posts (diff) |
Make Fredrick go for walks before replying to some e-mails
-rw-r--r-- | ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 b/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 index 609d37f..90ebe04 100644 --- a/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 +++ b/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 @@ -107,7 +107,8 @@ case $RECIPIENT in at -q z -f "$ATSCRIPT" now + 1 min ;; *) - at -q z -f "$ATSCRIPT" now + 20 min + reply_delay=$(awk 'BEGIN { srand(); print (rand() * 100) + 20 }') + at -q z -f "$ATSCRIPT" now + "$reply_delay" min ;; esac rm "$ATSCRIPT" |