mentat.daemon.component.mailer module

Daemon component providing configurable mailing services to daemons.

The implementation is based on pyzenkit.zendaemon.ZenDaemonComponent.

class mentat.daemon.component.mailer.MailerDaemonComponent(**kwargs)[source]

Bases: ZenDaemonComponent

Implementation of ZenDaemonComponent for mailing services.

EVENT_EMAIL_SEND_IDEA = 'email_send_idea'
EVENT_LOG_STATISTICS = 'log_statistics'
STATS_CNT_ERRORS = 'cnt_errors'
STATS_CNT_MAILED = 'cnt_mailed'
STATS_COUNTERS = 'counters'
cbk_event_email_send_idea(daemon, args)[source]

Send email containing various number of idea messages.

cbk_event_log_statistics(daemon, args)[source]

Periodical processing statistics logging.

get_events()[source]

Get the list of event names and their appropriate callback handlers.