comparison src/plugins/plugin_misc_maildir.py @ 264:27bc5d7732a3

core: fixed default message type
author Goffi <goffi@goffi.org>
date Sun, 23 Jan 2011 14:14:47 +0100
parents 11f71187d5e4
children 6dcdc4cf8622
comparison
equal deleted inserted replaced
263:bfd01aed0a3a 264:27bc5d7732a3
82 If the message is not of "normal" type, do nothing 82 If the message is not of "normal" type, do nothing
83 @param message: message xmlstrem 83 @param message: message xmlstrem
84 @return: False if it's a normal message, True else""" 84 @return: False if it's a normal message, True else"""
85 for e in message.elements(): 85 for e in message.elements():
86 if e.name == "body": 86 if e.name == "body":
87 type = message['type'] if message.hasAttribute('type') else 'chat' #FIXME: check specs 87 mess_type = message['type'] if message.hasAttribute('type') else 'normal'
88 if message['type'] != 'normal': 88 if mess_type != 'normal':
89 return True 89 return True
90 self.accessMessageBox("INBOX", profile_key=profile).addMessage(message) 90 self.accessMessageBox("INBOX", profile_key=profile).addMessage(message)
91 return False 91 return False
92 92
93 def newProfileTrigger(self, profile): 93 def newProfileTrigger(self, profile):