Factor out parsing of reference-header values and pickup In-reply-to.