1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-10 06:48:19 +02:00

adds formatting updates and testing updates

This commit is contained in:
Joe 2021-02-07 22:49:48 -05:00
parent 83ee3bc4be
commit ea17f6df0b
7 changed files with 35 additions and 19 deletions

View file

@ -1,7 +1,5 @@
import imaplib
import logging
from os.path import exists
import json
from django.conf import settings
from .base import EmailTransport, MessageParseError
@ -108,7 +106,6 @@ class ImapTransport(EmailTransport):
# If the archive folder does not exist, create it
self.server.create(self.archive)
for uid in message_ids:
try:
typ, msg_contents = self.server.uid("fetch", uid, "(RFC822)")