From 54bed5e78cacc017ad95521f3a50ebcfe344895d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 18 Nov 2019 03:41:08 +0100 Subject: pullimap: Fix mangling of data lines starting with a dot. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tests/run | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/run') 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: + From: <$(xxd -ps -l6 /dev/urandom)@example.net> + To: Date: $(date -R -d@"$date") Message-ID: <$date@example.net> -- cgit v1.2.3