work on sentbox

This commit is contained in:
Kevin Froman 2018-10-31 23:56:59 -05:00
parent 58aa8ce1cc
commit b1752132cb
2 changed files with 30 additions and 2 deletions

View File

@ -133,6 +133,34 @@ class OnionrMail:
print(draw_border(self.myCore._utils.escapeAnsi(readBlock.bcontent.decode().strip()))) print(draw_border(self.myCore._utils.escapeAnsi(readBlock.bcontent.decode().strip())))
return return
def sentbox(self):
'''
Display sent mail messages
'''
entering = True
while entering:
print('''1. List Sent Messages
2. Read sent message
3. Delete Sent Message
4. Main Menu
''')
try:
choice = logger.readline('>').lower()
except (KeyboardInterrupt, EOFError):
entering = False
else:
if choice in ('1', 'list'):
print(getSentList())
elif choice in ('2', 'read'):
pass
else:
print('Not implemented')
return
def getSentList(self):
return ""
def draftMessage(self): def draftMessage(self):
message = '' message = ''
newLine = '' newLine = ''
@ -185,7 +213,7 @@ class OnionrMail:
if choice in (self.strings.mainMenuChoices[0], '1'): if choice in (self.strings.mainMenuChoices[0], '1'):
self.inbox() self.inbox()
elif choice in (self.strings.mainMenuChoices[1], '2'): elif choice in (self.strings.mainMenuChoices[1], '2'):
logger.warn('not implemented yet') self.sentbox()
elif choice in (self.strings.mainMenuChoices[2], '3'): elif choice in (self.strings.mainMenuChoices[2], '3'):
self.draftMessage() self.draftMessage()
elif choice in (self.strings.mainMenuChoices[3], '4'): elif choice in (self.strings.mainMenuChoices[3], '4'):

View File

@ -1,5 +1,5 @@
urllib3==1.23 urllib3==1.23
requests==2.18.4 requests==2.20.0
PyNaCl==1.2.1 PyNaCl==1.2.1
gevent==1.3.6 gevent==1.3.6
sha3==0.2.1 sha3==0.2.1