diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2019-05-28 16:46:41 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2019-05-28 16:46:41 +0200 |
commit | a07043f308ee91223b1048a6ca1c878c31b0f83a (patch) | |
tree | bdda06780d21e0da733f460319738dc29bb9b958 /tests/run | |
parent | 2761465d3bde7e326ffd3cb2c9bb480144f5a72d (diff) |
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.
Diffstat (limited to 'tests/run')
-rwxr-xr-x | tests/run | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -133,11 +133,12 @@ doveadm() { # Sample (random) message sample_message() { + local date="$(date +"%s.%N")" cat <<-EOF From: <sender@example.net> To: <recipient@example.net> - 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)" |