mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Update registers names & imports
This commit is contained in:
parent
6ded51bcde
commit
d4e052bb79
3 changed files with 7 additions and 6 deletions
|
|
@ -35,7 +35,7 @@ from django_mailbox.signals import message_received
|
|||
from django_mailbox.transports import Pop3Transport, ImapTransport, \
|
||||
MaildirTransport, MboxTransport, BabylTransport, MHTransport, \
|
||||
MMDFTransport, GmailImapTransport
|
||||
from django_mailbox.transports.registry import transport_registry
|
||||
from django_mailbox.transports.registry import registry
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -224,7 +224,7 @@ class Mailbox(models.Model):
|
|||
conn = MHTransport(self.location)
|
||||
elif self.type == 'mmdf':
|
||||
conn = MMDFTransport(self.location)
|
||||
return transport_registry[self.type].from_url(self.uri)
|
||||
return registry[self.type].from_url(self.uri)
|
||||
|
||||
def process_incoming_message(self, message):
|
||||
"""Process a message incoming to this mailbox."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue