extract_person_email ignores valid email addresses in usernames

Bug #390757 reported by Graham Binns
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
trac-launchpad-migrator
Fix Released
High
Graham Binns

Bug Description

What happens:
If there's a user in the trac.example.com DB with the username '<email address hidden>', extract_person_email will return '<email address hidden>@trac.example.com' as their email address, even though this is invalid and the person's username is itself a valid email address.

What should happen:
The username should be returned as the user's email, since it's a valid email address which can be imported into Launchpad.

It would save time to fix bug 390756 at the same time as this.

Graham Binns (gmb)
Changed in trac-launchpad-migrator:
milestone: none → 0.1.2
Graham Binns (gmb)
Changed in trac-launchpad-migrator:
assignee: nobody → Graham Binns (gmb)
importance: Undecided → High
status: New → Fix Committed
Graham Binns (gmb)
Changed in trac-launchpad-migrator:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.