Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : Indy10 / empty filename for attachment

www.cryer.info
Managed Newsgroup Archive

Indy10 / empty filename for attachment

Subject:Indy10 / empty filename for attachment
Posted by:"Ralf Schmitt" (unerreichb..@schmittbit.de)
Date:Sun, 10 Jul 2005 01:54:46

hi all !

my english is more than terrible, but maybe there's someone who did
understood my question!?

i have coded an mailclient with indy10 komponents.
the most things are working pretty
but one problem is by decoding the mail (see below)

there are two "attachments" if i was received the message with outlook
express

1. Delivery error report.dat
2. Betreff

but indy cannot set the filename. it will be empty

if (Msg.MessageParts.Items[intIndex] is TIdAttachmentFile) then
                begin //general attachment
                     [...]
                      sFilename :=
TIdAttachmentFile(Msg.MessageParts.Items[intIndex]).filename;
                     [...]
                end;
[...]

Filename is empty!

with outher mails (with attachments) there are no problems.

WHY there is no filename????
an why outlook express is generating filenames?

The RAW mail ...
---------------------------------

Return-Path: <>
X-Original-To: xxx@xxx.de.de
Delivered-To: xxx@xxx.xxx.com
Received: by xxx.xxx.com (Postfix)
id DD3D2B6F87; Sun, 10 Jul 2005 00:31:15 +0200 (CEST)
Date: Sun, 10 Jul 2005 00:31:15 +0200 (CEST)
From: MAILER-DAEMON@xxx.xxx.com (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: xxx@xxx.de.de
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="88AC7B6F7F.1120948275/xxx.xxx.com"
Message-Id: <20050709223115.DD3D2B6F87@xxx.xxx.com>
X-UIDL: =WW"!8TG!!Kg-"!lj6!!

This is a MIME-encapsulated message.

--88AC7B6F7F.1120948275/xxx.xxx.com
Content-Description: Notification
Content-Type: text/plain

This is the Postfix program at host xxx.xxx.com.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

   The Postfix program

<xxx@xxx.de>: Name service error for name=xxx.de type=A: Host
    not found

--88AC7B6F7F.1120948275/xxx.xxx.com
Content-Description: Delivery error report
Content-Type: message/delivery-status

Reporting-MTA: dns; xxx.xxx.com
Arrival-Date: Sun, 10 Jul 2005 00:31:06 +0200 (CEST)

Final-Recipient: rfc822; xxx@xxx.de
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; Name service error for name=xxx.de type=A:
    Host not found

--88AC7B6F7F.1120948275/xxx.xxx.com
Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: from xxxxx (p000.00.00.000.xxx.xxx.de [000.00.00.000])
by xxx.xxx.com (Postfix) with ESMTP id 88AC7B6F7F
for <xxx@xxx.de>; Sun, 10 Jul 2005 00:31:06 +0200 (CEST)
From: "xxx@xxx.de" <xxx@xxx.de>
Subject: Betreff
To: xxx@xxx.de
Content-Type: text/plain
Reply-To: xxx@xxx.de
Disposition-Notification-To: xxx@xxx.de
Date: Sun, 10 Jul 2005 00:31:09 +0200
Message-Id: <20050709223106.88AC7B6F7F@xxx.xxx.com>

sdfsdfsfsdfsd


--88AC7B6F7F.1120948275/xxx.xxx.com--

Replies:

www.cryer.info
Managed Newsgroup Archive