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:
@@ -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 {
|
||||
|
||||
@@ -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!(
|
||||
|
||||
@@ -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")
|
||||
),
|
||||
),
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user