Open
Bug 729052
Opened 14 years ago
Updated 4 years ago
forwarding non-mime message generates non existent attachment
Categories
(MailNews Core :: MIME, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: jacs, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
|
749 bytes,
text/plain
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Build ID: 20120215223356
Steps to reproduce:
I upgraded from 8 to 9 and now 11b2. I forward (inline) the output of a plain text cron job.
Actual results:
From version 9 onwards the forwarded message has a non existent attachment called "Attached Message Part"; see below for an example.
Message-ID: <4F4372A0.4030304@backlogs.co.uk>
Date: Tue, 21 Feb 2012 10:32:00 +0000
From: Chris Stenton <jacs@backlogs.co.uk>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120216 Thunderbird/11.0
MIME-Version: 1.0
To: Chris Stenton <xxx@xxxxx.xx.uk>
Subject: Fwd: Cron <root@pluto> /usr/home/jacs/scripts/vstats
References: <201202202359.q1KNx0oc012908@pluto.backlogs.co.uk>
In-Reply-To: <201202202359.q1KNx0oc012908@pluto.backlogs.co.uk>
X-Forwarded-Message-Id: <201202202359.q1KNx0oc012908@pluto.backlogs.co.uk>
Content-Type: multipart/mixed;
boundary="------------050204010408040404000109"
This is a multi-part message in MIME format.
--------------050204010408040404000109
Content-Type: multipart/alternative;
boundary="------------090703020906060101010503"
--------------090703020906060101010503
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
-------- Original Message --------
Subject: Cron /usr/home/jacs/scripts/vstats
Date: Mon, 20 Feb 2012 23:59:00 GMT
From: root@pluto.backlogs.co.uk (Cron Daemon)
To: root@pluto.backlogs.co.uk
total reject
Daily Virus
Total Virus Log
3 virus
--------------090703020906060101010503
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th>
<td>Cron <root@pluto> /usr/home/jacs/scripts/vstats</root@pluto></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Mon, 20 Feb 2012 23:59:00 GMT</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:root@pluto.backlogs.co.uk">root@pluto.backlogs.co.uk</a> (Cron Daemon)</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:root@pluto.backlogs.co.uk">root@pluto.backlogs.co.uk</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>total reject
Daily Virus
Total Virus Log
3 virus
</pre>
</body>
</html>
--------------090703020906060101010503--
--------------050204010408040404000109
Content-Type: text/plain; charset=windows-1252;
name="Attached Message Part"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Attached Message Part"
--------------050204010408040404000109--
Expected results:
Should just send without any non existent attachment. Do not get the same issue if I forward the message as an attachment rather than inline.
Comment 1•14 years ago
|
||
(In reply to Chris Stenton from comment #0)
I couldn't reproduce it here:
User Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
Application Build ID: 20120216022139
Forwarded message (with in-line settings) doesn't have the "Attached Message Part" section.
| Reporter | ||
Comment 2•14 years ago
|
||
(In reply to Hashem Masoud from comment #1)
> (In reply to Chris Stenton from comment #0)
> I couldn't reproduce it here:
> User Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216
> Thunderbird/10.0.2
> Application Build ID: 20120216022139
> Forwarded message (with in-line settings) doesn't have the "Attached Message
> Part" section.
I've now redirected cron job output from a number of different unix machine types and the problem appears to be only cron jobs from my freebsd boxes, centos etc seem to be fine. So, there must be a spurious character being added somewhere by freebsd sendmail that Thunderbird versions 9+ are sensative too. I'll look further into it.
| Reporter | ||
Comment 3•14 years ago
|
||
Having looked in detail; the problem is that using the 'mail' command on linux auto converts to mime. The mail command in FreeBSD does not convert to mime so a simple test message on freebsd will produce a mail envelope such as this
From jacs@backlogs.co.uk Tue Feb 28 09:08:14 2012
Received: from pluto.backlogs.co.uk (localhost [127.0.0.1])
by pluto.backlogs.co.uk (8.14.4/8.14.4) with ESMTP id q1S988rZ017454
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
for <root@pluto.backlogs.co.uk>; Tue, 28 Feb 2012 09:08:08 GMT
(envelope-from jacs@pluto.backlogs.co.uk)
Received: (from jacs@localhost)
by pluto.backlogs.co.uk (8.14.4/8.14.4/Submit) id q1S9886D017453
for root; Tue, 28 Feb 2012 09:08:08 GMT
(envelope-from jacs)
Date: Tue, 28 Feb 2012 09:08:08 GMT
From: Chris Stenton <jacs@backlogs.co.uk>
Message-Id: <201202280908.q1S9886D017453@pluto.backlogs.co.uk>
To: root@pluto.backlogs.co.uk
Subject: test
X-Scanned-By: MIMEDefang 2.72 on 192.168.100.12
X-Folder: Default
X-UID: 4
Status: RO
X-Keywords: NonJunk
Content-Length: 2
t
As can be seen this does not have a mime element and as such will not be forwarded inline correctly because Thunderbird 9+ assumes its mime/html.
The difference is that linux 'mail' will add
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="iso-8859-1"
to the envelope.
So to recreate this please use a mailer that sends only plain non-mime mail and check that sendmail does not change it to mime on the fly.
Chris
| Reporter | ||
Updated•14 years ago
|
Summary: forwarding plain text message generates non existent attachment → forwarding non-mime message generates non existent attachment
Comment 4•14 years ago
|
||
Chris can you save one offending message in thunderbird and attach it to this bug ?
| Reporter | ||
Comment 5•14 years ago
|
||
One offending message as requested.
| Reporter | ||
Comment 6•14 years ago
|
||
Ludovic have you been able to confirm the issue. Chris
Updated•14 years ago
|
Component: General → MIME
Product: Thunderbird → MailNews Core
QA Contact: general → mime
Updated•14 years ago
|
Attachment #601231 -
Attachment mime type: application/octet-stream → text/plain
Updated•14 years ago
|
Comment 8•11 years ago
|
||
Removing myslef on all the bugs I'm cced on. Please NI me if you need something on MailNews Core bugs from me.
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•