git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Logging: add I= element to transport-defer lines. Bug 2675
[exim.git]
/
src
/
src
/
filtertest.c
diff --git
a/src/src/filtertest.c
b/src/src/filtertest.c
index 37fc13d45517c3b635e9e7eccd2b309f5523e992..a2a60a8dd8a5be996aa58bfbb025b634fdee5ca0 100644
(file)
--- a/
src/src/filtertest.c
+++ b/
src/src/filtertest.c
@@
-1,10
+1,8
@@
-/* $Cambridge: exim/src/src/filtertest.c,v 1.11 2008/12/18 13:13:54 michael Exp $ */
-
/*************************************************
* Exim - an Internet mail transport agent *
*************************************************/
/*************************************************
* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) University of Cambridge 1995 - 200
7
*/
+/* Copyright (c) University of Cambridge 1995 - 200
9
*/
/* See the file NOTICE for conditions of use and distribution. */
/* See the file NOTICE for conditions of use and distribution. */
@@
-49,7
+47,7
@@
header_size = message_size;
if (!dot_ended && !feof(stdin))
{
if (!dot_ended && !feof(stdin))
{
- if (!dot_ends)
+ if (!
f.
dot_ends)
{
while ((ch = getc(stdin)) != EOF)
{
{
while ((ch = getc(stdin)) != EOF)
{
@@
-97,7
+95,7
@@
if (!dot_ended && !feof(stdin))
if (s > message_body_end + message_body_visible) s = message_body_end;
message_size++;
}
if (s > message_body_end + message_body_visible) s = message_body_end;
message_size++;
}
- READ_END:
ch = ch; /* Some compilers don't like null statements */
+ READ_END:
;
}
if (s == message_body_end || s[-1] != '\n') body_linecount++;
}
}
if (s == message_body_end || s[-1] != '\n') body_linecount++;
}
@@
-114,7
+112,7
@@
if (body_len >= message_body_visible)
int above = message_body_visible - below;
if (above > 0)
{
int above = message_body_visible - below;
if (above > 0)
{
- uschar *temp = store_get(below);
+ uschar *temp = store_get(below
, TRUE
);
memcpy(temp, message_body_end, below);
memmove(message_body_end, s+1, above);
memcpy(message_body_end + above, temp, below);
memcpy(temp, message_body_end, below);
memmove(message_body_end, s+1, above);
memcpy(message_body_end + above, temp, below);
@@
-180,7
+178,7
@@
if (fstat(fd, &statbuf) != 0)
return FALSE;
}
return FALSE;
}
-filebuf = store_get(statbuf.st_size + 1);
+filebuf = store_get(statbuf.st_size + 1
, is_tainted(filename)
);
rc = read(fd, filebuf, statbuf.st_size);
(void)close(fd);
rc = read(fd, filebuf, statbuf.st_size);
(void)close(fd);
@@
-261,13
+259,13
@@
testing a system filter that is going to be followed by a user filter test. */
if (is_system)
{
if (is_system)
{
- system_filtering = TRUE;
- enable_dollar_recipients = TRUE; /* Permit $recipients in system filter */
+
f.
system_filtering = TRUE;
+
f.
enable_dollar_recipients = TRUE; /* Permit $recipients in system filter */
yield = filter_interpret
(filebuf,
RDO_DEFER|RDO_FAIL|RDO_FILTER|RDO_FREEZE|RDO_REWRITE, &generated, &error);
yield = filter_interpret
(filebuf,
RDO_DEFER|RDO_FAIL|RDO_FILTER|RDO_FREEZE|RDO_REWRITE, &generated, &error);
- enable_dollar_recipients = FALSE;
- system_filtering = FALSE;
+
f.
enable_dollar_recipients = FALSE;
+
f.
system_filtering = FALSE;
}
else
{
}
else
{