Closed
Bug 71090
Opened 25 years ago
Closed 24 years ago
subject with empty encoded-word doesn't decode
Categories
(MailNews Core :: MIME, defect)
MailNews Core
MIME
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: bugzilla, Assigned: bugzilla)
Details
(Whiteboard: have fix)
Attachments
(2 files, 1 obsolete file)
|
92 bytes,
text/plain
|
Details | |
|
683 bytes,
patch
|
bugzilla
:
review+
bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
This bug is kind of critical. If you have the following subject:
Subject: =?iso-8859-1?q?Ide=3A=20sekret=E6rfunktion=20=2F=20mail-agent?=
=?iso-8859-1?q??=
The correct decode subject is:
Ide: sekretærfunktion / mail-agent
Mozilla however shows:
Ide: sekretærfunktion / mail-agent =?iso-8859-1?q??=
build 20010306
| Reporter | ||
Comment 1•25 years ago
|
||
| Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.7
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
This is because mozilla doesn't allow empty encoded words (=?iso-8859-1?q??=)
See mozilla/mailnews/mime/src/comi18n.cpp#1207.
I don't quite understand, why.
To just silently skip such words, try attachment 56252 [details] [diff] [review]
Updated•24 years ago
|
Target Milestone: mozilla0.9.7 → mozilla0.9.9
| Reporter | ||
Comment 4•24 years ago
|
||
we have a patch. could someone please try it out?
| Assignee | ||
Updated•24 years ago
|
Attachment #26947 -
Attachment mime type: text/plain → message/rfc822
| Assignee | ||
Updated•24 years ago
|
Attachment #26947 -
Attachment mime type: message/rfc822 → text/plain
| Assignee | ||
Comment 5•24 years ago
|
||
Comment on attachment 56252 [details] [diff] [review]
just skip empty encoded words
Looks good for me. R=ducarroz
Attachment #56252 -
Flags: review+
| Assignee | ||
Comment 6•24 years ago
|
||
cc'ing nhotta.
Comment 7•24 years ago
|
||
Comment on attachment 56252 [details] [diff] [review]
just skip empty encoded words
sr=mscott pending approval from nhotta.
Comment 8•24 years ago
|
||
Please do i18n mail test (" 8. Internationalization: Mail"),
http://www.mozilla.org/quality/smoketests/index.html
Here is the test mailbox data.
http://www.mozilla.org/quality/intl/tests/data/mailsmoketest.zip
jgmyers knows the detail of the code. John, please take a look at the patch.
Comment 9•24 years ago
|
||
I did that test and everything looks good to me...
Comment 10•24 years ago
|
||
The patch rotted by one line since november, here's updated diff.
(content is absolutely the same)
Comment 11•24 years ago
|
||
Changing summary.
Per RFC 2047, empty encoded-words are not legal. The BNF for "encoded-text"
requires at least one character.
I don't see a problem with accepting such illegal input. The patch has no
obvious problems.
The reporter should file a separate bug against the MUA that generated that
illegal subject line.
Summary: subject with wrapped encoded chars doesn't decode correct → subject with empty encoded-word doesn't decode
| Assignee | ||
Updated•24 years ago
|
Whiteboard: have fix
| Assignee | ||
Comment 12•24 years ago
|
||
Comment on attachment 65602 [details] [diff] [review]
Exactly the same patch, diff'ed with latest revision of comi18n.cpp
R=ducarroz
Attachment #65602 -
Flags: review+
| Assignee | ||
Updated•24 years ago
|
Attachment #56252 -
Attachment is obsolete: true
| Assignee | ||
Comment 13•24 years ago
|
||
Comment on attachment 65602 [details] [diff] [review]
Exactly the same patch, diff'ed with latest revision of comi18n.cpp
SR=mscott (from previous patch)
Attachment #65602 -
Flags: superreview+
| Assignee | ||
Comment 14•24 years ago
|
||
Fixed and checked in. Thanks Denis for the patch.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Product: MailNews → Core
Updated•18 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•