Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to mark Junk mail via rules in Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to mark Junk mail via rules in Mail.app
Authored by: fortepianissimo on Jun 04, '04 12:06:19PM

(this can be a bit technical for some)

I'm the developer of JunkMatcher (open source) - a spam filter plugin for Mail.app. From my experience dealing with Mail.app, this script can cause Mail.app to hang from time to time. The reason is that any applescript executed in rules is executed in the main execution thread of Mail.app. When a message is marked as junk, a recursive lock needs to be acquired, but if at the same time some other thread already acquired the lock, and wants to message the main thread, a deadlock will form. The end result - wheel of doom.

To my knowledge there is no solution to this problem using just AppleScript. In JunkMatcher this problem is worked around by creating a separate thread to move/mark messages. You're welcome to try JunkMatcher as it already provides this functionality.

http://www.macupdate.com/info.php/id/13452



[ Reply to This | # ]
For us 10.2 users ....
Authored by: alexmathew on Jun 04, '04 12:37:48PM

Junkmatcher works only with 10.3 and above - so for us who have not or dont want to upgrade this hint is very useful.
AM



[ Reply to This | # ]
For us 10.2 users ....
Authored by: DavidRavenMoon on Jun 05, '04 01:20:54PM

I can understand not having ungraded, but not wanting to upgrade to Panther? Why on Earth not? It's much improved over Jaguar! Made this old G4/466 feel like a new Mac!

Back to this hint... I find Mail's Junk filter works great.

Just my 2 cents.



[ Reply to This | # ]
For us 10.2 users ....
Authored by: alexmathew on Jun 06, '04 02:30:44AM

Why not upgrade to 10.3 ? - Well $100 to begin with.

I have spent enough time tweaking 10.2 so that it is stable and EVERYTHING works exactly as it should. Except for a few apps that insist on using 10.3 - almost everything else seems to be available or working on 10.2.

There are a significant number of us using 10.2 - there must be a reason!

I will upgrade - call me a cheapo - but I'll wait until 10.4 is out and the 10.3 is available at a significant discount.

AM




[ Reply to This | # ]
An AppleScript to mark Junk mail via rules in Mail.app
Authored by: jprickitt on Jun 07, '04 10:17:00AM

JunkMatcher is great! Thanks for creating it. I still have a few that it doesn't catch but overall it cleans out hundreds of spams a day.



[ Reply to This | # ]