forked from mirror/django-mailbox
Use TO header for creating mailbox name.
--HG-- branch : exim4_pipe
This commit is contained in:
parent
ffbf4ace6b
commit
00a4bde767
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['to'])[1][0:255]
|
||||
mailbox, created = Mailbox.objects.get_or_create(
|
||||
name=email_address,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue