comparison src/sat.tac @ 257:012c38b56cdd

plugin IMAP, plugin Maildir: profile management - IMAP Login/pass is now checked against profile name/jabber pass - Mailboxes are now per-profile - flags are now checked without case sensitiveness
author Goffi <goffi@goffi.org>
date Tue, 18 Jan 2011 00:57:26 +0100
parents c09aa319712e
children c8406fe5e81e
comparison
equal deleted inserted replaced
256:f5181f6dd98f 257:012c38b56cdd
125 xmppim.MessageProtocol.__init__(self) 125 xmppim.MessageProtocol.__init__(self)
126 self.host = host 126 self.host = host
127 127
128 def onMessage(self, message): 128 def onMessage(self, message):
129 debug (_(u"got message from: %s"), message["from"]) 129 debug (_(u"got message from: %s"), message["from"])
130 if not self.host.trigger.point("MessageReceived",message): 130 if not self.host.trigger.point("MessageReceived",message, profile=self.parent.profile):
131 return 131 return
132 for e in message.elements(): 132 for e in message.elements():
133 if e.name == "body": 133 if e.name == "body":
134 type = message['type'] if message.hasAttribute('type') else 'chat' #FIXME: check specs 134 type = message['type'] if message.hasAttribute('type') else 'chat' #FIXME: check specs
135 self.host.bridge.newMessage(message["from"], e.children[0], type, profile=self.parent.profile) 135 self.host.bridge.newMessage(message["from"], e.children[0], type, profile=self.parent.profile)