Use python-debian for parsing RFC 822 files (untested).