Guest User

Untitled

a guest
May 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import sys
  2. import email
  3. import email.Utils
  4.  
  5. from django.core.management.base import BaseCommand
  6.  
  7. from a3c import models
  8.  
  9. class Command(BaseCommand):
  10. #TODO add help and args list
  11. help = ''
  12. args = ''
  13.  
  14. def handle(self, **options):
  15. msg = email.message_from_file(sys.stdin)
  16. print msg
Add Comment
Please, Sign In to add comment