mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Model modifications for allowing empty source inputs; adding processincomingmessage management command.
--HG-- branch : exim4_pipe
This commit is contained in:
parent
f933fd666b
commit
b7192e9149
2 changed files with 17 additions and 1 deletions
14
django_mailbox/management/commands/processincomingmessage.py
Normal file
14
django_mailbox/management/commands/processincomingmessage.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import email
|
||||
import ipdb
|
||||
import sys
|
||||
|
||||
from django.core.managemet.base import BaseCommand
|
||||
|
||||
from django_mailbox.models import Mailbox, Message
|
||||
|
||||
class Command(BaseCommand):
|
||||
def handle(self, *args, **options):
|
||||
message_string = open(sys.stdin, 'r').read()
|
||||
ipdb.set_trace()
|
||||
#message = email.message_from_string(message_string)
|
||||
|
||||
|
|
@ -22,7 +22,9 @@ class Mailbox(models.Model):
|
|||
<br />
|
||||
Be sure to urlencode your username and password should they
|
||||
contain illegal characters (like @, :, etc).
|
||||
"""
|
||||
""",
|
||||
blank=True,
|
||||
default=None,
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue