mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Fixing a typo that handles generating new mailbox names.
--HG-- branch : exim4_pipe
This commit is contained in:
parent
24c2a98d81
commit
e165d16660
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class Command(BaseCommand):
|
|||
logger.warning("Message not processable.")
|
||||
|
||||
def get_mailbox_for_message(self, message):
|
||||
email_address = rfc822.parseaddr(message['from'][1][0:255])
|
||||
email_address = rfc822.parseaddr(message['from'])[1][0:255]
|
||||
mailbox, created = Mailbox.objects.get_or_create(
|
||||
name=email_address,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue