From: Guilhem Moulin Date: Tue, 28 May 2019 14:46:41 +0000 (+0200) Subject: tests/run: use the current date as Message-ID in `sample_message`. X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=a07043f308ee91223b1048a6ca1c878c31b0f83a;p=interimap.git tests/run: use the current date as Message-ID in `sample_message`. A random 128-bit UUID obtained from /proc/sys/kernel/random/uuid works too but is Linux-specific and requires the proc(5) pseudo-filesystem to be mounted at /proc. --- diff --git a/tests/run b/tests/run index 91319f3..fca4919 100755 --- a/tests/run +++ b/tests/run @@ -133,11 +133,12 @@ doveadm() { # Sample (random) message sample_message() { + local date="$(date +"%s.%N")" cat <<-EOF From: To: - Date: $(date -R) - Message-ID: <$(< /proc/sys/kernel/random/uuid)@example.net> + Date: $(date -R -d@"$date") + Message-ID: <$date@example.net> EOF local len="$(shuf -i1-4096 -n1)"