Ignore extra spaces before and after header values

Some duplicate messages I encountered had an extra space before the
message id in one of the copies. Removing leading and trailing
whitespace in all header values fixes this problem.