Correct gecos expansion when From: is a prefix of the username.
authorTony Finch <dot@dotat.at>
Thu, 6 Dec 2012 19:11:28 +0000 (19:11 +0000)
committerTony Finch <dot@dotat.at>
Thu, 6 Dec 2012 19:11:28 +0000 (19:11 +0000)
commit326cdc37059420d73ba121daaf74def9b53b9e3b
treeab32e246d1a1657a02f328ca152ae95e3bd6aafd
parentd4f09789499b5a665a0e79d6ed0086806fc7b648
Correct gecos expansion when From: is a prefix of the username.

Test 0254 submits a message to Exim with the header

  Resent-From: f

When I ran the test suite under the user fanf2, Exim expanded
the header to contain my full name, whereas it should have added
a Resent-Sender: header. It erroneously treats any prefix of the
username as equal to the username.

This change corrects that bug.
doc/doc-txt/ChangeLog
src/src/receive.c