Closed Bug 1799390 Opened 2 years ago Closed 2 years ago

Thunderbird doesn't warn me about space before .com in email address pill

Categories

(Thunderbird :: Message Compose Window, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr102+ fixed, thunderbird108 wontfix)

RESOLVED FIXED
109 Branch
Tracking Status
thunderbird_esr102 + fixed
thunderbird108 --- wontfix

People

(Reporter: mail, Assigned: mkmelin)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

Steps to reproduce:

I go to send a larger file via attachment

Actual results:

It just hangs. I don't get an error saying it can't be sent or confirmation that it was sent.

It happened to 2 different people. Here's a SS - https://i.imgur.com/OA3HGKk.png

Also, I thought (this is how it used to be) gives you an error when the email address isn't written out correctly & it didn't. It sent the mail.

I copied it from someone & didn't notice there was a space before the .com

Expected results:

I should get errors when large attachments don't send & when the email addy is wrong.

Thanks

Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

I don't know about the send error, but the space before .com we can at least fix.
For the send error, you'd need to get an smtp log. https://wiki.mozilla.org/MailNews:Logging

Target Milestone: --- → 109 Branch
Summary: Thunderbird doesn't tell me if a large file has sent, it just hangs → Thunderbird doesn't warn me about space before .com in email address pill
Component: Untriaged → Message Compose Window

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/689769bebb35
Improve pill email validation to at least not allow space and double @. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/c3930d867b4a follow-up, don't require domain name to have dot. rs=bustage-fix

Hmmm, wearing my QA hat, I think we should continue to accept valid email addresses even if they are weird (see https://stackoverflow.com/a/38787343):

These valid email addresses have both space and @ in the localpart (inside double quotes):

"UX @ its best"@thunderbird.net
"()<>[]:,;@\\"!#$%&'-/=?^_`{}| ~.a"@example.org

Can we improve the regex here to allow such?
Otherwise I'm not sure if error-prevention justifies breaking valid email addresses...

Flags: needinfo?(mkmelin+mozilla)

Well, we accept them - they can be used. But you get the warning that it looks invalid.
So IDK. Addresses with space in local part are not going to be used in the wild, and for 99.99999% where this comes up it will be a typo.

Flags: needinfo?(mkmelin+mozilla)

(In reply to Magnus Melin [:mkmelin] from comment #6)

Well, we accept them - they can be used.

Oh, I see. That's good. Although it's still a bit confusing now that some weird, but valid addresses are marked and claimed to be invalid (see tooltip in screenshot) and send without problems, whereas others are really invalid and might block sending.

But you get the warning that it looks invalid.
So IDK. Addresses with space in local part are not going to be used in the wild, and for 99.99999% where this comes up it will be a typo.

Agreed. So maybe getting just the warning wrong for 0.00001% edge cases is acceptable ;-)

Comment on attachment 9304069 [details]
Bug 1799390 - Improve pill email validation to at least not allow space and double @. r=#thunderbird-reviewers

[Approval Request Comment]
User impact if declined: won't warn about address pills that contain space
Testing completed (on c-c, etc.): beta
Risk to taking this patch (and alternatives if risky): safe

Attachment #9304069 - Flags: approval-comm-esr102?

Comment on attachment 9304069 [details]
Bug 1799390 - Improve pill email validation to at least not allow space and double @. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr102

Attachment #9304069 - Flags: approval-comm-esr102? → approval-comm-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: