mailmap: refactor mailmap parsing for non-file sources