mimetype.cpp: detect MIME headers found in mail archives