• 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
redirect in mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

redirect in mail.app


  • Subject: redirect in mail.app
  • From: John DeYoung <email@hidden>
  • Date: Tue, 24 Feb 2004 00:08:00 -0500

hi all -

this one's probably pretty simple, and i even had it working, until i cleaned up my code...

what i'd like to do is allow the user to select a message or a group of messages from within mail.app, then by running my handy-dandy script, redirect them all to a given email address. the idea is to train our spam filters based on messages we collect - ones that have made it through the filters - but the thought of teaching our users about redirecting makes me a little woozy.

here's my code so far:

tell application "Mail"
set theList to selection
repeat with theMsg in theList
set theRedirect to redirect theMsg with opening window --this will be 'without opening window'
tell theRedirect to make new to recipient with properties {address:"email@hidden"} -- [1]
--send theRedirect
end repeat
end tell

[1] this is the problematic part: the subject lines are being altered to include "(Modified By John DeYoung)" or whoever sends them at their ends. of course, this only happens in mail.app - a similar script for entourage doesn't muck with anything. particularly galling is the fact that i'd had it all working and deleted the line that went here originally (i was cleaning up, and apparently drove too fast...sigh).

anyway, if anyone has an alternate way of setting the to recipient of a given message, my now-mushy gray matter will be very grateful.

thanks in advance,
-john.
--
at the end of the longest line / that's where i will always be
if you need to find me / just go to the end of the longest line
_______________________________________________
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: redirect in mail.app
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: can't make document
  • Next by Date: Re: redirect in mail.app
  • Previous by thread: on synonyms and homonyms (clarification)
  • Next by thread: Re: redirect in mail.app
  • Index(es):
    • Date
    • Thread