[Buildbot-devel] problem with custom mail formatter
Alex Escott
AE at malaspina-labs.com
Thu Jan 13 19:21:34 UTC 2011
Hi all, sorry if this is a dumb question, I've read the docs but I'm new to this build bot thing.
In my master.cfg, I have:
def mail_formatter(mode, name, build, results, master_status):
log.msg('Calling mail formatter')
# other code to create body, type, subject, and return dictionary obj
c['status'].append(mail.MailNotifier(fromaddr="xxx",
relayhost="mail.xxx.com", smtpUser="xx", smtpPassword="xx",
extraRecipients=['xxx'],
messageFormatter=mail_formatter))
So... I was hoping that when it sends mail it would call my mail_formatter function. But it doesn't, it just calls it's default one and I get the default message.
Any ideas what I'm missing? Many thanks...
More information about the devel
mailing list