Eudora and POPFile connection with AppleScript

Feb 06, '04 10:34:00AM

Contributed by: ole-olo

I am (still) using Eudora for my e-mail. And POPFile for spam filtering. This works quite well. The only problem arises when I want to change the classification of a message. In order to do this, I have to open the message, sometimes show the 'Blah-Blah'-headers and then click the corresponding 'http://127.0.0...' URI.

This is not working well. I want a one-click solution. This hint has an AppleScript for MailSmith, but there was none for Eudora (IIRC). So I did one myself.

I wrote a little AppleScript which does this automatically [Download, or read the rest of the hint]. Place it in your Eudora Scripts folder (either /Applications -> Eudora.app -> Contents -> MacOS -> Eudora Stuff -> Scripts/ or ~/Library -> Scripts -> Eudora). You also have to turn on 'X-POPFile-Link' in POPFile's preferences. Then choose "Eudora2POPFile" from the scripts menu and the currently selected message is opened in POPFile. There is no error handling at all, it either works or does not.

Here's the script:


-- Eudora2POPFile
-- 040131 ole saalmann

-- If you have a message selected or opened in Eudora
-- and this message contains a X-POPFile-Link header,
-- this script will open the relevant POPFile page in
-- you webbrowser.
--This is real simple, either works or doesn't, no error handling.

global spamurl

try
  tell application "Eudora"
    set spamurl to (get field "X-POPFile-Link:" of message 0)
  end tell

  set text item delimiters to " "
  set spamurl to text items of spamurl
  set spamurl to last item of spamurl

  open location spamurl
end try

Comments (3)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2004020103573218