lib: Use email address instead of empty real name.
authorJesse Rosenthal <jrosenthal@jhu.edu>
Sat, 22 Nov 2014 13:17:16 +0000 (08:17 -0500)
committerDavid Bremner <david@tethera.net>
Sun, 7 Dec 2014 12:36:08 +0000 (13:36 +0100)
commit4135a1f8dae02e712ff172ae38f68b74f9721236
treebec340eba47805e741260a53d675eefebe1b6cfd
parent6c1d626519b04fbc98a5c5497ec4fbcd76a51c00
lib: Use email address instead of empty real name.

Currently, if a From-header is of the form:

    "" <address@example.com>

the empty string will be treated as a valid real-name, and the entry
in the search results will be empty.

The new behavior here is that we treat an empty real-name field as if
it were null, so that the email address will be used in the search
results instead.

Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>
lib/thread.cc
test/T205-author-naming.sh