mail.app question: setting the subject
mail.app question: setting the subject
- Subject: mail.app question: setting the subject
- From: list account <email@hidden>
- Date: Sat, 1 Feb 2003 14:01:54 -0700
Is it possible to change the subject of a received mail message, I
tried this and got an error
tell application "Mail"
set usermailbox to mailbox named "Lists/Apps/Userland/Radio/user"
set theMessageList to messages in usermailbox
repeat with currentMessage in theMessageList
set theSubject to subject of currentMessage
if theSubject contains "[radio-userland] New Message: " then
set theSubject to text 31 thru -1 of theSubject
set subject of currentMessage to theSubject --this is line that fails
end if
end repeat
end tell
I am planning on making it more general after I get this example
working, ideally I would want to have a script that could be called by
the filters to clean up the subjects. Does anyone have any examples of
this?
Sam D
====================
Samuel C. DeVore email@hidden
www.TeachesMe.com
Because if you are not managing your content...
Who is?
See us for content management for teachers/schools/students
=====================
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.