Skip to content

Commit 456843b

Browse files
committed
v0.1.20
1 parent ac71d2b commit 456843b

File tree

9 files changed

+27
-11
lines changed

9 files changed

+27
-11
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.1.20] - 2024-12-04
6+
7+
## Added
8+
- Delivery and DMARC troubleshooting.
9+
- Azure blob storage.
10+
- Support for external email addresses on mailing lists.
11+
12+
### Changed
13+
- LDAP/SQL simplified config.
14+
15+
### Fixed
16+
517
## [0.1.19] - 2024-11-07
618

719
## Added

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ homepage = "https://stalw.art"
77
keywords = ["web", "admin", "email", "mail", "server"]
88
categories = ["email"]
99
license = "AGPL-3.0-only OR LicenseRef-SEL"
10-
version = "0.1.19"
10+
version = "0.1.20"
1111
edition = "2021"
1212
resolver = "2"
1313

src/core/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ impl Permission {
303303
| Permission::TracingLive
304304
| Permission::MetricsList
305305
| Permission::MetricsLive
306+
| Permission::Troubleshoot
306307
)
307308
}
308309
}

src/core/oauth.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ impl OAuthCodeResponse {
320320
Permission::MetricsLive,
321321
Permission::ManageEncryption,
322322
Permission::ManagePasswords,
323+
Permission::Troubleshoot,
323324
] {
324325
self.permissions.insert(permission);
325326
}

src/pages/config/schema/tracing.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,7 @@ pub static EVENT_NAMES: &[&str] = &[
11841184
"telemetry.webhook-error",
11851185
"tls-rpt.record-fetch",
11861186
"tls-rpt.record-fetch-error",
1187+
"tls-rpt.record-not-found",
11871188
"tls.certificate-not-found",
11881189
"tls.handshake",
11891190
"tls.handshake-error",

src/pages/directory/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ fn PrincipalItem(principal: Principal, params: Parameters) -> impl IntoView {
696696
class="flex items-center gap-x-3 py-2 px-3 rounded-lg text-sm text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300"
697697
href=move || {
698698
format!(
699-
"/manage/troubleshoot/dmarc?target={}",
699+
"/manage/troubleshoot/dmarc?target=postmaster@{}",
700700
principal.get_untracked().name().unwrap_or_default(),
701701
)
702702
}

src/pages/directory/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,4 +896,5 @@ pub static PERMISSIONS: &[(&str, &str)] = &[
896896
("oauth-client-registration", "Register OAuth clients"),
897897
("oauth-client-override", "Override OAuth client settings"),
898898
("ai-model-interact", "Interact with AI models"),
899+
("troubleshoot", "Perform troubleshooting"),
899900
];

src/pages/manage/troubleshoot.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,14 @@ pub fn TroubleshootDmarc() -> impl IntoView {
440440
/>
441441
</FormItem>
442442
<FormItem
443-
label="Headers"
443+
label="Message Body"
444444
tooltip=concat!(
445-
"Message headers including DKIM signatures. ",
445+
"Message body including DKIM signatures. ",
446446
"Leave blank to test SPF only.",
447447
)
448448
>
449449

450-
<TextArea element=FormElement::new("headers", data)/>
450+
<TextArea element=FormElement::new("body", data)/>
451451
</FormItem>
452452

453453
</FormSection>
@@ -476,8 +476,8 @@ pub fn TroubleshootDmarc() -> impl IntoView {
476476
.get("mail_from")
477477
.unwrap_or_default()
478478
.to_string(),
479-
headers: data
480-
.get("headers")
479+
body: data
480+
.get("body")
481481
.and_then(|h| {
482482
if h.trim().is_empty() { None } else { Some(h.to_string()) }
483483
}),
@@ -749,7 +749,7 @@ struct DmarcTroubleshootRequest {
749749
ehlo_domain: String,
750750
#[serde(rename = "mailFrom")]
751751
mail_from: String,
752-
headers: Option<String>,
752+
body: Option<String>,
753753
}
754754

755755
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -1295,7 +1295,7 @@ impl Builder<Schemas, ()> {
12951295
.input_check([Transformer::Trim], [Validator::Required])
12961296
.typ(Type::Input)
12971297
.build()
1298-
.new_field("headers")
1298+
.new_field("body")
12991299
.typ(Type::Input)
13001300
.build()
13011301
.build()

0 commit comments

Comments
 (0)