aboutsummaryrefslogtreecommitdiff
path: root/flakes/private/monitoring/send_mails
blob: 105c505f78f700db1b435957570f319e3c460523 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

CHECK_DIR=$1
shift
RETURN_PATH=$1
shift

for mail in "$@"; do
  echo "Test Mail" | MAILRC=/dev/null mail -n -r "$RETURN_PATH" -s "TestMailImmae " "$mail"
done

if [ -d "$CHECK_DIR" ]; then
  cd $CHECK_DIR
  stat -c '%n;%y' *
fi