perl and apple mail?

2008-03-10 Thread Joel Rees

Are any of you using perl plugins with apple's mail browser?

What I'm thinking of is something along the lines of supplementing  
the overly-simple rules in apple mail with some perl re. Things like  
funneling all the broken header junk off the top and into one folder,  
catching the real sharpos that like to put my mail address in the  
return address of the junk mail and putting that in a separate  
folder, that kind of stuff.


I'm sure it could be done with the scripting api, but I'm always all  
thumbs with applescript.


I've been looking around the web, and there are tantalizing clues,  
but not enough for a lame-brain like myself to grab hold of.


If anyone is doing something like this, can you hit me with a cluestick?

Joel Rees
(waiting for a 3+GHz ARM processor to come out,
to test Steve's willingness to switch again.)




Re: perl and apple mail?

2008-03-10 Thread Chris Devers

On Mar 10, 2008, at 7:24 AM, Joel Rees [EMAIL PROTECTED] wrote:


Are any of you using perl plugins with apple's mail browser?


What, you mean aside from SpamAssassin  procmail?

I've always felt it was easiest to just filter everything on the mail  
server, and not bother with whatever filtering abilities the mail  
client I'm using this month may or may not offer.


But then, I suppose this isn't a viable approach if you can't run  
software on the server.


If you can get off the ground at all in filtering with AppleScript,  
its fairly easy to just write '...do shell script...' and switch to  
Bash / Perl / etc from there. That may be a good approach here.


That or fetchmail piping into local SpamAssassin/procmail/etc filters,  
but oh look I'm getting silly again.



--
Chris Devers