Fix issues in Message-Id check.

This patch fixes issues that Message-Id check is not correct.

Signed-off-by: Lv Zheng <zetalog@gmail.com>