---
// One mailbox value in a setup guide: a generic placeholder (or the fleet
// default) at build time, replaced by personalize.ts with the value from
// the query string when the account page linked here with one.
interface Props {
name: "address" | "server" | "imap" | "smtp" | "smtpSecurity" | "passwd";
}
const { name } = Astro.props;
// Ports are fleet-wide (nix/modules/roles/cell.nix), so their defaults are
// real values; the rest are per mailbox and per cell.
const defaults = { imap: "993", smtp: "587", smtpSecurity: "STARTTLS" };
const placeholders = {
address: "your email address",
server: "your mail server",
passwd: "your app password",
};
---
{
name === "smtpSecurity" ? (
{defaults.smtpSecurity}
) : name === "imap" || name === "smtp" ? (
{defaults[name]}
) : (
{placeholders[name]}
)
}