Closed Bug 399451 Opened 17 years ago Closed 17 years ago

embedded emails attachments are not displayed if encoded as base64

Categories

(Thunderbird :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 333880

People

(Reporter: jilerner, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty) Build Identifier: 1.5.0.13 (20070824) If embedded email attachment (Content-type: message/rfc822) is encoded with base64 (Content-Transfer-Encoding: base64), then embedded attachment is shown empty. Reproducible: Always Steps to Reproduce: 1. The script "base64-embed" is included below. Use perl script "base64-embed" to generate and send test message. Send test message once fro Firefox, once to Outlook as folows: perl base64-embed Sender@Domain Recepient@Domain SMTP-SERVER 2. In Firebox, receive the message and double-clock on the attachment. 3. Observe that attachment looks empty in Firefox, subject is empty. 4. Observe that raw message is apparenty rfc-complaint and that Outlook shows the attachment properly if you double-clock on the atachment. In order to see the contents of the message sent, do: perl base64-embed Sender@Domain Recepient@Domain - Actual Results: Attachment looks empty in Firefox, subject is empty. The message appears to be RFC-compliant. In Outlook, attachment is shown correctly. Expected Results: That base-64-encoded email attachment be displayed correctly in Firefox. ------------- script base64-embed -------------------- #!/usr/bin/perl $USAGE=" usage: FROM TO SERVER to send FROM TO - to print the raw message without sending\n"; die "usage: FROM TO SERVER\n" if (@ARGV != 3); $FROM = $ARGV[0]; $TO = $ARGV[1]; $SERVER = $ARGV[2]; die "Missing \@ in FROM\n" if $FROM !~ /.\@./; die "Missing \@ in TO\n" if $TO!~ /.\@./; $EMBEDED_EMAIL="Date: Tue, 09 Oct 2007 11:04:19 -0200 From: sender1 <sender1@foobar.info> To: receiver1 <receiver1@foobar.info> Subject: this is embedded email This is body of embedded email "; $base64_encoded = encode_base64($EMBEDED_EMAIL); $DATA="To: <$TO> From: <$FROM> Subject: this is outer email with base64 embedded email MIME-version: 1.0 Content-type: multipart/mixed; boundary=\"(_1_2_3_)\" --(_1_2_3_) Content-Type: text/plain Content-Transfer-encoding: 7bit A simple test message --(_1_2_3_) Content-Disposition: inline Content-Type: message/rfc822 Content-Transfer-Encoding: base64 $base64_encoded --(_1_2_3_)-- "; if( $SERVER eq "-" ) { print $DATA; exit; } ($smtp = Net::SMTP->new($SERVER)) || die "Connect error"; $smtp->mail($FROM); $smtp->to($TO); $smtp->data(); $smtp->datasend($DATA); $smtp->dataend(); $smtp->quit; use Net::SMTP; use MIME::Base64;
> Send test message once fro Firefox, once to Outlook as folows: Should read: Send test message once to Firefox, once to Outlook
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.