mail plugin usable now
This commit is contained in:
parent
3764c1a115
commit
293b36e3ad
@ -1,5 +1,5 @@
|
|||||||
'''
|
'''
|
||||||
Onionr - P2P Microblogging Platform & Social network
|
Onionr - P2P Anonymous Storage Network
|
||||||
|
|
||||||
This file handles all incoming http requests to the client, using Flask
|
This file handles all incoming http requests to the client, using Flask
|
||||||
'''
|
'''
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
'''
|
'''
|
||||||
Onionr - P2P Microblogging Platform & Social network
|
Onionr - P2P Anonymous Storage Network
|
||||||
|
|
||||||
This file handles Onionr's cryptography.
|
This file handles Onionr's cryptography.
|
||||||
'''
|
'''
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
'''
|
|
||||||
Onionr - P2P Microblogging Platform & Social network
|
|
||||||
|
|
||||||
Funcitons for talking to I2P
|
|
||||||
'''
|
|
||||||
'''
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
'''
|
|
@ -1,5 +1,5 @@
|
|||||||
'''
|
'''
|
||||||
Onionr - P2P Microblogging Platform & Social network
|
Onionr - P2P Anonymous Storage Network
|
||||||
|
|
||||||
Proof of work module
|
Proof of work module
|
||||||
'''
|
'''
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
'''
|
'''
|
||||||
Onionr - P2P Microblogging Platform & Social network
|
Onionr - P2P Anonymous Storage Network
|
||||||
|
|
||||||
This default plugin handles private messages in an email like fashion
|
This default plugin handles private messages in an email like fashion
|
||||||
'''
|
'''
|
||||||
@ -48,15 +48,14 @@ class MailStrings:
|
|||||||
self.mailInstance = mailInstance
|
self.mailInstance = mailInstance
|
||||||
|
|
||||||
self.programTag = 'OnionrMail v%s' % (PLUGIN_VERSION)
|
self.programTag = 'OnionrMail v%s' % (PLUGIN_VERSION)
|
||||||
choices = ['view inbox', 'view sentbox', 'send message', 'help', 'quit']
|
choices = ['view inbox', 'view sentbox', 'send message', 'quit']
|
||||||
self.mainMenuChoices = choices
|
self.mainMenuChoices = choices
|
||||||
self.mainMenu = '''\n
|
self.mainMenu = '''\n
|
||||||
-----------------
|
-----------------
|
||||||
1. %s
|
1. %s
|
||||||
2. %s
|
2. %s
|
||||||
3. %s
|
3. %s
|
||||||
4. %s
|
4. %s''' % (choices[0], choices[1], choices[2], choices[3])
|
||||||
5. %s''' % (choices[0], choices[1], choices[2], choices[3], choices[4])
|
|
||||||
|
|
||||||
class OnionrMail:
|
class OnionrMail:
|
||||||
def __init__(self, pluginapi):
|
def __init__(self, pluginapi):
|
||||||
@ -232,8 +231,6 @@ class OnionrMail:
|
|||||||
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'):
|
||||||
logger.warn('not implemented yet')
|
|
||||||
elif choice in (self.strings.mainMenuChoices[4], '5'):
|
|
||||||
logger.info('Goodbye.')
|
logger.info('Goodbye.')
|
||||||
break
|
break
|
||||||
elif choice == '':
|
elif choice == '':
|
||||||
|
Loading…
Reference in New Issue
Block a user