Added support for extracting refrences from RFC822.HEADER

This is my solution to "references field not being set #71", not sure if this is relevant for most people but I just wanted to submit just in case its useful to anyone....