Fixed a bug indexing the last header line of a mail in the next one.