v0.0.6
This commit is contained in:
1 parent
52d5f1745a
commit
1234aae646
19 files changed
+145
-16
No files matched your search
@@ -294,7 +294,8 @@ pub fn update_preferences(
|
||||
v,
|
||||
&[
|
||||
"sage", "blue", "teal", "cyan", "indigo", "slate", "graphite", "amber", "orange",
|
||||
"violet", "rose", "red", "custom",
|
||||
"violet", "rose", "red", "emerald", "lime", "sky", "navy", "plum", "magenta",
|
||||
"copper", "sand", "custom",
|
||||
],
|
||||
)?;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ async fn https_get_address(
|
||||
format!("{host}:{port}")
|
||||
};
|
||||
let request = format!(
|
||||
"GET {target} HTTP/1.1\r\nHost: {host_header}\r\nUser-Agent: RustBox/0.0.5\r\nAccept: application/octet-stream, application/pgp-keys, text/plain\r\nConnection: close\r\n\r\n"
|
||||
"GET {target} HTTP/1.1\r\nHost: {host_header}\r\nUser-Agent: RustBox/0.0.6\r\nAccept: application/octet-stream, application/pgp-keys, text/plain\r\nConnection: close\r\n\r\n"
|
||||
);
|
||||
timeout(duration, stream.write_all(request.as_bytes()))
|
||||
.await
|
||||
|
||||
@@ -174,7 +174,7 @@ pub async fn export_ics(
|
||||
.map_err(|e| AppError::InternalError(format!("Database error: {e}")))?;
|
||||
|
||||
let mut body = String::from(
|
||||
"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//RustBox//Calendar 0.0.5//EN\r\nCALSCALE:GREGORIAN\r\n",
|
||||
"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//RustBox//Calendar 0.0.6//EN\r\nCALSCALE:GREGORIAN\r\n",
|
||||
);
|
||||
for event in &events {
|
||||
append_ics_event(&mut body, event);
|
||||
|
||||
@@ -228,7 +228,7 @@ async fn post_one_click_to_address(
|
||||
format!("{host}:{port}")
|
||||
};
|
||||
let request = format!(
|
||||
"POST {path} HTTP/1.1\r\nHost: {host_header}\r\nUser-Agent: RustBox/0.0.5\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: {}\r\nConnection: close\r\n\r\n{ONE_CLICK_BODY}",
|
||||
"POST {path} HTTP/1.1\r\nHost: {host_header}\r\nUser-Agent: RustBox/0.0.6\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: {}\r\nConnection: close\r\n\r\n{ONE_CLICK_BODY}",
|
||||
ONE_CLICK_BODY.len()
|
||||
);
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ impl fmt::Display for SieveError {
|
||||
write!(f, "ManageSieve server rejected the command: {msg}")
|
||||
}
|
||||
Self::Timeout => write!(f, "ManageSieve operation timed out"),
|
||||
Self::ScriptTooLarge => write!(f, "Sieve script exceeds the RustBox 0.0.5 size limit"),
|
||||
Self::ScriptTooLarge => write!(f, "Sieve script exceeds the RustBox 0.0.6 size limit"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,6 +194,54 @@ html[data-color-preset="red"] {
|
||||
--selected: color-mix(in srgb, var(--accent) 20%, var(--panel));
|
||||
}
|
||||
|
||||
html[data-color-preset="emerald"] {
|
||||
--accent: #4f9b72;
|
||||
--accent-strong: #68b38a;
|
||||
--selected: color-mix(in srgb, var(--accent) 20%, var(--panel));
|
||||
}
|
||||
|
||||
html[data-color-preset="lime"] {
|
||||
--accent: #86a84f;
|
||||
--accent-strong: #9bbb68;
|
||||
--selected: color-mix(in srgb, var(--accent) 20%, var(--panel));
|
||||
}
|
||||
|
||||
html[data-color-preset="sky"] {
|
||||
--accent: #5d9ec4;
|
||||
--accent-strong: #77b2d2;
|
||||
--selected: color-mix(in srgb, var(--accent) 20%, var(--panel));
|
||||
}
|
||||
|
||||
html[data-color-preset="navy"] {
|
||||
--accent: #647eae;
|
||||
--accent-strong: #7f96bd;
|
||||
--selected: color-mix(in srgb, var(--accent) 20%, var(--panel));
|
||||
}
|
||||
|
||||
html[data-color-preset="plum"] {
|
||||
--accent: #9a6f9d;
|
||||
--accent-strong: #af87b1;
|
||||
--selected: color-mix(in srgb, var(--accent) 20%, var(--panel));
|
||||
}
|
||||
|
||||
html[data-color-preset="magenta"] {
|
||||
--accent: #b76591;
|
||||
--accent-strong: #c87da5;
|
||||
--selected: color-mix(in srgb, var(--accent) 20%, var(--panel));
|
||||
}
|
||||
|
||||
html[data-color-preset="copper"] {
|
||||
--accent: #b57755;
|
||||
--accent-strong: #c78f70;
|
||||
--selected: color-mix(in srgb, var(--accent) 20%, var(--panel));
|
||||
}
|
||||
|
||||
html[data-color-preset="sand"] {
|
||||
--accent: #aa9465;
|
||||
--accent-strong: #bcaa7d;
|
||||
--selected: color-mix(in srgb, var(--accent) 20%, var(--panel));
|
||||
}
|
||||
|
||||
|
||||
:root {
|
||||
--toolbar-density-factor: 1;
|
||||
|
||||
@@ -625,6 +625,14 @@
|
||||
<option value="violet">Violet</option>
|
||||
<option value="rose">Rose</option>
|
||||
<option value="red">Red</option>
|
||||
<option value="emerald">Emerald</option>
|
||||
<option value="lime">Lime</option>
|
||||
<option value="sky">Sky</option>
|
||||
<option value="navy">Navy</option>
|
||||
<option value="plum">Plum</option>
|
||||
<option value="magenta">Magenta</option>
|
||||
<option value="copper">Copper</option>
|
||||
<option value="sand">Sand</option>
|
||||
<option value="custom">Custom</option>
|
||||
</select></label>
|
||||
<label><span data-i18n="accent_color">Accent color</span>
|
||||
|
||||
@@ -562,7 +562,7 @@ function renderMessageBody(detail, forceRemote = false) {
|
||||
if (hasRemote && !allowRemote && (policy === "ask" || policy === "contacts")) remoteBar.classList.remove("hidden");
|
||||
|
||||
const iframe = document.createElement("iframe");
|
||||
iframe.setAttribute("sandbox", "");
|
||||
iframe.setAttribute("sandbox", "allow-popups allow-popups-to-escape-sandbox");
|
||||
iframe.setAttribute("referrerpolicy", "no-referrer");
|
||||
const imageSources = allowRemote ? "data: cid: https: http:" : "data: cid:";
|
||||
const csp = `<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src ${imageSources}; style-src 'unsafe-inline'; font-src data:">`;
|
||||
|
||||
Reference in new issue
Block a user