• 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: Custom spam filter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom spam filter


  • Subject: Re: Custom spam filter
  • From: "Edward K. Chew" <email@hidden>
  • Date: Wed, 8 Nov 2006 13:03:52 -0500

On 7-Nov-06, at 7:03 PM, kai wrote:


On 7 Nov 2006, at 14:54, Edward K. Chew wrote:

There are certain types of spam that Mail can never seem to identify, so I wrote a short script to be triggered by a rule. It does a very good job of finding the junk that usually flies in under the radar, but for some reason, I cannot seem to get it to move the spam into the Junk mailbox.

At first, I thought it would be as simple as: move theMessage into mailbox "Junk". That did absolutely nothing. Then I tried: set junk mail status of theMessage to true. This seemed to do the right thing, but only after I selected everything in the In box and apply the rules manually. It would not process the messages out as they were coming in.

Try something like this, Ted:

--------

tell msg (* or whatever variable you're using *)
	set junk mail status to true
	move to mailbox "junk" of its mailbox's account
end tell


Thanks for the advice, kai! I tried the above, and this time, the spam appeared in BOTH Junk and Inbox. After quitting Mail and launching it again, however, I noticed the phantom Inbox copy was gone. Maybe I'll try telling Mail to synchronizing with the account in question afterwards. It could be a problem with mac.com accounts.

-Ted

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >Custom spam filter (From: "Edward K. Chew" <email@hidden>)
 >Re: Custom spam filter (From: kai <email@hidden>)

  • Prev by Date: Re: URL Access script to a remote volume
  • Next by Date: Re: URL Access script to a remote volume
  • Previous by thread: Re: Custom spam filter
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread