summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Finch <dot@dot.at>2008-07-18 17:55:42 +0000
committerTony Finch <dot@dot.at>2008-07-18 17:55:42 +0000
commit89dec7b604c1d16d8762e99443ba7bf2a3086c21 (patch)
treee67e26eabd7f8b3227d08ccf0f7aadc96244cdd1
parented2a48660e22ce41fc7ca692743531ffdca57868 (diff)
Leading white space used to be stripped from $spam_report which
wrecked the formatting. Now it is preserved.
-rw-r--r--doc/doc-txt/ChangeLog5
-rw-r--r--src/src/spam.c11
2 files changed, 7 insertions, 9 deletions
diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index 29bb9a5e3..9ca31ea08 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -1,4 +1,4 @@
-$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.548 2008/05/16 12:22:08 nm4 Exp $
+$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.549 2008/07/18 17:55:42 fanf2 Exp $
Change log file for Exim from version 4.21
-------------------------------------------
@@ -54,7 +54,8 @@ NM/05 Bugzilla 437: Prevent Maildix aux files being created with mode 000
NM/05 Bugzilla 598: Improvedment to Dovecot authenticator handling.
Patch provided by Jan Srzednicki
-
+TF/05 Leading white space used to be stripped from $spam_report which
+ wrecked the formatting. Now it is preserved.
Exim version 4.69
diff --git a/src/src/spam.c b/src/src/spam.c
index 4b480fd49..beec82363 100644
--- a/src/src/spam.c
+++ b/src/src/spam.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/spam.c,v 1.16 2008/01/28 13:14:48 tom Exp $ */
+/* $Cambridge: exim/src/src/spam.c,v 1.17 2008/07/18 17:55:42 fanf2 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -354,13 +354,10 @@ again:
*q = *p;
q++;
if (*p == '\n') {
- *q = '\t';
+ /* add an extra space after the newline to ensure
+ that it is treated as a header continuation line */
+ *q = ' ';
q++;
- /* eat whitespace */
- while( (*p <= ' ') && (*p != '\0') ) {
- p++;
- };
- p--;
};
p++;
};