Changeset View
Changeset View
Standalone View
Standalone View
cyruslib.py
Show All 31 Lines | |||||
""" | """ | ||||
from sys import exit, stdout | from sys import exit, stdout | ||||
try: | try: | ||||
import imaplib | import imaplib | ||||
import re | import re | ||||
from binascii import b2a_base64 | from binascii import b2a_base64 | ||||
except ImportError, e: | except ImportError as e: | ||||
print(e) | print(e) | ||||
exit(1) | exit(1) | ||||
Commands = { | Commands = { | ||||
'RECONSTRUCT' : ('AUTH',), | 'RECONSTRUCT' : ('AUTH',), | ||||
'DUMP' : ('AUTH',), # To check admin status | 'DUMP' : ('AUTH',), # To check admin status | ||||
'ID' : ('AUTH',), # Only one ID allowed in non auth mode | 'ID' : ('AUTH',), # Only one ID allowed in non auth mode | ||||
'GETANNOTATION': ('AUTH',), | 'GETANNOTATION': ('AUTH',), | ||||
▲ Show 20 Lines • Show All 785 Lines • Show Last 20 Lines |