Finalize ZMQ interface

pull/6/head
Yax 7 years ago
parent cfeabafefb
commit 64d836d7f9

@ -397,7 +397,7 @@ def rss(token, onstart=False):
def mail(to_email, subject, message):
zmsg = {
'topic': 'email:sendmail',
'topic': 'email:send',
'to': to_email,
'subject': subject,
'content': message

@ -15,7 +15,7 @@ context = zmq.Context()
def process(message):
data = json.loads(message)
if data['topic'] == 'email:newmail':
if data['topic'] == 'email:mail':
logger.info('newmail => {}'.format(data))
processor.enqueue({'request': 'new_mail', 'data': data})

Loading…
Cancel
Save