summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-12-08 12:35:30 +0100
committerKali Kaneko <kali@leap.se>2017-12-20 15:27:02 +0100
commitd5bd7394344afd2c6466f368a0de7566094a0d0d (patch)
treef821f1e8f384a60d75a125a116566103143a8e10 /src/leap/bitmask/core
parent8c50952bb542a09ebe591d9dba3b4d89d4837b54 (diff)
[refactor] rename API add_msg to msg_add
To have consistency with all API calls related to messages and start all of them with msg_*
Diffstat (limited to 'src/leap/bitmask/core')
-rw-r--r--src/leap/bitmask/core/dispatcher.py4
-rw-r--r--src/leap/bitmask/core/mail_services.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index f2b3e8ca..e97e6c0b 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -297,7 +297,7 @@ class MailCmd(SubCommand):
return d
@register_method('dict')
- def do_ADD_MSG(self, mail, *parts, **kw):
+ def do_MSG_ADD(self, mail, *parts, **kw):
try:
userid = parts[2]
mailbox = parts[3]
@@ -305,7 +305,7 @@ class MailCmd(SubCommand):
except IndexError:
raise DispatchError(
'wrong number of arguments: expected 3, got none')
- d = mail.do_add_msg(userid, msg, mailbox)
+ d = mail.do_msg_add(userid, msg, mailbox)
return d
diff --git a/src/leap/bitmask/core/mail_services.py b/src/leap/bitmask/core/mail_services.py
index 23105c7a..ac5000fa 100644
--- a/src/leap/bitmask/core/mail_services.py
+++ b/src/leap/bitmask/core/mail_services.py
@@ -625,7 +625,7 @@ class StandardMailService(service.MultiService, HookableService):
token = self._service_tokens.get(userid)
return {'user': userid, 'token': token}
- def do_add_msg(self, userid, raw_msg, mailbox=None):
+ def do_msg_add(self, userid, raw_msg, mailbox=None):
if not mailbox:
mailbox = INBOX_NAME