Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_maildir.py Sun Jan 23 12:56:09 2011 +0100 +++ b/src/plugins/plugin_misc_maildir.py Sun Jan 23 14:14:47 2011 +0100 @@ -84,8 +84,8 @@ @return: False if it's a normal message, True else""" for e in message.elements(): if e.name == "body": - type = message['type'] if message.hasAttribute('type') else 'chat' #FIXME: check specs - if message['type'] != 'normal': + mess_type = message['type'] if message.hasAttribute('type') else 'normal' + if mess_type != 'normal': return True self.accessMessageBox("INBOX", profile_key=profile).addMessage(message) return False