[PATCH 2/5] dmime: Simplify the parse_segments_list() helper