Пример #1
0
 def _store_log(self, is_sent):
     if ENABLE_LOGGING is True:
         if self._template.enable_log or not is_sent:
             MailLog.store(self._recipient_list, self._cc, self._bcc,
                           is_sent, self._template, self._user, self._num,
                           self._err_msg, self._err_exc, self._log_id,
                           self._backend, self._provider)
Пример #2
0
 def __store_log(self, is_sent):
     if ENABLE_LOGGING is True:
         if self._template.enable_log or not is_sent:
             MailLog.store(
                 self._recipient_list, self._cc, self._bcc,
                 is_sent, self._template, self._user,
                 self._num, self._err_msg, self._err_exc, self._log_id
             )
Пример #3
0
 def handle(self, *args, **options):
     MailLog.cleanup(days=LOGS_EXPIRE_DAYS)
Пример #4
0
 def __store_log(self, is_sent):
     MailLog.store(
         self._recipient_list, self._cc, self._bcc,
         is_sent, self._template, self._user,
         self._num, self._err_msg
     )