Package svnmailer :: Package notifier :: Module _multimail
[hide private]

Module _multimail

source code

email notifier


Author: Andr\xc3\xa9 Malo

Classes [hide private]
  Error
Base exception for this module
  InvalidMailOption
Invalid Multipart mail option
  MultiMailNotifier
Bases class for mail notifiers using attachments for the diffs
  SplittingDecorator
Splits the content between diffs if it gets too long
  SplittingTruncatingDecorator
split/truncate decorator
  TruncatingDecorator
Truncates the mail body after n bytes
  URLDecorator
Shows only the urls, if the mail gets too long
  URLTruncatingDecorator
Truncates url-only mails
  DiffDescriptor
Container class to describe a dumped diff
  _MultiMail
A multimail class
  _SinglePart
A single part of a multipart mail
Functions [hide private]
list
getNotifier(cls, config, groupset)
Returns an initialized notifier or nothing
source code
class
decorateNotifier(cls, action, config, groupset)
Decorates the notifier class (or not)
source code
Variables [hide private]
  __package__ = 'svnmailer.notifier'
Function Details [hide private]

getNotifier(cls, config, groupset)

source code 

Returns an initialized notifier or nothing

Parameters:
  • cls (class) - The notifier base class to use
  • config (svnmailer.settings.Settings) - The svnmailer config
  • groupset (list) - The groupset to process
Returns: list
The list of notifiers (containing 0 or 1 member)

decorateNotifier(cls, action, config, groupset)

source code 

Decorates the notifier class (or not)

Parameters:
  • cls (class) - The notifier class
  • action (unicode) - The configured action
  • config (svnmailer.settings.Settings) - The svnmailer config
  • groupset (list) - The groupset to process
Returns: class
The decorated class or None