rfc822: Fix validation bug introduced in f99ca0c4

Also add several lint fixes for packaging