Rebrand to INBUXA: product name, protocol greetings, sign-in page, calendar templates, logos, README

One branding module (types::brand!) supplies the name to every protocol
greeting, the HTTP realm, the startup banner, Received headers, the
user agent, the IMAP ID response and calendar PRODIDs. The sign-in and
calendar pages take ihasmail's palette and font and the INBUXA logo, and
calendar emails embed the INBUXA lockup. Default calendar and address book
names follow. Protocol identifiers (urn:stalwart:jmap, vnd.stalwart Sieve
extensions) and upstream copyright notices are unchanged.
This commit is contained in:
2026-09-18 10:52:34 -07:00
parent 6e73d284d8
commit 89665decfa
70 changed files with 616 additions and 442 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ pub mod op;
pub mod protocol;
pub mod session;
static SERVER_GREETING: &str = "+OK Stalwart POP3 at your service.\r\n";
static SERVER_GREETING: &str = concat!("+OK ", types::brand!(), " POP3 at your service.\r\n");
#[derive(Clone)]
pub struct Pop3SessionManager {
+4 -3
View File
@@ -107,7 +107,8 @@ impl<T: SessionStream> Session<T> {
}
if not_deleted.is_empty() {
self.write_ok(format!(
"Stalwart POP3 bids you farewell ({num_deleted} messages deleted)."
concat!(types::brand!(), " POP3 bids you farewell ({} messages deleted)."),
num_deleted
))
.await?;
} else {
@@ -118,11 +119,11 @@ impl<T: SessionStream> Session<T> {
.await?;
}
} else {
self.write_ok("Stalwart POP3 bids you farewell (no messages deleted).")
self.write_ok(concat!(types::brand!(), " POP3 bids you farewell (no messages deleted)."))
.await?;
}
} else {
self.write_ok("Stalwart POP3 bids you farewell.").await?;
self.write_ok(concat!(types::brand!(), " POP3 bids you farewell.")).await?;
}
trc::event!(
+2 -2
View File
@@ -114,7 +114,7 @@ impl<'x, T: Display> Response<'x, T> {
"EXPIRE NEVER",
"UIDL",
"UTF8",
"IMPLEMENTATION Stalwart Server",
concat!("IMPLEMENTATION ", types::brand_server!()),
] {
buf.extend_from_slice(capa.as_bytes());
buf.extend_from_slice(b"\r\n");
@@ -200,7 +200,7 @@ mod tests {
"EXPIRE NEVER\r\n",
"UIDL\r\n",
"UTF8\r\n",
"IMPLEMENTATION Stalwart Server\r\n.\r\n"
concat!("IMPLEMENTATION ", types::brand_server!(), "\r\n.\r\n")
),
),
(