1
0
Fork 0

Model modifications for allowing empty source inputs; adding processincomingmessage management command.

--HG--
branch : exim4_pipe
This commit is contained in:
Adam Coddington 2012-10-07 19:43:38 -07:00
parent f933fd666b
commit b7192e9149
2 changed files with 17 additions and 1 deletions

View 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)

View file

@ -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