Skip to content

Commit

Permalink
v0.1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Dec 4, 2024
1 parent ac71d2b commit 456843b
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 11 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

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

## [0.1.20] - 2024-12-04

## Added
- Delivery and DMARC troubleshooting.
- Azure blob storage.
- Support for external email addresses on mailing lists.

### Changed
- LDAP/SQL simplified config.

### Fixed

## [0.1.19] - 2024-11-07

## Added
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage = "https://stalw.art"
keywords = ["web", "admin", "email", "mail", "server"]
categories = ["email"]
license = "AGPL-3.0-only OR LicenseRef-SEL"
version = "0.1.19"
version = "0.1.20"
edition = "2021"
resolver = "2"

Expand Down
1 change: 1 addition & 0 deletions src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ impl Permission {
| Permission::TracingLive
| Permission::MetricsList
| Permission::MetricsLive
| Permission::Troubleshoot
)
}
}
1 change: 1 addition & 0 deletions src/core/oauth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ impl OAuthCodeResponse {
Permission::MetricsLive,
Permission::ManageEncryption,
Permission::ManagePasswords,
Permission::Troubleshoot,
] {
self.permissions.insert(permission);
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/config/schema/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,7 @@ pub static EVENT_NAMES: &[&str] = &[
"telemetry.webhook-error",
"tls-rpt.record-fetch",
"tls-rpt.record-fetch-error",
"tls-rpt.record-not-found",
"tls.certificate-not-found",
"tls.handshake",
"tls.handshake-error",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/directory/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ fn PrincipalItem(principal: Principal, params: Parameters) -> impl IntoView {
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"
href=move || {
format!(
"/manage/troubleshoot/dmarc?target={}",
"/manage/troubleshoot/dmarc?target=postmaster@{}",
principal.get_untracked().name().unwrap_or_default(),
)
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/directory/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,4 +896,5 @@ pub static PERMISSIONS: &[(&str, &str)] = &[
("oauth-client-registration", "Register OAuth clients"),
("oauth-client-override", "Override OAuth client settings"),
("ai-model-interact", "Interact with AI models"),
("troubleshoot", "Perform troubleshooting"),
];
14 changes: 7 additions & 7 deletions src/pages/manage/troubleshoot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,14 +440,14 @@ pub fn TroubleshootDmarc() -> impl IntoView {
/>
</FormItem>
<FormItem
label="Headers"
label="Message Body"
tooltip=concat!(
"Message headers including DKIM signatures. ",
"Message body including DKIM signatures. ",
"Leave blank to test SPF only.",
)
>

<TextArea element=FormElement::new("headers", data)/>
<TextArea element=FormElement::new("body", data)/>
</FormItem>

</FormSection>
Expand Down Expand Up @@ -476,8 +476,8 @@ pub fn TroubleshootDmarc() -> impl IntoView {
.get("mail_from")
.unwrap_or_default()
.to_string(),
headers: data
.get("headers")
body: data
.get("body")
.and_then(|h| {
if h.trim().is_empty() { None } else { Some(h.to_string()) }
}),
Expand Down Expand Up @@ -749,7 +749,7 @@ struct DmarcTroubleshootRequest {
ehlo_domain: String,
#[serde(rename = "mailFrom")]
mail_from: String,
headers: Option<String>,
body: Option<String>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down Expand Up @@ -1295,7 +1295,7 @@ impl Builder<Schemas, ()> {
.input_check([Transformer::Trim], [Validator::Required])
.typ(Type::Input)
.build()
.new_field("headers")
.new_field("body")
.typ(Type::Input)
.build()
.build()
Expand Down

0 comments on commit 456843b

Please sign in to comment.