Exemplo n.º 1
0
 def handleNotify(self, command):
     log.msg("handleNotify: " + str(command))
     for deviceToken, accountId in self.database.findRegistrations(command.args['dovecot-username'], command.args['dovecot-mailbox']):
         self.notificationService.queueNotification(APNSNotification(deviceToken, {"aps":{"account-id":accountId}}))
     return ("OK", "")