Package rrlog :: Package contrib :: Module mail
[hide private]
[frames] | no frames]

Module mail

source code


Author: Ruben Reifenberg

Classes [hide private]
  CatRule
  Spooler
  CatBuffer
  SMTPMailer
Functions [hide private]
 
stop_all()
Stops all running spooler threads.
source code
 
now() source code
 
create_observer_smtp(server, serverpw, from_address, to_address, rules, format_line=None, subject='Log Digest', charset='latin-1', spooler_autostop=True)
Creates a mail notifier with a background worker thread.
source code
Variables [hide private]
  _spoolers = []
Function Details [hide private]

create_observer_smtp(server, serverpw, from_address, to_address, rules, format_line=None, subject='Log Digest', charset='latin-1', spooler_autostop=True)

source code 

Creates a mail notifier with a background worker thread. Convenience method which sets default values appropriate for many use cases. Appends the spooler to the modules spoolers list so that the stop_all function can stop it.

Parameters:
Returns:
An observer object, intended to be added into the observers list of the log.