• 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: Moving Mail....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving Mail....


  • Subject: Re: Moving Mail....
  • From: cricket <email@hidden>
  • Date: Mon, 26 Aug 2002 09:39:45 -0700

What error are you getting? If you do a 'get every mailbox', does it return a mailbox called "Spam"?

- cricket

On Monday, August 26, 2002, at 09:14 AM, Jim Burton wrote:

tell application "Mail"
activate
set allacounts to every account
set spambox to mailbox "Spam"
repeat with anacount in allacounts
set everymess to every message of mailbox "INBOX" of anacount
repeat with eachmess in everymess
if (is junk mail of eachmess) then
tell message eachmess
activate
-- set mailbox to spambox
--generates error
end tell
end if
end repeat
end repeat
end tell

----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
Cardboard reindeer stand proudly amongst the dead trees and angry salt.
_______________________________________________
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: Moving Mail....
      • From: Philip Aker <email@hidden>
    • Re: Moving Mail....
      • From: Jim Burton <email@hidden>
References: 
 >Moving Mail.... (From: Jim Burton <email@hidden>)

  • Prev by Date: Re: Scripting Mail
  • Next by Date: Re: New Address Book in Jaguar 10.2...
  • Previous by thread: Moving Mail....
  • Next by thread: Re: Moving Mail....
  • Index(es):
    • Date
    • Thread