• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
mail.app question: setting the subject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: mail.app question: setting the subject
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Passing data to & from shell scripts
  • Next by Date: Stuck and no where to go... Please read..
  • Previous by thread: Re: Passing data to & from shell scripts
  • Next by thread: Re: mail.app question: setting the subject
  • Index(es):
    • Date
    • Thread