Matthias, I wrote a script to do something almost exactly like this. You'll need the free Satimage OSAX.
<applescript> --Delete From Content by Andy Fragen <[EMAIL PROTECTED]> --Modified to use regex from Satimage.osax --<http://www.satimage.fr/software/en/downloads_osaxen.html> --Version 1.4 property addedContentRE : {"^/*.*CommuniGate.*$" & return} tell application "PowerMail" set theMessages to current messages repeat with msg in theMessages set mContent to content of msg as string if mContent = "" then --display dialog ("\"" & subject of msg & "\" has no content per PowerMail.") try --set mContent to HTML content of msg as string --on error return end try end if repeat with i from 1 to the number of items of addedContentRE try set (content of msg) to change item i of addedContentRE in mContent into "" with regexp on error display dialog ("Error stripping added content from message \"" & subject of msg & "\"") end try end repeat end repeat end tell </applescript> The property addedContentRE is the regex search string. I was just deleting it but you can change it to something else by modifying the script somewhat. -- Andy Fragen On Sun, Jul 30, 2006, Matthias Schmidt said: >Hello, > >a question for the AppleScript Gurus: >how can I set a received message to "write". >I want to change some predefined text in a couple of received mails. >Is that possible? > >All the best > >Matthias > >----------------------------------------------- >Admilon Consulting GmbH >http://www.admilon.com >Tel. +81-736-56-3905 >----------------------------------------------- > > >

