diff options
author | Sebastian Spaeth <sebastian@sspaeth.de> | 2010-03-25 15:55:23 +0100 |
---|---|---|
committer | Sebastian Spaeth <sebastian@sspaeth.de> | 2010-03-25 15:55:23 +0100 |
commit | 5c4af8ce39ee5bc5868075f4f20e9abed5102156 (patch) | |
tree | e1f8342acee4eb01b8e3aeaf5c86dadbf59d93a4 | |
parent | ff7756184d2c9aebb654c9f5d223dac555275b5f (diff) |
Message(): add 'match' result in text output. Fix is_match to use class, not instance, attributes.
-rw-r--r-- | cnotmuch/message.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cnotmuch/message.py b/cnotmuch/message.py index 29a914d..411d84d 100644 --- a/cnotmuch/message.py +++ b/cnotmuch/message.py @@ -627,7 +627,7 @@ class Message(object): def is_match(self): """(Not implemented)""" - return self.get_flag(self.FLAG.MATCH) + return self.get_flag(Message.FLAG.MATCH) def __str__(self): """A message() is represented by a 1-line summary""" @@ -716,9 +716,8 @@ class Message(object): easy to change to a new format when the format changes.""" format = self.format_message_internal() - output = "\n\fmessage{ id:%s depth:%d filename:%s" % (format["id"], - indent, - format["filename"]) + output = "\n\fmessage{ id:%s depth:%d match:%d filename:%s" \ + % (format['id'], indent, format['match'], format['filename']) output += "\n\fheader{" #Todo: this date is supposed to be cleaned up, as in the index. |