diff options
-rw-r--r-- | alot/db/message.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/db/message.py b/alot/db/message.py index f8dcb74f..d07bd283 100644 --- a/alot/db/message.py +++ b/alot/db/message.py @@ -66,17 +66,17 @@ class Message(object): def __eq__(self, other): if isinstance(other, type(self)): - return self.get_message_id() == other.get_message_id() + return self._id == other.get_message_id() return NotImplemented def __ne__(self, other): if isinstance(other, type(self)): - return self.get_message_id() != other.get_message_id() + return self._id != other.get_message_id() return NotImplemented def __lt__(self, other): if isinstance(other, type(self)): - return self.get_message_id() < other.get_message_id() + return self._id < other.get_message_id() return NotImplemented def get_email(self): |