From b1752132cb5a89fa594372abf7a271b469ad91d5 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 31 Oct 2018 23:56:59 -0500 Subject: [PATCH] work on sentbox --- .../static-data/default-plugins/pms/main.py | 30 ++++++++++++++++++- requirements.txt | 2 +- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/onionr/static-data/default-plugins/pms/main.py b/onionr/static-data/default-plugins/pms/main.py index a47983b0..28b7859c 100644 --- a/onionr/static-data/default-plugins/pms/main.py +++ b/onionr/static-data/default-plugins/pms/main.py @@ -133,6 +133,34 @@ class OnionrMail: print(draw_border(self.myCore._utils.escapeAnsi(readBlock.bcontent.decode().strip()))) 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): message = '' newLine = '' @@ -185,7 +213,7 @@ class OnionrMail: if choice in (self.strings.mainMenuChoices[0], '1'): self.inbox() elif choice in (self.strings.mainMenuChoices[1], '2'): - logger.warn('not implemented yet') + self.sentbox() elif choice in (self.strings.mainMenuChoices[2], '3'): self.draftMessage() elif choice in (self.strings.mainMenuChoices[3], '4'): diff --git a/requirements.txt b/requirements.txt index 545d7cf9..754a0da9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ urllib3==1.23 -requests==2.18.4 +requests==2.20.0 PyNaCl==1.2.1 gevent==1.3.6 sha3==0.2.1