New File Available:

Name: Copy e-mail (headers at top)
Author: Alan Harper

Description: 
The following script copies a PowerMail email to the clipboard with
headers at the top in a format that Spamcop can parse (see <http://
www.spamcop.net/>). I believe that the clipboard reflects the "canonical"
format for an email, which may be useful for other purposes as well.

The text of the script is as follows:

property parent : load script alias (((path to scripting additions from
local domain) as text) & "Macscript.com Library")

tell application "PowerMail"
        set theMessages to current messages
        if (count of theMessages) > 1 then
                error -128
        end if
        set theMessage to item 1 of theMessages
        set theSource to source of theMessage
end tell
SetClipboard(theSource)

However, this textual representation can only be compiled by licensed
owners of the MacScript.com library. ****

-=-=-=-=-=-=

**** My Note: While this was in the document sent to me, I had no
problems compiling this script. Not sure what the story is here, but it
worked, so I'm not complaining. 

Wayne

-- 
"I could tell you a million stories, I could cost you your beliefs. But,
I've never stolen from a honest man, 'cause I'm the prince of thieves. "
-- Prince of Theives: Walking Wounded

Live DAT & Music Page: http://homepage.mac.com/wayneb/
Wayne's Music Calendar: http://ical.mac.com/wayneb/Music
PowerMail AppleScript Archives: http://homepage.mac.com/wayneb/powermail.html

Music Currently playing: 


Reply via email to