Still show a readable email name when there's no website_from
This commit is contained in:
parent
3320a488f3
commit
dbbfcac2d6
|
@ -533,9 +533,9 @@ class ForwardEmail(db.Model, ModelMixin):
|
||||||
if self.website_from:
|
if self.website_from:
|
||||||
name = get_email_name(self.website_from)
|
name = get_email_name(self.website_from)
|
||||||
if name:
|
if name:
|
||||||
return name + " " + self.website_email + " " + f"<{self.reply_email}>"
|
return name + " " + self.website_email + f" <{self.reply_email}>"
|
||||||
|
|
||||||
return self.reply_email
|
return self.website_email.replace("@", " at ") + f" <{self.reply_email}>"
|
||||||
|
|
||||||
def last_reply(self) -> "ForwardEmailLog":
|
def last_reply(self) -> "ForwardEmailLog":
|
||||||
"""return the most recent reply"""
|
"""return the most recent reply"""
|
||||||
|
|
Loading…
Reference in a new issue