Disclaimer appears as Attachment in MIME format

Greetings,

We use Domino 6.5.2

I am capturing email messages in mail.box database, and when these are in MIME format I add a disclaimer to them with the following code :

'----------------------

Sub AddMIMEDisclaimer(mimeBody As NotesMimeEntity)

'----------------------

On Error Goto ERROR_HANDLER

Dim mimeMail As NotesMimeEntity

Dim mimeDisc As NotesMimeEntity

Dim strText As NotesStream

Set mimeMail = mimeBody.CreateParentEntity

Set mimeDisc = mimeMail.CreateChildEntity

Set strText = m_ses.CreateStream

	Call strText.WriteText(m_sDiscText)

	Messagebox("ADDED DISCLAIMER IN MIME")

Call mimeDisc.SetContentFromText(strText, “text/plain;charset=ISO-8859-7”, ENC_IDENTITY_8BIT)

Exit Sub

'-----------------------------------------

When I send a message through Notes Client or Microsoft Outlook the user receives all the info. If the recipient has Microsoft Outlook express he sees the attachment mark but the message contains the disclaimer in its Body correctly.

If the recipient uses Microsoft Outlook 2003 the whole disclaimer part appears like an attachment with a name ATTnnnn.txt

Am I doing something wrong ;

I’ve tried several things, to use “text/html”, to add the disclaimer to mimeMail insteaf of mimeDisc, or add it directlry to mimeBody but nothing…

I only want to have the disclaimer text added at the end of the message inside the Body.

Thanks for any answers.

Subject: Disclaimer appears as Attachment in MIME format

Hi Chris,

there is no simple way to add disclaimer to MIME formatted message. One of the example of attached ATTnnnn file is case, when MIME message is “multipart/alternative” content type.

You must implement some kind of mime parser to find correct location (between other mime parts) to put your disclaimer.

Its realy not easy, I think.

Konrad Miśniakiewicz

Subject: RE: Disclaimer appears as Attachment in MIME format

Do you think that between other mime parts would make a difference ;

Because as it is now it adds it at the end…

see the details of a message from the Outlook client.

The disclaimer is at the end…

Received: from Mypc ([100.100.100.90])

      by myserver.mydomain.gr (Lotus Domino 652HF734)

      with ESMTP id 2005020918254233-5 ;

      Wed, 9 Feb 2005 18:25:42 +0200 

Message-ID: 020401c50ec3$f7e92330$f8bb9109@ibm.com

From: “MyTest User 5 (Myserver3)” mytestuser5@myserver.gr

To: anotheruser5@myserver.gr,

<anotheruser4@myserver.gr>

Subject: test iso7 - enc 7bit

Date: Wed, 9 Feb 2005 18:25:29 +0200

MIME-Version: 1.0

X-Priority: 3 (Normal)

X-MSMail-Priority: Normal

X-Mailer: Microsoft Outlook Express 6.00.2800.1409

X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409

X-MIMETrack: Itemize by SMTP Server on myserver3/mydomain3(652HF734|December 23, 2004) at

09/02/2005 06:25:42 =?ISO-8859-7?B?7Ow=?=,

Itemize by Notes Server on Myserver(652HF734|December 23, 2004) at

09/02/2005 06:25:46 =?ISO-8859-7?B?7Ow=?=,

Serialize by POP3 Server on Myserver(652HF734|December 23, 2004) at

09/02/2005 06:25:56 =?ISO-8859-7?B?7Ow=?=,

Serialize complete at 09/02/2005 06:25:56 =?ISO-8859-7?B?7Ow=?=

Content-Type: multipart/mixed;

boundary="==IFJRGLKFGIR38743UHRUHIHD"

–==IFJRGLKFGIR38743UHRUHIHD

Content-Transfer-Encoding: 7bit

Content-Type: text/plain;

charset="iso-8859-7"

test cccc

test ccc

–==IFJRGLKFGIR38743UHRUHIHD

Content-Transfer-Encoding: 7bit

Content-Type: text/plain;charset=ISO-8859-7

This is a test Disclaimer

–==IFJRGLKFGIR38743UHRUHIHD–