chunk-separator specification. This was broken by hardening introduced
for Bug 3031.
+JH/07 Bug 3050: Fix -bp for old message_id format spoolfiles. Previously it
+ included the -H with the id; this also messed up exiqgrep.
+
Exim version 4.97
if (option == QL_MSGID_ONLY) /* Print only the message IDs from the chain */
for (; qf; qf = qf->next)
- fprintf(stdout, "%.*s\n", MESSAGE_ID_LENGTH, qf->text);
+ fprintf(stdout, "%.*s\n",
+ is_old_message_id(qf->text) ? MESSAGE_ID_LENGTH_OLD : MESSAGE_ID_LENGTH,
+ qf->text);
else for (;
qf && (reset_point = store_mark());
}
fprintf(stdout, "%s %.*s",
- string_format_size(size, big_buffer), MESSAGE_ID_LENGTH, qf->text);
+ string_format_size(size, big_buffer),
+ is_old_message_id(qf->text) ? MESSAGE_ID_LENGTH_OLD : MESSAGE_ID_LENGTH,
+ qf->text);
if (env_read && sender_address)
{
s/250-AUTH ANONYMOUS PLAIN SCRAM-SHA-1\K SCRAM-SHA-256//;
# mailq times change with when the run is done, vs. static-source spoolfiles
- s/\s*\d*[hd](?= 317 [0-9A-Za-z\-]{23} <nobody\@test.ex>)/DDd/;
+ s/\s*\d*[hd](?= 317 (?:[-0-9A-Za-z]{23}|[-0-9A-Za-z]{16}) <nobody\@test.ex>)/DDd/;
+ # mailq sizes change with caller running the test
+ s/\s[01]m [34]\d\d(?= (?:[-0-9A-Za-z]{23}|[-0-9A-Za-z]{16}) <CALLER\@the.local.host.name>)/ 1m 396/;
# Not all builds include EXPERIMENTAL_DSN_INFO (1 of 2)
if (/^X-Exim-Diagnostic:/)
-# max_parallel on transport
+# max_parallel on transport; exiqgrep
need_ipv4
#
# Remote transport:
# message ID format manipulation
# This testcase is for the 4.97 message-id format changeover
-# should can be dropped after a few further releases.
+# should be dropped after a few further releases.
#
# Ensure spooldir exists
sudo mkdir -p DIR/spool/input
sudo cp DIR/aux-fixed/TESTNUM/* DIR/spool/input/
sudo chown -R EXIMUSER:EXIMGROUP DIR/spool/input/
sudo chmod -R 640 DIR/spool/input/*
+exim -bp
+****
exim -q
****
#
#
### done
no_msglog_check
+no_stderr_check
+++ /dev/null
-### Check that delivery of old-format spoolfiles works
-### Check that the format-mangler utility can downgrade spoolfiles
-### Check that the format-mangler utility can upgrade spoolfiles
-### done
-
-******** SERVER ********
-### Check that delivery of old-format spoolfiles works
-### Check that the format-mangler utility can downgrade spoolfiles
-### Check that the format-mangler utility can upgrade spoolfiles
-### done
### Check that delivery of old-format spoolfiles works
+TTT sss 10HmaX-0005vi-00-H <nobody@test.ex>
+ nulldeliver@test.ex
+
### Check that the format-mangler utility can downgrade spoolfiles
TTT sss 10HmaX-000000005vi-0000 <CALLER@the.local.host.name>
nulldeliver@test.ex