make mail filename available for better debugging
add sanity check for length of canonical headers
Merge pull request #11 from aspiers/canonical-sanity

more robust header extraction