TIdAttachment and Content-ID header?

Giganews Newsgroups
Subject: TIdAttachment and Content-ID header?
Posted by:  Vincent Lemieux (vlemie…@orologic.com)
Date: Fri, 26 Sep 2003


I created a IdMessage with an attachment. The attached file is an image
which is part of the HTML body.
So I set a Content-ID header to the TIdAttachment.

With TIdAttachment.Create(vIdMessage.MessageParts, vFileName) Do { Set
Content-ID for the attached file }
ExtraHeaders.Values['Content-ID'] := '<' + vFileName + '>';

This way all goes well under Outlook Express or Netscape Messenger.

What I am trying to do is get back the message using IdPOP3 and load it to a
I am unable to read the Content-ID part of the attachment headers.
All I can get is this ...

From TIdAttachment.Headers.Text I get :
Content-Type: application/octet-stream;        name="excellent.gif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;        filename="excellent.gif"

From TIdAttachment.ExtraHeaders.Text I get ... Nothing.

I also saved the message using RetreiveRaw from the IdPOP3 component and the
Content-ID is there.

Content-Type: application/octet-stream;
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
Content-ID: <excellent.gif>

I use Indy components delivered with D7. (9.00.10)

I have read some other posts about this but I never found solutions. Thanks for any help.