]> git.notmuchmail.org Git - notmuch/commit - bindings/python/notmuch/message.py
Simplify (& fix) Message().__str__()
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 16 Jun 2011 15:33:47 +0000 (17:33 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 16 Jun 2011 15:33:47 +0000 (17:33 +0200)
commit12d6f90e77d975be721b6878bf6bbf914d65a369
treedf524d29bf82c69c988f1baca37252a171bde2a4
parent995303c21bb5012b7eeaa1fe5fd15ae175bfa1e6
Simplify (& fix) Message().__str__()

We were still using len(self.get_replies()) for the __str__ summary of a
mail, but 1) len(Messages()) has just gone away 2) the number of replies
can not be retrieved when we got the message via search_messages()
anyway, and 3) it is likely quite expensive to pull all replies for all
messages that we display a summary of.

So we fix this by simplifying str(Message()) to omit the number of replies.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
bindings/python/notmuch/message.py