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
1. Don't show helo=[<ip address>] unnecessarily. 2. Update old test
[exim.git]
/
src
/
src
/
filter.c
diff --git
a/src/src/filter.c
b/src/src/filter.c
index e551abef86decbfeb7ee42e41d579583ebca1ad1..1773a8f2ff805c97e2dae540d18c5d2ff76034b5 100644
(file)
--- a/
src/src/filter.c
+++ b/
src/src/filter.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/filter.c,v 1.
6 2005/11/10 15:00:46
ph10 Exp $ */
+/* $Cambridge: exim/src/src/filter.c,v 1.
7 2005/11/11 10:02:04
ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* Exim - an Internet mail transport agent *
@@
-2240,9
+2240,10
@@
while (commands != NULL)
}
/* Create the "address" for the autoreply. This is used only for logging,
}
/* Create the "address" for the autoreply. This is used only for logging,
- as the actual recipients are extraced from the To: line by -t. We use the
+ as the actual recipients are extrac
t
ed from the To: line by -t. We use the
same logic here to extract the working addresses (there may be more than
same logic here to extract the working addresses (there may be more than
- one). */
+ one). Just in case there are a vast number of addresses, stop when the
+ string gets too long. */
tt = to;
while (*tt != 0)
tt = to;
while (*tt != 0)
@@
-2268,6
+2269,14
@@
while (commands != NULL)
Ustrlen(recipient));
}
Ustrlen(recipient));
}
+ /* Check size */
+
+ if (ptr > 256)
+ {
+ log_addr = string_cat(log_addr, &size, &ptr, US", ...", 5);
+ break;
+ }
+
/* Move on past this address */
tt = ss + (*ss? 1:0);
/* Move on past this address */
tt = ss + (*ss? 1:0);