aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-11-18 03:41:08 +0100
committerGuilhem Moulin <guilhem@fripost.org>2019-11-18 04:37:21 +0100
commit54bed5e78cacc017ad95521f3a50ebcfe344895d (patch)
treef040957c8aa17da16d9623b27ef9fbc6408a290c /tests/run
parentee040747f5f8b096f6c6ea3172826fd4c3c14053 (diff)
pullimap: Fix mangling of data lines starting with a dot.
Some LMTP servers, Dovecot's in particular, trims leading dots that are not doubled (e.g. “.foo” would become “foo”). In RFC 5322 sec. 4.5.2 explicitly says that when an RFC 5322 line starts with a '.', the character needs to be doubled.
Diffstat (limited to 'tests/run')
-rwxr-xr-xtests/run6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/run b/tests/run
index 30d20f9..a34e4a9 100755
--- a/tests/run
+++ b/tests/run
@@ -235,11 +235,9 @@ sqlite3() {
# Sample (random) message
sample_message() {
local date="$(date +"%s.%N")"
- # also try non-conventional addresses for pullimap
- local sender="$(shuf -n1 -e "sender" "first.last" "foo-bar" \"\" "\"x\\\" #&\\\\y\"" )"
cat <<-EOF
- From: <$sender@example.net>
- To: <recipient@example.net>
+ From: <$(xxd -ps -l6 /dev/urandom)@example.net>
+ To: <me@example.net>
Date: $(date -R -d@"$date")
Message-ID: <$date@example.net>