X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/31f5b3492bde6a055c0c349a3d46718bd5a7e4f0..6e48a63849cd3f1dfb3555fe57094954b3f7f092:/src/src/spool_out.c diff --git a/src/src/spool_out.c b/src/src/spool_out.c index 8531112c0..d5cad86d4 100644 --- a/src/src/spool_out.c +++ b/src/src/spool_out.c @@ -3,7 +3,7 @@ *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2018 */ -/* Copyright (c) The Exim Maintainers 2020 */ +/* Copyright (c) The Exim Maintainers 2020 - 2021 */ /* See the file NOTICE for conditions of use and distribution. */ /* Functions for writing spool files, and moving them about. */ @@ -120,8 +120,14 @@ return z; static void spool_var_write(FILE * fp, const uschar * name, const uschar * val) { -if (is_tainted(val)) putc('-', fp); -fprintf(fp, "-%s %s\n", name, val); +putc('-', fp); +if (is_tainted(val)) + { + int q = quoter_for_address(val); + putc('-', fp); + if (is_real_quoter(q)) fprintf(fp, "(%s)", lookup_list[q]->name); + } +fprintf(fp, "%s %s\n", name, val); } /*************************************************