Thanks for the code snippet Jane, it was very useful!
I working on the log-to-email thing too. I found the event variable "_logs" which is a standard array:
>>> evt._logs
[('user', '2012/07/11 14:43:13.000', 'message bla bla bla'), ('user', '2012/07/11 13:28:35.000', 'Event state changed to Acknowledged')]
But the parser can't handle the variable:
Error formatting event body: '_logs'
Well, the error is obviously due to the fact that the variable is a structure rather than it's a string or integer.
Does anybody have a idea for pretty printing the _logs variable to the email?