*This message was transferred with a trial version of CommuniGate(tm) Pro*
Sent to Mikael directly but it's here.

<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 5.1.1a1"
        set theMessages to current messages
        repeat with msg in theMessages
                set mContent to content of msg as string
                
                if mContent = "" then
                        try
                                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>

--
Andy Fragen

On Tue, Feb 1, 2005, Mikael Byström said:

>Andy Fragen said:
>
>>I have a script for that too. ;-)
>Where?
>
>PM 5.1 | OS X 10.3.6 | Powerbook G4/400 | 768 MB RAM | 30 GB HD
>
>
>




Reply via email to