Compare commits
4 Commits
4ddbdcb46b
...
94d70cd259
| Author | SHA1 | Date | |
|---|---|---|---|
| 94d70cd259 | |||
| 0140fa5efe | |||
| 832b322b77 | |||
| 66dbcf2cfd |
473
Cargo.lock
generated
473
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,7 @@ authors = ["Bill Thiede <git@xinu.tv>"]
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "UNLICENSED"
|
license = "UNLICENSED"
|
||||||
publish = ["xinu"]
|
publish = ["xinu"]
|
||||||
version = "0.17.36"
|
version = "0.17.37"
|
||||||
repository = "https://git.z.xinu.tv/wathiede/letterbox"
|
repository = "https://git.z.xinu.tv/wathiede/letterbox"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
|
|||||||
@ -33,8 +33,8 @@ headers = "0.4.0"
|
|||||||
html-escape = "0.2.13"
|
html-escape = "0.2.13"
|
||||||
icalendar = "0.17.1"
|
icalendar = "0.17.1"
|
||||||
ical = "0.10"
|
ical = "0.10"
|
||||||
letterbox-notmuch = { path = "../notmuch", version = "0.17.36", registry = "xinu" }
|
letterbox-notmuch = { path = "../notmuch", version = "0.17.37", registry = "xinu" }
|
||||||
letterbox-shared = { path = "../shared", version = "0.17.36", registry = "xinu" }
|
letterbox-shared = { path = "../shared", version = "0.17.37", registry = "xinu" }
|
||||||
linkify = "0.10.0"
|
linkify = "0.10.0"
|
||||||
lol_html = "2.3.0"
|
lol_html = "2.3.0"
|
||||||
mailparse = "0.16.1"
|
mailparse = "0.16.1"
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>TLS Report</title>
|
<title>TLS Report</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h3>TLS Report Summary:</h3>
|
<h3>TLS Report Summary:</h3>
|
||||||
<p>Organization: {{ report.organization_name }}</p>
|
<p>Organization: {{ report.organization_name }}</p>
|
||||||
@ -10,34 +12,37 @@
|
|||||||
<p>Contact: {{ report.contact_info }}</p>
|
<p>Contact: {{ report.contact_info }}</p>
|
||||||
<p>Report ID: {{ report.report_id }}</p>
|
<p>Report ID: {{ report.report_id }}</p>
|
||||||
|
|
||||||
<h4>Policies:</h4>
|
<h4><b>Policies:</b></h4>
|
||||||
{% for policy in report.policies %}
|
{% for policy in report.policies %}
|
||||||
<h5>Policy Domain: {{ policy.policy.policy_domain }}</h5>
|
<h5><b>Policy Domain:</b> {{ policy.policy.policy_domain }}</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Policy Type: {{ policy.policy.policy_type }}</li>
|
<li><b>Policy Type:</b> {{ policy.policy.policy_type }}</li>
|
||||||
<li>Policy String: {{ policy.policy.policy_string | join(", ") }}</li>
|
<li><b>Policy String:</b> {{ policy.policy.policy_string | join(", ") }}</li>
|
||||||
<li>Successful Sessions: {{ policy.summary.total_successful_session_count }}</li>
|
<li><b>Successful Sessions:</b> {{ policy.summary.total_successful_session_count }}</li>
|
||||||
<li>Failed Sessions: {{ policy.summary.total_failure_session_count }}</li>
|
<li><b>Failed Sessions:</b> {{ policy.summary.total_failure_session_count }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for mx_host in policy.policy.mx_host %}
|
{% for mx_host in policy.policy.mx_host %}
|
||||||
<li>Hostname: {{ mx_host.hostname }}, Failures: {{ mx_host.failure_count }}, Result: {{ mx_host.result_type }}</li>
|
<li><b>Hostname:</b> {{ mx_host.hostname }}, <b>Failures:</b> {{ mx_host.failure_count }}, <b>Result:</b> {{
|
||||||
{% endfor %}
|
mx_host.result_type }}</li>
|
||||||
</ul>
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for detail in policy.failure_details %}
|
{% for detail in policy.failure_details %}
|
||||||
<li>Result: {{ detail.result_type }}, Sending IP: {{ detail.sending_mta_ip }}, Failed Sessions: {{ detail.failed_session_count }}
|
<li><b>Result:</b> {{ detail.result_type }}, <b>Sending IP:</b> {{ detail.sending_mta_ip }}, <b>Failed
|
||||||
{% if detail.failure_reason_code != "" %}
|
Sessions:</b> {{ detail.failed_session_count }}
|
||||||
(Reason: {{ detail.failure_reason_code }})
|
{% if detail.failure_reason_code != "" %}
|
||||||
{% endif %}
|
(<b>Reason:</b> {{ detail.failure_reason_code }})
|
||||||
</li>
|
{% endif %}
|
||||||
(Receiving IP: {{ detail.receiving_ip }})
|
</li>
|
||||||
(Receiving MX: {{ detail.receiving_mx_hostname }})
|
(<b>Receiving IP:</b> {{ detail.receiving_ip }})
|
||||||
(Additional Info: {{ detail.additional_info }})
|
(<b>Receiving MX:</b> {{ detail.receiving_mx_hostname }})
|
||||||
{% endfor %}
|
(<b>Additional Info:</b> {{ detail.additional_info }})
|
||||||
</ul>
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@ -12,7 +12,7 @@ version.workspace = true
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
build-info = "0.0.41"
|
build-info = "0.0.41"
|
||||||
letterbox-notmuch = { path = "../notmuch", version = "0.17.36", registry = "xinu" }
|
letterbox-notmuch = { path = "../notmuch", version = "0.17.37", registry = "xinu" }
|
||||||
regex = "1.11.1"
|
regex = "1.11.1"
|
||||||
serde = { version = "1.0.219", features = ["derive"] }
|
serde = { version = "1.0.219", features = ["derive"] }
|
||||||
sqlx = "0.8.5"
|
sqlx = "0.8.5"
|
||||||
|
|||||||
@ -33,7 +33,7 @@ wasm-bindgen = "=0.2.100"
|
|||||||
uuid = { version = "1.16.0", features = [
|
uuid = { version = "1.16.0", features = [
|
||||||
"js",
|
"js",
|
||||||
] } # direct dep to set js feature, prevents Rng issues
|
] } # direct dep to set js feature, prevents Rng issues
|
||||||
letterbox-shared = { path = "../shared/", version = "0.17.36", registry = "xinu" }
|
letterbox-shared = { path = "../shared/", version = "0.17.37", registry = "xinu" }
|
||||||
seed_hooks = { version = "0.4.1", registry = "xinu" }
|
seed_hooks = { version = "0.4.1", registry = "xinu" }
|
||||||
strum_macros = "0.27.1"
|
strum_macros = "0.27.1"
|
||||||
gloo-console = "0.3.0"
|
gloo-console = "0.3.0"
|
||||||
|
|||||||
@ -901,13 +901,22 @@ fn render_closed_header(msg: &ShowThreadQueryThreadOnEmailThreadMessages) -> Nod
|
|||||||
.collect();
|
.collect();
|
||||||
let show_x_original_to = !*to_xinu.borrow() && msg.x_original_to.is_some();
|
let show_x_original_to = !*to_xinu.borrow() && msg.x_original_to.is_some();
|
||||||
let show_delivered_to = !*to_xinu.borrow() && !show_x_original_to && msg.delivered_to.is_some();
|
let show_delivered_to = !*to_xinu.borrow() && !show_x_original_to && msg.delivered_to.is_some();
|
||||||
|
let common_style = C!["text-sm", "pr-2", "text-gray-500"];
|
||||||
div![
|
div![
|
||||||
C!["flex", "p-4", "bg-neutral-800"],
|
C!["flex", "bg-neutral-800"],
|
||||||
div![avatar],
|
div![C!["self-center"], avatar],
|
||||||
div![
|
div![
|
||||||
C!["px-4", "mr-auto"],
|
C![
|
||||||
span![
|
"mx-2",
|
||||||
C!["font-semibold", "text-sm"],
|
"flex-1",
|
||||||
|
"flex",
|
||||||
|
"flex-nowrap",
|
||||||
|
"items-center",
|
||||||
|
"truncate",
|
||||||
|
],
|
||||||
|
div![
|
||||||
|
C!["font-semibold", "text-white"],
|
||||||
|
&common_style,
|
||||||
from_detail.as_ref().map(|addr| attrs! {
|
from_detail.as_ref().map(|addr| attrs! {
|
||||||
At::Title => addr
|
At::Title => addr
|
||||||
}),
|
}),
|
||||||
@ -915,7 +924,7 @@ fn render_closed_header(msg: &ShowThreadQueryThreadOnEmailThreadMessages) -> Nod
|
|||||||
],
|
],
|
||||||
" ",
|
" ",
|
||||||
IF!(!msg.to.is_empty() => div![
|
IF!(!msg.to.is_empty() => div![
|
||||||
C!["text-xs"],
|
&common_style,
|
||||||
span![
|
span![
|
||||||
C!["font-semibold"],
|
C!["font-semibold"],
|
||||||
"To: "
|
"To: "
|
||||||
@ -926,7 +935,7 @@ fn render_closed_header(msg: &ShowThreadQueryThreadOnEmailThreadMessages) -> Nod
|
|||||||
" "
|
" "
|
||||||
]),
|
]),
|
||||||
IF!(!msg.cc.is_empty() => div![
|
IF!(!msg.cc.is_empty() => div![
|
||||||
C!["text-xs", "max-w-full", "overflow-clip", "text-ellipsis"],
|
&common_style,
|
||||||
span![
|
span![
|
||||||
C!["font-semibold"],
|
C!["font-semibold"],
|
||||||
"CC: "
|
"CC: "
|
||||||
@ -934,7 +943,7 @@ fn render_closed_header(msg: &ShowThreadQueryThreadOnEmailThreadMessages) -> Nod
|
|||||||
cc_addrs
|
cc_addrs
|
||||||
]),
|
]),
|
||||||
IF!(show_x_original_to => div![
|
IF!(show_x_original_to => div![
|
||||||
C!["text-xs"],
|
&common_style,
|
||||||
span![
|
span![
|
||||||
C!["font-semibold"],
|
C!["font-semibold"],
|
||||||
"Original To: "
|
"Original To: "
|
||||||
@ -953,7 +962,7 @@ fn render_closed_header(msg: &ShowThreadQueryThreadOnEmailThreadMessages) -> Nod
|
|||||||
]
|
]
|
||||||
]),
|
]),
|
||||||
IF!(show_delivered_to => div![
|
IF!(show_delivered_to => div![
|
||||||
C!["text-xs"],
|
&common_style,
|
||||||
span![
|
span![
|
||||||
C!["font-semibold"],
|
C!["font-semibold"],
|
||||||
"Delivered To: "
|
"Delivered To: "
|
||||||
@ -972,27 +981,25 @@ fn render_closed_header(msg: &ShowThreadQueryThreadOnEmailThreadMessages) -> Nod
|
|||||||
]
|
]
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
span![
|
msg.timestamp.map(|ts| div![
|
||||||
C!["text-right"],
|
C!["text-xs", "text-nowrap", "justify-self-end", "self-center"],
|
||||||
msg.timestamp
|
human_age(ts)
|
||||||
.map(|ts| div![C!["text-xs", "text-nowrap"], human_age(ts)]),
|
]),
|
||||||
div![
|
div![
|
||||||
C!["p-2"],
|
i![C![
|
||||||
i![C![
|
"m-2",
|
||||||
"mx-4",
|
"read-status",
|
||||||
"read-status",
|
"far",
|
||||||
"far",
|
if is_unread {
|
||||||
if is_unread {
|
"fa-envelope"
|
||||||
"fa-envelope"
|
} else {
|
||||||
} else {
|
"fa-envelope-open"
|
||||||
"fa-envelope-open"
|
},
|
||||||
},
|
]],
|
||||||
]],
|
ev(Ev::Click, move |e| {
|
||||||
ev(Ev::Click, move |e| {
|
e.stop_propagation();
|
||||||
e.stop_propagation();
|
Msg::SetUnread(id, !is_unread)
|
||||||
Msg::SetUnread(id, !is_unread)
|
})
|
||||||
})
|
|
||||||
],
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1007,7 +1014,7 @@ fn message_render(msg: &ShowThreadQueryThreadOnEmailThreadMessages, open: bool)
|
|||||||
};
|
};
|
||||||
let from = from.map(|f| f.replace('.', "-").replace('@', "-"));
|
let from = from.map(|f| f.replace('.', "-").replace('@', "-"));
|
||||||
div![
|
div![
|
||||||
C!["lg:mb-4"],
|
C!["pb-1"],
|
||||||
div![
|
div![
|
||||||
if open {
|
if open {
|
||||||
render_open_header(&msg)
|
render_open_header(&msg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user