Saving Inline attachments

Giganews Newsgroups
Subject: Saving Inline attachments
Posted by:  global (glob…@global.au.com)
Date: Tue, 19 Sep 2006

Hello,

I am using Indy10.0.52 on Delphi 6 to try and save an inline attachment of a text file to the harddisk via TidAttachment.SaveToFile. The text file is  indeed saved to the hardisk INCLUDING the end boundary. If the attachment isn't an inline attachment it will save as expected.

Is this a bug or am I doing something wrong.

Thanks in advance.

Toby

> From - Tue Sep 19 12:08:16 2006
X-Account-Key: account3
X-UIDL: '*H!!ZGK!!7ii!!)+j"!
X-Mozilla-Status: 0001
X-Mozilla-Status2: 10000000
Return-Path: <glob…@global.au.com>
Received: from [192.168.42.4] ([192.168.42.4])
    by proxy2.globalsystems3000.com (8.12.8/8.12.8) with ESMTP id k8J3Y23V032251
    for <glob…@global.au.com>; Tue, 19 Sep 2006 13:34:03 +1000
Message-ID: <450F4FE0.70108…@globalsystems3000.com>
Date: Tue, 19 Sep 2006 12:03:12 +1000
From: <glob…@global.au.com>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
To: glob…@global.au.com
Subject: Pants
Content-Type: multipart/mixed;
boundary="------------000008050704050104090904"
X-UIDL: '*H!!ZGK!!7ii!!)+j"!

This is a multi-part message in MIME format.
--------------000008050704050104090904
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

ben likes pants

--------------000008050704050104090904
Content-Type: text/plain;
name="thisfile.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="thisfile.txt"

this
is
a
test
file
--------------000008050704050104090904--

Replies