• 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
Re: mail.app question: setting the subject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mail.app question: setting the subject


  • Subject: Re: mail.app question: setting the subject
  • From: Andrew Oliver <email@hidden>
  • Date: Sat, 01 Feb 2003 13:53:15 -0800

AFIAK, the subject of an incoming message is read-only. You're out of luck,
sorry.

Andrew
:)


On 2/1/03 1:01 PM, "list account" <email@hidden> wrote:

> 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.
_______________________________________________
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.

References: 
 >mail.app question: setting the subject (From: list account <email@hidden>)

  • Prev by Date: Simple Safari/IE Script question
  • Next by Date: Re: Stuck and no where to go... Please read..
  • Previous by thread: mail.app question: setting the subject
  • Next by thread: Stuck and no where to go... Please read..
  • Index(es):
    • Date
    • Thread