I would like to be able to use bogofilter directly from within Mail.app for a number of reasons, and because AppleScript doesn't have a concept of pipes (do shell script can't handle input over 64kb), I'd like to find a solution to run a call-back from the command line of the form:


program a1 a2 a3 | bogofilter -Ns

where program is asking Mail.app for the raw source of the message from account a1, mailbox a2, and with message id a3. This would then be called from AppleScript with do shell script.

Possible with perl and Mac::?? Needs AppleEvents and I'm better off with C? Where do I start?

-- Paul

Reply via email to