mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
display website_from on alias log
This commit is contained in:
parent
d160971cc7
commit
7f908a9da8
@ -19,7 +19,7 @@
|
|||||||
<div class="my-2 p-2 card">
|
<div class="my-2 p-2 card">
|
||||||
<div class="font-weight-bold">{{ log.when | dt }}</div>
|
<div class="font-weight-bold">{{ log.when | dt }}</div>
|
||||||
<div>
|
<div>
|
||||||
<span class="mr-2">{{ log.website_email }}</span>
|
<span class="mr-2">{{ log.website_from or log.website_email }}</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
{% if log.is_reply %}
|
{% if log.is_reply %}
|
||||||
|
@ -12,6 +12,7 @@ from app.models import GenEmail, ForwardEmailLog, ForwardEmail
|
|||||||
@dataclass
|
@dataclass
|
||||||
class AliasLog:
|
class AliasLog:
|
||||||
website_email: str
|
website_email: str
|
||||||
|
website_from: str
|
||||||
alias: str
|
alias: str
|
||||||
when: arrow.Arrow
|
when: arrow.Arrow
|
||||||
is_reply: bool
|
is_reply: bool
|
||||||
@ -50,6 +51,7 @@ def get_alias_log(gen_email: GenEmail):
|
|||||||
for fe, fel in q:
|
for fe, fel in q:
|
||||||
al = AliasLog(
|
al = AliasLog(
|
||||||
website_email=fe.website_email,
|
website_email=fe.website_email,
|
||||||
|
website_from=fe.website_from,
|
||||||
alias=gen_email.email,
|
alias=gen_email.email,
|
||||||
when=fel.created_at,
|
when=fel.created_at,
|
||||||
is_reply=fel.is_reply,
|
is_reply=fel.is_reply,
|
||||||
|
@ -104,6 +104,7 @@ class MailHandler:
|
|||||||
forward_email = ForwardEmail.create(
|
forward_email = ForwardEmail.create(
|
||||||
gen_email_id=gen_email.id,
|
gen_email_id=gen_email.id,
|
||||||
website_email=website_email,
|
website_email=website_email,
|
||||||
|
website_from=msg["From"],
|
||||||
reply_email=reply_email,
|
reply_email=reply_email,
|
||||||
)
|
)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user