mailgun / mailgun/flanker

validate_address can't handle display name

Open
#175 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
1.6k
Forks
213
PR merge metrics
No merged PRs in 30d

Description

This looks like a possible bug; address.validate_address returns none when passed a email string with a display name. Yet parse can handle it.

```python
>>> text = 'Fooman '
>>> address.validate_address(text)
>>> None
>>> address.validate_address('fooman@bar.com')
>>> fooman@bar.com
```

```python
>>> address.parse('Fooman ')
>>>Fooman
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the address.validate_address entry point and compare its handling of the display-name input with address.parse, using the examples in the issue to reproduce the behavior. Done means validate_address accepts the display-name form consistently with the plain email form and no longer returns None for that input.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.