Here's an AppleScript to open the link in the X-POPFile-Link header added by POPFile email filtering software in your default browser. This is useful when POPFile has done a classification error and you want to reclassify the message. You can open multiple messages at once, but it's usable only if your browser opens links in new windows.
You'll need a Mac OS X version of Microsoft Entourage (and POPFile, of course). Copy the code below to Script Editor and save the script into Entourage Script Menu Items folder.
Don't contact me for instructions on how to install POPFile on Mac OS X. Michael Artz has already written excellent step-by-step instructions for your pleasure.
Updated November 18, 2003: Now works with Mac OS X 10.3.x and POPFile 0.20.x.
on runset openCount to 0 tell application "Microsoft Entourage"set selectedMessages to current messages repeat with theMessage in selectedMessagesset theHeaders to headers of theMessageset headerlist to every paragraph of theHeaders repeat with theHeader in reverse of headerlistif theHeader contains "X-POPFile-Link" thenset theChars to every character of theHeaderset theUrl to ""set start to false repeat with theChar in theCharsif theChar contains ">" thenset start to falseexit repeatend if if theChar contains "h" thenset start to trueend if if start is true thenset theUrl to theUrl & theCharend ifend repeat my openURL(theUrl)set openCount to openCount + 1end ifend repeatend repeatend tell if openCount is 0 then display dialog "Sorry, the selected messages didn't contain X-POPFile-Link header." buttons {"OK"} default button 1 with icon stopend run on openURL(theUrl)if theUrl is not "" thentell application "Dock" to open location theUrl with error reportingelsedisplay dialog "The URL in X-POPFile-Link header was empty." buttons {"OK"} default button 1 with icon stopend ifend openURL© 2003 Visa Kopu, visa@visakopu.net