projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f62514b
)
Make gecos expansion work with test 0412 as well as 0254.
author
Tony Finch
<dot@dotat.at>
Thu, 6 Dec 2012 20:16:39 +0000
(20:16 +0000)
committer
Tony Finch
<dot@dotat.at>
Thu, 6 Dec 2012 20:18:18 +0000
(20:18 +0000)
src/src/receive.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/receive.c
b/src/src/receive.c
index 4d77bcd9657f17f95fce73462d40aa13bf5c633c..eef0531a8bc0b69b213b6c64540509b09d17ac9f 100644
(file)
--- a/
src/src/receive.c
+++ b/
src/src/receive.c
@@
-2035,9
+2035,12
@@
for (h = header_list->next; h != NULL; h = h->next)
from_header = h;
if (!smtp_input)
{
+ int len;
uschar *s = Ustrchr(h->text, ':') + 1;
while (isspace(*s)) s++;
- if (strcmpic(s, originator_login) == 0)
+ len = h->slen - (s - h->text) - 1;
+ if (strncmpic(s, originator_login, len) == 0
+ && Ustrlen(originator_login) == len)
{
uschar *name = is_resent? US"Resent-From" : US"From";
header_add(htype_from, "%s: %s <%s@%s>\n", name, originator_name,