Skip to content

mailmap cannot parse malformed email containing <> #737

@rwmjones

Description

@rwmjones

I have a git repo with malformed email addresses (from an ancient CVS import, probably). In fact it's exactly the same repo as mentioned in this stackoverflow answer: https://stackoverflow.com/a/59231457

The mailmap file to fix this ought to be:

Richard W.M. Jones <rjones@redhat.com> <"Richard W.M. Jones <rjones@redhat.com>">

Unfortunately because of the way regexps are used in the _parse_file function, that won't work:

$ git filter-repo --mailmap mailmap
Unparseable mailmap file: line #1 is bad: b'Richard W.M. Jones <rjones@redhat.com> <"Richard W.M. Jones <rjones@redhat.com>">\n'

Because of the way the regular expression is done, I don't think it's possible to solve this easily and continue using regexps, so I couldn't find a simple fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions