mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-23 03:18:08 +01:00
Message(): add 'match' result in text output. Fix is_match to use class, not instance, attributes.
This commit is contained in:
parent
ff7756184d
commit
5c4af8ce39
1 changed files with 3 additions and 4 deletions
|
@ -627,7 +627,7 @@ class Message(object):
|
||||||
|
|
||||||
def is_match(self):
|
def is_match(self):
|
||||||
"""(Not implemented)"""
|
"""(Not implemented)"""
|
||||||
return self.get_flag(self.FLAG.MATCH)
|
return self.get_flag(Message.FLAG.MATCH)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
"""A message() is represented by a 1-line summary"""
|
"""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."""
|
easy to change to a new format when the format changes."""
|
||||||
|
|
||||||
format = self.format_message_internal()
|
format = self.format_message_internal()
|
||||||
output = "\n\fmessage{ id:%s depth:%d filename:%s" % (format["id"],
|
output = "\n\fmessage{ id:%s depth:%d match:%d filename:%s" \
|
||||||
indent,
|
% (format['id'], indent, format['match'], format['filename'])
|
||||||
format["filename"])
|
|
||||||
output += "\n\fheader{"
|
output += "\n\fheader{"
|
||||||
|
|
||||||
#Todo: this date is supposed to be cleaned up, as in the index.
|
#Todo: this date is supposed to be cleaned up, as in the index.
|
||||||
|
|
Loading…
Reference in a new issue