Open Bug 568574 Opened 14 years ago Updated 2 years ago

some emails with multipart/alternative have no content in the body but shows up when viewing source ( multipart/alternative[ text/plain+text/html+text/plain with_inline_filename ], "PC Tools AntiVirus" adds third part )

Categories

(MailNews Core :: MIME, defect)

x86
Windows Vista
defect

Tracking

(Not tracked)

People

(Reporter: franknsusan, Assigned: philbaseless-firefox)

References

(Depends on 1 open bug)

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4

only certain emails, mostly from yahoo have no content. I called my ISP and they had me check it on web mail from their site... it works fine on webmail. it started with mail from my wifes yahoo account and is growing to include other non-yahoo accounts. When i click "view source" its all there. it just doesnt show on the email body

Reproducible: Always

Steps to Reproduce:
1.receive mail 
2.click to open
3.nothing in body except a message from pctools anti-virus saying no virus found
Actual Results:  
Laura@thegirls.tuccoxmail.com
susanbattelle@yahoo.com
reddoggusmc@yahoo.com
these are addresses of emails sent to me that come up blank in the body content
can you save one of those message in .eml format (file -> save) and come back to this webpage and click the add an attachment link ?
Component: General → MIME
Keywords: testcase
Product: Thunderbird → MailNews Core
QA Contact: general → mime
Summary: some emails have no content in the body but shows up when viewing source → some emails with multipart/alternative have no content in the body but shows up when viewing source
Content-Type: multipart/alternative; boundary=001485eba7ac26d3240488635ae6

--001485eba7ac26d3240488635ae6
Content-Type: text/plain; charset=ISO-8859-1

--001485eba7ac26d3240488635ae6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

--001485eba7ac26d3240488635ae6
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ScannedbyPCTools.txt"

Related to Bug 552806. 
mime goes to last part which has filename and inline so doesn't display. Bug 182627 and probably Bug 551698
not sure if I have patches applied that affect this, but a log shows

If view as plain then parts plain and plain inline fetched
If view as html then parts plain, html fetched and no plain inline fetched

mime will only display part plain inline when view attachments inline is 'true'
(In reply to comment #4)
> 
> Related to Bug 552806. 
> mime goes to last part which has filename and inline so doesn't display. Bug
> 182627 and probably Bug 551698

Shall we dup or just mark dependencies Phil ?
dependencies for now. This may get fixed in one of those but I can't be sure at this point. I might as well take it too.

I see it is the same craigslist.org email, like bug 552806.

I am a little lost on what is expected when an email has mp/alternative with two parts text/plain and one marked inline and with a file name. With my patch for bug 551698 that part shows up as an attachment.
Assignee: nobody → philbaseless-firefox
Status: UNCONFIRMED → NEW
Depends on: 552806, 182627, 551698
Ever confirmed: true
maybe someone can shed some definitive light on what TB needs to do. The following shows the intent of this email was to show text/plain part 1 if that was the client option, otherwise if html was client option then display the text/html part along with the text/plain inline part at the end. Is that the intent of mp/alternative?

see in following the inline part is included in plain part1 but not html part2

Content-Type: multipart/alternative; boundary=001485eba7ac26d3240488635ae6

--001485eba7ac26d3240488635ae6
Content-Type: text/plain; charset=ISO-8859-1

It is still available I dont have any pics of this time its works just fine

No virus found in this incoming message
Checked by PC Tools AntiVirus (6.0.0.19 - 10.004.193).
http://www.pctools.com/free-antivirus/


--001485eba7ac26d3240488635ae6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

It is still available I dont have any pics of this time its works just fine=

--001485eba7ac26d3240488635ae6
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ScannedbyPCTools.txt"


No virus found in this incoming message
Checked by PC Tools AntiVirus (6.0.0.19 - 10.004.193).
http://www.pctools.com/free-antivirus/


--001485eba7ac26d3240488635ae6--
(In reply to comment #8)
> maybe someone can shed some definitive light on what TB needs to do. The

David , Bryan ?
Do we have any confirmation that Frank has turned off view | display attachments inline?
In any case, the virus checker has already corrupted the multipart alternative message by generating a third alternative part which doesn't have any of the message text, and we are required to display the last part, if we can. So even if we fixed the bug, the user would just see "No virus found in this incoming message..." without any of the actual message text.

see http://en.wikipedia.org/wiki/MIME#Alternative

It does seem like display of an alternative part should ignore the display attachments inline setting.
in OE, if plain text viewing oe does it's usual practice of making an attachment out of the html version. But it also makes an attachment from this inline 3rd part of mp/alt.

If html view, it shows the html part and has the 3rd part as an attachment.

If I remove all references to inline and filename making it a rogue alternate part then OE views the first plain part and attaches the 3rd part. Same for html view.
Summary: some emails with multipart/alternative have no content in the body but shows up when viewing source → some emails with multipart/alternative have no content in the body but shows up when viewing source ( multipart/alternative[ text/plain+text/html+text/plain_with_inline_filename ], "PC Tools AntiVirus" adds third part )
I have something similar to this.  I'm not sure if it's related or not.  I hesitate to open a new bug report if it's a duplicate.

I am getting messages from work colleagues who are using outlook, and the messages are completely blank.  The source of the messages look like what I've included
below (sorry- can't post the whole thing).

Thunderbird does not report the message as having any attachments.  I tried
using mail.inline_attachments=true and =false, and it doesn't affect the
output (message body is blank).

I think there is a problem displaying multipart/alternative.  

(tinker, tinker...)
I adjusted the message to view in HTML, and the first item was shown.
Is this the correct behaviour?  There's no indication that there's HTML
associated with the message when your view mode is
"view message body as plain text", unless you examine the source.

Please advise.

Thanks,
 -- Tim


Accept-Language: ja-JP, en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-MS-Exchange-Organization-AuthSource: JPTKYXHT103.jp.sony.com
X-MS-Has-Attach:
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator:
acceptlanguage: ja-JP, en-US
Content-Type: multipart/alternative;
	boundary="_002_E32808227880D049A422398DB78382940104E9D8ADF5JPTKYXMS203_"
MIME-Version: 1.0

--_002_E32808227880D049A422398DB78382940104E9D8ADF5JPTKYXMS203_
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: base64

PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0i
dGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij4NCjxtZXRhIG5hbWU9IkdlbmVyYXRvciIgY29udGVu
dD0iTWljcm9zb2Z0IEV4Y2hhbmdlIFNlcnZlciI+DQo8IS0tIGNvbnZlcnRlZCBmcm9tIHJ0ZiAt
LT4NCjxzdHlsZT48IS0tIC5FbWFpbFF1b3RlIHsgbWFyZ2luLWxlZnQ6IDFwdDsgcGFkZGluZy1s
...

--_002_E32808227880D049A422398DB78382940104E9D8ADF5JPTKYXMS203_
Content-Type: text/calendar; charset="utf-8"; method=REQUEST
Content-Transfer-Encoding: base64

QkVHSU46VkNBTEVOREFSDQpNRVRIT0Q6UkVRVUVTVA0KUFJPRElEOk1pY3Jvc29mdCBFeGNoYW5n
ZSBTZXJ2ZXIgMjAwNw0KVkVSU0lPTjoyLjANCkJFR0lOOlZUSU1FWk9ORQ0KVFpJRDooVVRDKzA5
OjAwKSBPc2FrYVwsIFNhcHBvcm9cLCBUb2t5bw0KQkVHSU46U1RBTkRBUkQNCkRUU1RBUlQ6MTYw
...
I have a similar situation. No body content is displayed. Attachments are reported.

Below is the source.

Mohammad.

From - Mon Nov 03 11:51:10 2014
X-Account-Key: account1
X-UIDL: AIiti2IAABHaVFeyTQ32ODOh/JE
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
X-Apparently-To: mdz123@yahoo.com; Mon, 03 Nov 2014 16:50:20 +0000
Received-SPF: pass (domain of oakland.edu designates 209.85.218.54 as permitted sender)
X-YMailISG: GHgoFzQWLDtDaPvwHOgRysIm_WcKy.5NeEw5D5I2nQiAO3.c
 GyPiJOyZcdpx8aRpOm_l_vOAXKdXjGZNsB7hePDNHEmje3qJzFJ0uPIXe.lU
 QatPyn3Y6Qb.rhF9N5ZmuO8yJ.SaRPxEnefe8rmxeEknKb8AAmFlq2GWjl87
 2.fAkpbDTqBPvgsgTcyq5rRe.BqMMgxXjdJI61c.xF0hrHlCM2.M2LVfCMSS
 B_xbSeFYZucSSRpIr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-Originating-IP: [209.85.218.54]
Authentication-Results: mta1205.mail.ne1.yahoo.com  from=bsu.edu; domainkeys=neutral (no sig);  from=bsu.edu; dkim=neutral (no sig)
Received: from 127.0.0.1  (EHLO mail-oi0-f54.google.com) (209.85.218.54)
  by mta1205.mail.ne1.yahoo.com with SMTPS; Mon, 03 Nov 2014 16:50:19 +0000
Received: by mail-oi0-f54.google.com with SMTP id a141so7360218oig.27
        for <mdz123@yahoo.com>; Mon, 03 Nov 2014 08:50:18 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :from:to:subject:thread-topic:thread-index:date:message-id
         :accept-language:content-language:content-type:mime-version;
        bh=QUhdz53togg8DEOHMedx6L/U0pJyN2ZiIihAlVpYEvY=;
        b=PNyAkNLKIbbzpEj79BtEPEdDfHYM1cmwusAw/H+ZDAhfabjLtoz0N9LNbm6Ce5lj9J
         DhyVAbRfrGIwYLRUqxDCi3SVHdrSUVr4VbPxrpNkQa5nyjmvrAayPuHc9VlaBtpwDsKW
         Anai+oRCLaDrvM87TkXbM42z38Bp6KBn15eI0HzB2cJFNhUyFxR5Y9U9rmkZntdS0K9w
         oX5POOPeCOBbd2bitXo+A1W2bfiw3e1TChQmedJ+RFa9N2HCzo3yJoci5mujYMvJa9QE
         PTbkhtFEMIuU0I3ryJAFAOMG5jntZkGEhilcrU1oBe/n2W1/jbVT1uHlhW1lvm7d64Vm
         aEmg==
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com: domain of cchen@bsu.edu designates 157.56.110.141 as permitted sender) smtp.mail=cchen@bsu.edu
X-Gm-Message-State: ALoCoQmy9FUSBkVEPJBaP0iMrBoohi4Z+zcjXBOWiSuMHE94A6tBb9Ea7sN34h3OVIe2lMPYC3am
X-Received: by 10.202.204.206 with SMTP id c197mr35877694oig.42.1415033418822;
        Mon, 03 Nov 2014 08:50:18 -0800 (PST)
X-Forwarded-To: mdz123@yahoo.com
X-Forwarded-For: dadashza@oakland.edu mdz123@yahoo.com
Delivered-To: dadashza@oakland.edu
Received: by 10.60.246.10 with SMTP id xs10csp293837oec;
        Mon, 3 Nov 2014 08:50:17 -0800 (PST)
X-Received: by 10.140.106.36 with SMTP id d33mr63120907qgf.39.1415033417019;
        Mon, 03 Nov 2014 08:50:17 -0800 (PST)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0141.outbound.protection.outlook.com. [157.56.110.141])
        by mx.google.com with ESMTPS id 101si30370139qgx.57.2014.11.03.08.50.15
        for <multiple recipients>
        (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Mon, 03 Nov 2014 08:50:16 -0800 (PST)
Received-SPF: pass (google.com: domain of cchen@bsu.edu designates 157.56.110.141 as permitted sender) client-ip=157.56.110.141;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of cchen@bsu.edu designates 157.56.110.141 as permitted sender) smtp.mail=cchen@bsu.edu
Received: from CO2PR05MB681.namprd05.prod.outlook.com (10.141.229.141) by
 CO2PR05MB681.namprd05.prod.outlook.com (10.141.229.141) with Microsoft SMTP
 Server (TLS) id 15.1.6.9; Mon, 3 Nov 2014 16:50:05 +0000
Received: from CO2PR05MB681.namprd05.prod.outlook.com ([10.141.229.141]) by
 CO2PR05MB681.namprd05.prod.outlook.com ([10.141.229.141]) with mapi id
 15.01.0006.000; Mon, 3 Nov 2014 16:50:05 +0000
From: "Chen, Catherine" <cchen@bsu.edu>
To: "Ketchum, Johnathon" <jcketchum@bsu.edu>
Subject: Fourth Annual IS Project and Case Competition
Thread-Topic: Fourth Annual IS Project and Case Competition
Thread-Index: AQHP94PqY8/sZGHvNku4Kgoocaqdwg==
Date: Mon, 3 Nov 2014 16:50:05 +0000
Message-ID: <1415033406349.82158@bsu.edu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [147.226.175.188]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:;SRVR:CO2PR05MB681;
x-exchange-antispam-report-test: UriScan:;
x-forefront-prvs: 0384275935
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(47034003)(189002)(50854003)(48214007)(111735001)(252514010)(199003)(99286002)(19580395003)(19300405004)(21056001)(86362001)(99396003)(110136001)(54356999)(2171001)(95666004)(19627405001)(2656002)(106356001)(106116001)(92726001)(117636001)(87936001)(77156002)(75432002)(120916001)(19617315012)(99936001)(50986999)(46102003)(89122001)(15975445006)(15395725005)(107886001)(229853001)(20776003)(105586002)(66066001)(90282001)(97736003)(16236675004)(101416001)(40100003)(122556002)(107046002)(92566001)(19580405001)(15202345003)(36756003)(4396001)(62966003)(64706001)(31966008)(88552001)(7059028)(579004);DIR:OUT;SFP:1102;SCL:1;SRVR:CO2PR05MB681;H:CO2PR05MB681.namprd05.prod.outlook.com;FPR:;MLV:sfv;PTR:InfoNoRecords;MX:1;A:1;LANG:en;
Content-Type: multipart/mixed; boundary="_005_141503340634982158bsuedu_"
MIME-Version: 1.0
X-OriginatorOrg: bsu.edu

x--_005_141503340634982158bsuedu_
Content-Type: multipart/alternative;
	boundary="_000_141503340634982158bsuedu_"

--_000_141503340634982158bsuedu_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Good morning,

The Miller College of Business at Ball State University in Muncie, Indiana,=
 has been hosting an annual IS Project and Case Competition since April 201=
2.  The event provides students the opportunity to network with IS/IT profe=
ssionals, showcase their projects, and to test their business problem-solvi=
ng skills.  Students from Western Michigan University shared their previous=
 experience at http://wmich.edu/news/2014/04/15265.  I also encourage you t=
o visit the Competition website for videos of past competitions and informa=
tion about the winning teams at http://cms.bsu.edu/academics/collegesanddep=
artments/mcob/majors-and-degrees/depts/isom/activitiesandopportunities/isco=
mpetition.
Removing myslef on all the bugs I'm cced on. Please NI me if you need something on MailNews Core bugs from me.
This kind of problem is not new problem. Bug 101719 is report on 2001-09-26.
Setting dependency for ease of trackng.
Depends on: 101719
Summary: some emails with multipart/alternative have no content in the body but shows up when viewing source ( multipart/alternative[ text/plain+text/html+text/plain_with_inline_filename ], "PC Tools AntiVirus" adds third part ) → some emails with multipart/alternative have no content in the body but shows up when viewing source ( multipart/alternative[ text/plain+text/html+text/plain with_inline_filename ], "PC Tools AntiVirus" adds third part )
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: