[PATCH 1/4 v2] dmime: Add a generic ParseDescriptor helper and use it for DMSegment