mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
PEP-8 Cleanup.
This commit is contained in:
parent
9f77c9221a
commit
9cdb2d9d1b
10 changed files with 120 additions and 96 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from mailbox import Babyl
|
||||
from django_mailbox.transports.generic import GenericFileMailbox
|
||||
|
||||
|
||||
class BabylTransport(GenericFileMailbox):
|
||||
_variant = Babyl
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import email
|
||||
from imaplib import IMAP4, IMAP4_SSL
|
||||
|
||||
|
||||
class ImapTransport(object):
|
||||
def __init__(self, hostname, port=None, ssl=False):
|
||||
self.hostname = hostname
|
||||
|
|
@ -28,6 +29,6 @@ class ImapTransport(object):
|
|||
yield message
|
||||
except email.Errors.MessageParseError:
|
||||
continue
|
||||
self.server.store(key, "+FLAGS", "\\Deleted");
|
||||
self.server.store(key, "+FLAGS", "\\Deleted")
|
||||
self.server.expunge()
|
||||
return
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from mailbox import Maildir
|
||||
from django_mailbox.transports.generic import GenericFileMailbox
|
||||
|
||||
|
||||
class MaildirTransport(GenericFileMailbox):
|
||||
_variant = Maildir
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
from mailbox import mbox
|
||||
from django_mailbox.transports.generic import GenericFileMailbox
|
||||
|
||||
|
||||
class MboxTransport(GenericFileMailbox):
|
||||
_variant = mbox
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
from mailbox import MH
|
||||
from django_mailbox.transports.generic import GenericFileMailbox
|
||||
|
||||
|
||||
class MHTransport(GenericFileMailbox):
|
||||
_variant = MH
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
from mailbox import MMDF
|
||||
from django_mailbox.transports.generic import GenericFileMailbox
|
||||
|
||||
|
||||
class MMDFTransport(GenericFileMailbox):
|
||||
_variant = MMDF
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import email
|
||||
from poplib import POP3, POP3_SSL
|
||||
|
||||
|
||||
class Pop3Transport(object):
|
||||
def __init__(self, hostname, port=None, ssl=False):
|
||||
self.hostname = hostname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue