Browse Source

Remove unused context updates

12.0-mig-module_prototyper_last
Akim Juillerat 6 years ago
committed by jcoux
parent
commit
2ca6e14cca
  1. 6
      mail_cleanup/models/fetchmail_server.py

6
mail_cleanup/models/fetchmail_server.py

@ -100,15 +100,9 @@ class FetchmailServer(models.Model):
def fetch_mail(self):
# Called before the fetch, in order to clean up right before
# retrieving emails.
context = self.env.context.copy()
context['fetchmail_cron_running'] = True
for server in self:
_logger.info('start cleaning up emails on %s server %s',
server.type, server.name)
context.update({
'fetchmail_server_id': server.id,
'server_type': server.type,
})
imap_server = False
if server.type == 'imap':
try:

Loading…
Cancel
Save