From: Ralph Corderoy Date: Sun, 16 Oct 2016 13:19:56 +0000 (+0100) Subject: Fix bug where single-character headers were sometimes missed. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/41a82a7ecba04be5b27b3ffc813e2f34d2786a38?hp=41a82a7ecba04be5b27b3ffc813e2f34d2786a38 Fix bug where single-character headers were sometimes missed. The hash function used to check if a header was of interest always used its first three characters. For a single-character header that third byte wasn't particularly set and so it was pot luck if the two hashes matched, swayed by what was previously in the format string and in the email's headers. Alter it to cope, including with an empty string. Comment that it never gives 127 so leaves the last element of the hash-table array unused. Alter test-header-parsing to stop declaring it expects to fail. ---