add tests, and fix parsing of mail without body
fix header parsing, more tests

previously spaces in headers were allowed, because the whitespace in <-[: ]>
is not significant.
Also adds some tests.
more tests
Merge pull request #2 from moritz/master

More tests, and fix the deficits they uncovered