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

Class CatRule

source code

object --+
         |
        CatRule

Instance Methods [hide private]
 
__init__(self, cats, max_delay_secs=0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
max_delay_secs(self, job)
Returns: Max.remaining buffering time for that job.
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cats, max_delay_secs=0)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • max_delay_secs - Maximum time that a message of that categories can be buffered before sending. High values result in less (but bigger) mails. 0 == send each line nearly immediately (Note: because the worker thread pauses frequently, we have still a littly delay, so that still multiple messages might be collected per mail.)
  • cats - tuple of cats to catch, e.g. ("E","S"). None == catch any category (could cause high email traffic)
Overrides: object.__init__

max_delay_secs(self, job)

source code 
Returns:
Max.remaining buffering time for that job. None if rule does not apply.

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)