How to save body of email to file via Lotus Script agent?

Hi,

I’d like to ask you. I need to save body of email to external txt file. I mean in a similar way as the export does - headers + message. But sometimes the body of email is formatted somehow (richtext/rtf?) and I need to save this kind of formatting as well to text file. Is that possible? Since I’m begining to script I need some start up point. Sample script is welcomed!

Thanks in advance

Subject: more info needed

You are asking for incompatible thing. If you want to save in an “external text file” then you can do it easily, but you’ll lose all formatting because a text file can only hold text. It you want to keep the formatting, then you need a richer target (OpenOffice/Symphony/MS Word or XML)