mkdir -p $td
}
+record-probing-start () {
+ record-probing "$@"
+ if ! [ -e "$td/started" ]; then
+ date -R >"$td/started"
+ fi
+}
+
record-outcome () {
local probeid=$1
local outcome=$2
local addr=$2
local td
- record-probing "mx=$mx,addr=$addr"
+ record-probing-start "mx=$mx,addr=$addr"
set +e
swaks --to "${GROUP//./-}@$domain" \
probe-domain () {
local domain=$1
local td
- record-probing dns
+ record-probing-start dns
set +e
adnshost -Fi -Tn +Do +Dt -t mx $domain >$td/dns
The moderation relay probe
$info
+END
+
+ if [ -e "$attempt/started" ]; then
+ local started
+ read started <"$attempt/started"
+ cat >>"$email" <<END
+started at
+ $started
+END
+ fi
+
+ cat >>"$email" <<END
resulted in the outcome
$outcome
END
--$delim
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline; filename="${log##*/}"
+Content-Description: "${log##*/}"
Content-Transfer-Encoding: 8bit
END