Logo Search packages:      
Sourcecode: zope-maildrophost version File versions  Download package

def Products::MaildropHost::MaildropHost::MaildropHost::getLog (   self,
  max_bytes = 50000 
)

Return the maildrop daemon log contents, up to max_bytes bytes.

If the file path is invalid, return an empty string

Definition at line 225 of file MaildropHost.py.

00225                                      :
        """ Return the maildrop daemon log contents, up to max_bytes bytes.

        If the file path is invalid, return an empty string
        """
        if not os.path.isfile(self.maildrop_log_file):
            return ''

        log_handle = open(self.maildrop_log_file, 'r')
        log_data = log_handle.read(max_bytes)
        log_handle.close()

        return log_data


class Email:


Generated by  Doxygen 1.6.0   Back to index