Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import email
- import email.Utils
- from django.core.management.base import BaseCommand
- from a3c import models
- class Command(BaseCommand):
- #TODO add help and args list
- help = ''
- args = ''
- def handle(self, **options):
- msg = email.message_from_file(sys.stdin)
- print msg
Add Comment
Please, Sign In to add comment