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

Class MultiMailNotifier

source code

        object --+            
                 |            
_base.BaseNotifier --+        
                     |        
    _text.TextNotifier --+    
                         |    
        _mail.MailNotifier --+
                             |
                            MultiMailNotifier

Bases class for mail notifiers using attachments for the diffs

Instance Methods [hide private]
 
__init__(self, config, groupset, *args, **kwargs)
Initialization
source code
tuple
_parseMailType(self)
Returns the multimail options
source code
tuple
composeMail(self)
Composes the mail
source code
 
sendMail(self, sender, to_addr, mail)
Sends the mail (abstract method)
source code
list of _MultiMail
_getMultiMails(self)
Returns the multipart mail(s)
source code
file like object
_getMailWriter(self, fp)
Returns a mail writer
source code
 
writeDiffList(self)
Writes the commit diffs into temp files
source code
 
writeContentDiff(self, change, raw=False)
Dump the diff into a separate file
source code
 
writePropertyDiffs(self, diff_tokens, change, raw=False)
Dump the property diff into a separate file
source code
 
_getDiffStream(self, fp)
Returns the (possibly decorated) diff stream
source code

Inherited from _mail.MailNotifier: composeHeaders, getBasicHeaders, getCustomHeaders, getMailAddresses, getMailSubject, getMails, getTransferEncoding, run, writeNotification

Inherited from _text.TextNotifier: getDate, writeContentDiffAction, writeDiff, writeLockData, writeMetaData, writePathInfo, writePathList, writePropertyDiff, writePropertyDiffAction, writeRevPropData

Inherited from _text.TextNotifier (private): _doWritePathList

Inherited from _base.BaseNotifier: dumpContent, getAuthor, getContentDiffAction, getContentDiffUrl, getContentEncodingProperty, getContentEncodings, getDiffTokens, getDiffer, getEncodingFromMimeType, getLog, getPropertyDiffAction, getTempDir, getTempFile, getTime, getUrl, isBinaryProperty, isOneLineProperty, isUTF8Property

Inherited from _base.BaseNotifier (private): _getContentEncoding

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __implements__ = [<class 'svnmailer.notifier._mail.MailNotifie...

Inherited from _mail.MailNotifier: COMMIT_SUBJECT, LOCK_SUBJECT, REVPROP_SUBJECT, UNLOCK_SUBJECT

Inherited from _text.TextNotifier: OUTPUT_SEPARATOR, OUTPUT_SEPARATOR_LIGHT

Inherited from _base.BaseNotifier: ADD, COPY, DELETE, ENC_CONFIG, ENC_DEFAULT, ENC_PROPERTY, MODIFY, NONE, PROPCHANGE

Inherited from _base.BaseNotifier (private): _diffable_tests

Instance Variables [hide private]

Inherited from _mail.MailNotifier (private): _header_re

Inherited from _text.TextNotifier: changeset, config, differ, fp

Inherited from _base.BaseNotifier (private): _groupset, _penc_cache, _settings

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, config, groupset, *args, **kwargs)
(Constructor)

source code 

Initialization

Overrides: object.__init__

_parseMailType(self)

source code 

Returns the multimail options

Returns: tuple
The diff content type and disposition

composeMail(self)

source code 

Composes the mail

Returns: tuple
The senders, the receivers, the mail(s)
Overrides: _mail.MailNotifier.composeMail

sendMail(self, sender, to_addr, mail)

source code 

Sends the mail (abstract method)

Parameters:
  • sender - The mail sender (envelope from)
  • to_addr - The receivers
  • mail - The mail object
Overrides: _mail.MailNotifier.sendMail

_getMultiMails(self)

source code 

Returns the multipart mail(s)

Returns: list of _MultiMail
The mail(s)

_getMailWriter(self, fp)

source code 

Returns a mail writer

Parameters:
  • fp (file like object) - The stream to wrap
Returns: file like object
The file object

writeDiffList(self)

source code 

Writes the commit diffs into temp files

Overrides: _text.TextNotifier.writeDiffList

writeContentDiff(self, change, raw=False)

source code 

Dump the diff into a separate file

Parameters:
  • change - The particular change to process
  • raw - Prefer no recoding?
Overrides: _text.TextNotifier.writeContentDiff

writePropertyDiffs(self, diff_tokens, change, raw=False)

source code 

Dump the property diff into a separate file

Parameters:
  • diff_tokens - The valid diff tokens
  • change - The particular change to process
  • raw - Don't recode the properties?
Overrides: _text.TextNotifier.writePropertyDiffs

Class Variable Details [hide private]

__implements__

Value:
[<class 'svnmailer.notifier._mail.MailNotifier'>]