[Pythonmac-SIG] Controlling Mail.app from Python
David Warde-Farley
david.warde.farley at utoronto.ca
Sun May 28 19:58:39 CEST 2006
On 28-May-06, at 10:12 AM, Daniel Lord wrote:
> The one thing I haven't succeeded in doing was to create a pure
> Python mail filter. I had to write an AppleScript hack that used the
> last word in the mail filter title as the name of a Python script to
> run and pass it the rule name and message id on the command line. But
> that is more a limitation of Apple Mail's external script invocation
> capability than its AppleScript implementation.
Maybe for such complicated interactions a plugin would do the trick?
(I'm not totally sure, I haven't explored their full capability).
If you're interested see the tutorial at
http://www.bazza.com/~eaganj/weblog/2006/03/29/demystifying-mail-app-
plugins
Coincidentally, the author uses Python.
DWF
More information about the Pythonmac-SIG
mailing list