git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct gecos expansion when From: is a prefix of the username.
[users/jgh/exim.git]
/
src
/
src
/
receive.c
diff --git
a/src/src/receive.c
b/src/src/receive.c
index 1943a74c75d02e8aef718bc2e24c7896c5162012..4d77bcd9657f17f95fce73462d40aa13bf5c633c 100644
(file)
--- a/
src/src/receive.c
+++ b/
src/src/receive.c
@@
-2037,7
+2037,7
@@
for (h = header_list->next; h != NULL; h = h->next)
{
uschar *s = Ustrchr(h->text, ':') + 1;
while (isspace(*s)) s++;
{
uschar *s = Ustrchr(h->text, ':') + 1;
while (isspace(*s)) s++;
- if (str
ncmpic(s, originator_login, h->slen - (s - h->text) - 1
) == 0)
+ if (str
cmpic(s, originator_login
) == 0)
{
uschar *name = is_resent? US"Resent-From" : US"From";
header_add(htype_from, "%s: %s <%s@%s>\n", name, originator_name,
{
uschar *name = is_resent? US"Resent-From" : US"From";
header_add(htype_from, "%s: %s <%s@%s>\n", name, originator_name,