correctly set the reply_id
This commit is contained in:
parent
0ec9b6244c
commit
bb6e15e6fd
1 changed files with 4 additions and 1 deletions
|
|
@ -134,6 +134,9 @@ class MailParser(Message):
|
||||||
self.parse_profile_link()
|
self.parse_profile_link()
|
||||||
self.parse_from()
|
self.parse_from()
|
||||||
|
|
||||||
|
def set_reply_id(self, date):
|
||||||
|
self.reply_id = date
|
||||||
|
|
||||||
def parse_date(self, date_str):
|
def parse_date(self, date_str):
|
||||||
# To match regexp, we have to remove any return chars in string
|
# To match regexp, we have to remove any return chars in string
|
||||||
# before the status ('nouveau', 'lu', etc)
|
# before the status ('nouveau', 'lu', etc)
|
||||||
|
|
@ -307,7 +310,7 @@ class ContactThreadPage(PageBase):
|
||||||
mail = MailParser(self.id, self.name, tag)
|
mail = MailParser(self.id, self.name, tag)
|
||||||
|
|
||||||
if self.items:
|
if self.items:
|
||||||
self.items[-1].reply_date = mail.get_date_int()
|
self.items[-1].set_reply_id(mail.get_date_int())
|
||||||
self.items += [mail]
|
self.items += [mail]
|
||||||
|
|
||||||
def get_id(self):
|
def get_id(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue