Fix bug 3039, very long parsing time in HTML email. Avoid strcasestr