[MlMt] MailMate event scripts
Helge Andre Gudmundsen
helgeg at helgegudmundsen.com
Fri May 13 16:51:42 UTC 2011
On 13 May 2011, at 14:26, Benny Kjær Nielsen wrote:
> Try fetching this version:
> http://updates.mailmate-app.com/archives/MailMate_r2098.tbz
The latest release I see there is r2096. I will check back in a while.
> The release notes describe a debug variable. Use that and then look
> for output in Console.app.
>
> It should look like something as follows:
>
> Loaded and parsed script named: “New Mail” (disabled)
> Loaded and parsed script named: “Strip Mailman Footer” (disabled)
> Loaded and parsed script named: “Strip Whitespace” (enabled)
> Event type “account.synchronized” for 2 messages
> 0 messages triggered “Sound for MailMate Receipts”
> 1 messages triggered “Sound for Inbox”
> 1 messages triggered “Notification for Inbox”
Perfect!
In the meantime I have found out that my script actually triggers, but
that MailMate does not play any sounds whatsoever on my system. Could be
a configuration issue on my end, so I will look into it.
Playing sounds is only a way to get to know the scripting, and not an
end in itself. What I would like to do, is to check for new messages
that contain a given subject and then pass on the body of the message to
a script that parses it to create OmniFocus tasks based on the body
text.
This leads me to two further questions. Will it be possible to have a
script trigger on the receipt of new messages and pass the subject and
body on to a shell script?
In the examples, the script tag always contains an inline script. Is it
possible to call a script external to mailmate?
> I hope this can help you. You are welcome to ask more questions (also
> on the mailing list).
Anyway, thanks very much for your help, it is much appreciated.
Best regards,
Helge
More information about the mailmate
mailing list