in reply to Message Editing in Outlook using Win32::OLE

Hahahahahahahahahahahahahahahahaha... you're not laughing now RTefffF! I gotcha, and I can prove it...
$inspector->CurrentItem->SaveAs( 'c:\temp\message.rtf', olRTF );
Using RTF::Document and RTF::Parser I should be able to edit the file into what I want. My only dilemma now is how to get my new RTF back into the current message. I suppose I could dump it and create a whole new message. But that's a pain if there are attachments. And I don't know how to import the RTF (with all its codes and everything) into a new message any more than I know how to replace the existing message with my new content.

Again, any help will be met with joyous abandon

   larryk                                          
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"

Replies are listed 'Best First'.
Re: Re: Message Editing in Outlook using Win32::OLE
by Foggy Bottoms (Monk) on Aug 08, 2003 at 14:27 UTC
    Hi Larryk,

    Perhaps could I suggest you use HTML formatting instead of rich text and then access the html code throught the property htmlbody rather than solely body... It's much easier and at least everyone recognizes HTML, which isn't so true about rtf...
    Good luck and let me know if you've taught rtf the lesson it needs...