Closed Bug 137027 Opened 24 years ago Closed 23 years ago

Body Sanitized/AsPlain: This msg doesn't display

Categories

(MailNews Core :: MIME, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: BenB, Assigned: emaijala+moz)

References

Details

Attachments

(3 files)

(1) The following m/r msg (sent with current Mozilla) displays with a blank body in the new HTML display modes Simple HTML and As Plaintext. (2) Worse, when you switch to Original HTML and back while that msg is being displayed, the load never finishes. From the debugging output, my parse_line and parse_begin never gets called in the first case. In the second case, parse_eof gets called once, then it stalls after that exits, i.e. somewhere in code outside of the new classes. J-F reports in bug 30888 that m/r works for him, apart from the fact that images aren't being displayed. Strange.
Attached file Problematic msg
No idea, what's going on.
Similarily, the msg in <http://bugzilla.mozilla.org/attachment.cgi?id=74098&action=view> displays blank, because parse_line is never being called. There, however, I see no infinitive loads.
I have seen something like this on various occasions: the message is shown as completely blank when "View->Message body" is set to "as plain text" or either "as plain text" or "simple html". This is a serious issue, because one would assume that the message really does not contain any text when in fact, it does. Here is a cut/paste from "view message source" of a message that is empty for both "plain text" and "simple html" mode: ---start Content-Type: text/html Content-Transfer-Encoding: quoted-printable <FONT face=3DArial size=3D2>Liebe(r) UserIn, <br><br>Ihr Suchagent "Profil1" hat folgende Inserate= gefunden:<br><br> <a= href=3D"http://derStandard=2Eat/Stellenmarkt/?displayAd=3D14943">Diplo= mschwestern/Pfleger &amp; -helferInnen</a><br> <br><br>Ein Service von <a= href=3D"http://derStandard=2Eat/Karriere">derStandard=2Eat/Karriere</a= ><br><hr><br>Hinweise zur Verwendung:<br><br>Um diesen= Suchagenten zu aendern, zu loeschen oder abzubestellen, melden= Sie sich bitte auf der Seite <a= href=3D"http://derStandard=2Eat/Stellenmarkt">http://derStandard=2Eat/= Stellenmarkt</a> mit Ihrem derStandard=2Eat-Account an=2E Sie sehen= dann eine Liste Ihrer Suchagenten, mit Optionen zum Aendern,= Ausfuehren und Loeschen=2E<br><br>Wenn Sie diesen= Benachrichtigungsdienst abbestellen wollen, und ihn nicht selbst= eingerichtet haben sollten, dann wenden Sie sich bitte unter= Angabe Ihrer e-Mail Adresse und des Namens des Suchagenten an <a= href=3D"mailto:Inserate@derStandard=2Eat?subject=3DJob-Agenten fuer= johann=2Epetrak@chello=2Eat= abbestellen">Inserate@derStandard=2Eat</a>=2E<br></font> ---stop
Attached a email folder file with two messages. The first message is shown completely blank for both "simple HTML" and "plain text", the second message is completely blank for "plain text" mode only.
johann, bug 126887 is filed for "text/html" without charset msgs.
QA Contact: gayatri → trix
Ben, I dont understand - is this a bug that the message that is shown perfectly well as "original HTML" is completely blank for "simple HTML" and "plain text" or not?
sure it's a bug.
Blocks: 152921
The test messages in bug 138125, comments 3, 4, 5, don't display in `Plain Text' mode either.
OS: Linux → All
Hardware: PC → All
(2002073022/linux) Not sure if this belongs here, but it is quite nasty: I just got an email that shows only part of the content in Original HTML mode (it was sent by yahoo and only the "original message" part in html is shown. The actual message text is NOT shown and only appears in the other two modes. It is a sensitive message so I cannot post it here, but will try to anonymize it. Since obviously significant parts of email messages can be dropped in all three modes, this should be critical and dataloss, I would suggest.
Ere's fix to bug 138125 also fixed this one for me -- all attachments here and in comment 9 now display OK, both in Simple HTML and Plain Text mode. OTOH, I came across the attached multipart/alternative message, which displays OK in Simple HTML but nothing in Plain Text mode. (Maybe only because no mime type is set for that part -- and therefore not a bug? Still, I would think that the sender intended it to be readable.)
Comment on attachment 107426 [details] multipart/alternative, doesn't display in plain text mode Yes, the problem here is the lack of a Mime descriptor for the first alternative part. If I add: Content-type: text/plain; charset="US-ASCII" after "--this-is-a-separator-for-mime-parts", then it displays fine. So I guess the question is, should this be fixed or ascribed to "evangelism"?
This should by all means be fixed or at least show an error message: IMO, the ability to read whatever wrongly encoded text a user received should have top priority. It would be very dangerous to silently display nothing, which could cause the recipient an awful lot of trouble indeed. Not all potential users of MozillaMail (or NS7 mail) are informed enough to investigate, do a view source etc. This is especially dangerous if it happens that only *part* of a message is not shown.
> all attachments here and > in comment 9 now display OK, both in Simple HTML and Plain Text mode. -> ere, fixed > OTOH, I came across the attached multipart/alternative message, which displays > OK in Simple HTML but nothing in Plain Text mode. (Maybe only because no mime > type is set for that part This is probably unrelated. Yes, I think that message is totally broken, but I agree that we shouldn't just display nothing. However, I am relatively sure that this is unrelated not only to this bug, but not even in my code. Probably, libmime can't handle m/a (and other m/ types? - please check) parts without content type. We might have never his this bug, because we always chose the HTML part (which needs a content-type anyways in order to work).
Assignee: ben.bucksch → ere
fixed
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Excuse me Ben, but there is a problem here that all who commented thus far (Johann, you, and me) seem to agree cannot be summarily dismissed. So, I don't mind if you close this bug again, but then at least open another to deal with the problem! (Only difference, so far as I can see, would be "m/a" in place of "m/r" in the description. Bug summaries are about *symptoms*, aren't they?)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
hysterion, thanks for finding the bug, but it's not this bug. This bug is another one. Please file a new one for the issue you found - that's your responsibility as a reporter, not mine. reclosing as fixed.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
> Bug summaries are about *symptoms*, aren't they? From a developer perspective, bugs are about *causes*. 2 bugs with the same symptom should get 2 bugs in bugzilla.
Filed as bug 182035. Courteline, anyone?
Summary: Body Sanitized/AsPlain: This m/r msg doesn't display → Body Sanitized/AsPlain: This msg doesn't display
Aha! I was just about to comment that the 'View as Simple HTML' didn't work for Ben's original http://bugzilla.mozilla.org/attachment.cgi?id=78826&action=view message. See bug 182021, which Harish just landed, so it should be fixed in tomorrow's builds!
http://bugzilla.mozilla.org/attachment.cgi?id=78826&action=view now works using View | Message Body As | Simple HTML (as well as the other options, Original HTML | Plain Text). Builds: Mac OS X 10.2.3 - 2003-01-06-11 Windows 2000 - 2003-01-06-08 RedHat 8.0 - 2003-01-06-10 Verified FIXED
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: