def _deliver_messages(self, whatever, messages): for eid, plain, html in messages: for jid in self.bare_jids(): key = str(eid) + "@" + jid protocol.send_html_deduped(jid, plain, html, key)
def send(r): for eid, plain, html in results.results: for jid in self.bare_jids(): key = str(eid) + "@" + jid protocol.send_html_deduped(jid, plain, html, key)