e-mail message as attachment (Indy10)

Giganews Newsgroups
Subject: e-mail message as attachment (Indy10)
Posted by:  Etienne van Tonder (e…@infoware.com.au)
Date: Thu, 5 Aug 2004

When someone sends me an e-mail that has another e-mail as an attachment, it
has the following headers:

Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment

What is the correct way to handle these types of attachments. Normally an
attachment has a filename but these attachments have no filename. Should I
check for the Content-Type: message/rfc822 and then assume this is an e-mail
attachment and create my own filename when saving the attachment. Is there
another way to check if an attachment is a e-mail message.

Regards,

Etienne.

Replies