Closed
Bug 559774
Opened 16 years ago
Closed 10 years ago
Categories
(MailNews Core :: Composition, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 51.0
People
(Reporter: World, Assigned: jorgk-bmo)
Details
Attachments
(1 file)
|
2.06 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
This bug is spin-off of bug 558294 comment #20.
If user forgets to put closing " of name part of mail address at To:/CC: field, Tb sends mail address of "local name part only which is quoted" as mail recipient.
SMTP server's action/response in this case depends on SMTP server.
(Checked with Tb 3.0.4)
(1) Typed string at To: field.
> "Yatter King <yatter.king@gmail.com>
(2) Generated To: header by Tb 3.0.4. (Drafts, Sent, Outbox)
> To: "Yatter King <yatter.king@gmail.com>"
(3) smtp.gmail.com rejected the mail with 5.5.2.
> An error occurred while sending mail. The mail server responded:
> 5.5.2 Syntax error. b10sm9620600ana.16.
> Please check the message recipient "YatterKing<yatter.king@gmail.com>" and try again.
(3) smtp.dti.ne.jp changed To: header, and sent mail to <a@b.c/d> part.
To: "Yatter King <yatter.king@gmail.com>"@smtp12.dti.ne.jp
(mail arrived at Gmail)
> Delivered-To: yatter.king@gmail.com
> Received: by 10.142.218.2 with SMTP id q2cs8516wfg;
> Fri, 16 Apr 2010 00:06:54 -0700 (PDT)
> Received: by 10.114.87.17 with SMTP id k17mr1044365wab.215.1271401614634;
> Fri, 16 Apr 2010 00:06:54 -0700 (PDT)
> Return-Path: <yatter.one@gmail.com>
> Received: from smtp12.dti.ne.jp (smtp12.dti.ne.jp [202.216.231.187])
> by mx.google.com with ESMTP id 31si5625559iwn.64.2010.04.16.00.06.53;
> Fri, 16 Apr 2010 00:06:54 -0700 (PDT)
> Received-SPF: neutral (google.com: 202.216.231.187 is neither permitted nor denied by domain of yatter.one@gmail.com) client-ip=202.216.231.187;
> Authentication-Results: mx.google.com; spf=neutral (google.com: 202.216.231.187 is neither permitted nor denied by domain of yatter.one@gmail.com) smtp.mail=yatter.one@gmail.com
> Received: from [192.168.0.10] (KHP222009106185.ppp-bb.dion.ne.jp [222.9.106.185]) by smtp12.dti.ne.jp (3.11s) with ESMTP AUTH id o3G76rsg006854 for <"YatterKing<yatter.king@gmail.com>">; Fri, 16 Apr 2010 16:06:53 +0900 (JST)
> Message-ID: <4BC80C8D.9070802@gmail.com>
> Date: Fri, 16 Apr 2010 16:06:53 +0900
> From: Yatter One <yatter.one@gmail.com>
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
> MIME-Version: 1.0
> To: "Yatter King <yatter.king@gmail.com>"@smtp12.dti.ne.jp
> Subject: mail
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
>
> mail
Note-1:
SMTP log is not obtained yet. I guess Tb passes RCPT TO: "... <...@...>" to SMTP server.
Note-2:
If the mail is delivered by SMTP server as smtp.dti.ne.jp does, wrong RCPT TO: may produce problem at mail receiving side(usually reject of mail like bug 558294, I guess).
| Reporter | ||
Updated•16 years ago
|
Summary: If user forgets to put closing " of name part of mail address at To:/CC: field, Tb sends mail address of "local name part only which is quoted" as mail recipient → Tb sends mail address of "a b <c@d.e.f>" as mail recipient, if user mistypes quote at To:/CC:/BCC: field("a b <c@d.e.f>" or "a b <c@d.e.f>)
Comment 1•16 years ago
|
||
Well, that's not a real bug, actually.
OTOH, you could argue that the user should be warned that he didn't enter an email address aka "did you miss a quote?"...
| Reporter | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> Well, that's not a real bug, actually.
No. It's real bug, if Tb's design is "don't permit local name part only mail address, unless prefs.js setting to permit local name only address is enabled by user".
If Tb's design is "permit local name part only address always if quoted by two doulequote's", I absolutely agree with you.
> OTOH, you could argue that the user should be warned that he didn't enter an
> email address aka "did you miss a quote?"...
According to bug 558294, problem of recipient address of "a b <c@d.e.f>" looks to occur when (a) user typed "a b <c@d.e.f>", and when (b) "a b <c@d.e.f>" is placed in address book.
So, your warning is useful only for mistype of "a b <c@d.e.f> case.
| Reporter | ||
Updated•16 years ago
|
Severity: normal → minor
Comment 3•16 years ago
|
||
(In reply to comment #2)
> (In reply to comment #1)
> > Well, that's not a real bug, actually.
>
> No. It's real bug, if Tb's design is "don't permit local name part only mail
> address, unless prefs.js setting to permit local name only address is enabled
> by user".
> If Tb's design is "permit local name part only address always if quoted by two
> doulequote's", I absolutely agree with you.
>
> > OTOH, you could argue that the user should be warned that he didn't enter an
> > email address aka "did you miss a quote?"...
>
> According to bug 558294, problem of recipient address of "a b <c@d.e.f>" looks
> to occur when (a) user typed "a b <c@d.e.f>", and when (b) "a b <c@d.e.f>" is
> placed in address book.
> So, your warning is useful only for mistype of "a b <c@d.e.f> case.
i hope, i did not complicate things too much, when i commented to bug 558294:
"xyz@xyz.com <xyz@xyz.com>
i just forgot the second '"' ... so, please ignore the '"'-thing
but when i at first stage received the error-code from the mx i was typing in tb in the "to:-field":
xyz
and tb autocompleted to xyz@xyz.com <xyz@xyz.com>
but when i added my own address in the next "cc:-field" the message was sent normally. the NUL-error was only reproducable, when only one single "to:-address" was used.
my problem now is, that i cannot reproduce the error any more. all mails (with single to:-address, or additional cc:-address, or plain text, or html, or both) work fine.
Is this still happening? The JSMIME rework may have changed address parsing slightly.
Even if is is fixed, we could add the case to our test suite.
| Reporter | ||
Comment 5•10 years ago
|
||
> Typed string at To: field Generated To: header by Tb 50.0a1
> "Yatter King <a@a.a.a> => To: "\"Yatter King" <a@a.a.a>
> Yatter King" <a@a.a.a> => To: "Yatter King\"" <a@a.a.a>
> "Yatter King" <a@a.a.a> => To: Yatter King <a@a.a.a>
> Yatter "XXX" King <a@a.a.a> => To: "Yatter \"XXX\" King" <a@a.a.a>
> "Yatter "XXX" King" <a@a.a.a> => To: Yatter XXX King <a@a.a.a>
> "Yatter King <a@a.a.a>" => To: "\"Yatter King" <a@a.a.a>
> "Yatter King <a@a.a.a>" <b@b.b.b> => To: "Yatter King <a@a.a.a>" <b@b.b.b>
It looks;
- Angle-addr is treated as mail-addr first
- Outmost double-quot's are removed if it's not needed
- Stand-alone double-quot is escaped by backslash and it's placed between two double-quot
Original problem of this bug is already resolved in Thunderbird trunk nightly.
Above result is acceptable and I think above is practically good in mistype handling.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Target Milestone: --- → Thunderbird 50.0
Jorg, can you add some of these the to test in jsmime that you were touching recently?
Flags: needinfo?(jorgk)
| Assignee | ||
Comment 7•10 years ago
|
||
Sure, can be added here:
https://dxr.mozilla.org/comm-central/rev/7b9fbef870b2d735e06105bfe4e9dc09518545dd/mailnews/mime/test/unit/test_nsIMsgHeaderParser4.js#31
There was a big discussion on dev-platform that we should all use permalinks ;-) So here goes.
Flags: needinfo?(jorgk)
| Assignee | ||
Comment 8•10 years ago
|
||
Assignee: nobody → jorgk
Status: RESOLVED → REOPENED
Attachment #8779059 -
Flags: review?(acelists)
Resolution: WORKSFORME → ---
Comment on attachment 8779059 [details] [diff] [review]
559774.patch
Review of attachment 8779059 [details] [diff] [review]:
-----------------------------------------------------------------
Nice, thanks.
Please make the commit message mention "recipients" and "msg header parsing" so it makes some sense to casual commit readers;)
Attachment #8779059 -
Flags: review?(acelists) → review+
Flags: in-testsuite+
OS: Windows XP → All
Hardware: x86 → All
Target Milestone: Thunderbird 50.0 → Thunderbird 51.0
| Assignee | ||
Comment 10•10 years ago
|
||
https://hg.mozilla.org/comm-central/rev/c441d90d6482
Landed with improved commit comment as requested ;-)
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•