/** * Names and credentials as they go on the IMAP wire. * * Both problems here are the same problem: IMAP's wire format is 7-bit and * quoted, and a value that is not encoded for it either breaks the command or *, worse, extends it. A password with a newline in it would add a line the * server reads as a command; a Drafts folder called `Entwurfe` with an umlaut * cannot be written at all without modified UTF-7. Split out of * `imap-client.ts` to keep that file under the repository's per-file line cap. */ /** * Reject credentials containing CR or LF, these cannot be safely represented * in any IMAP quoted-string or literal. * Then return the credential as an RFC 3501 quoted string: * - backslashes escaped as \\\\ * - double-quotes escaped as \\" * If the result would contain characters outside of printable US-ASCII * (which quoted strings cannot hold per RFC 3501), throw a plain-language error. */ export declare function imapQuoteCredential(value: string, name: string): string; /** The mailbox read when none is configured. */ export declare const DEFAULT_MAILBOX = "INBOX"; /** * Mailbox names that are plain atoms go on the wire bare; anything else is * sent as an RFC 3501 quoted string so spaces and delimiters stay intact. * Non-ASCII names are encoded first, see `toModifiedUtf7`. */ export declare function formatMailboxName(mailbox: string): string; //# sourceMappingURL=imap-names.d.ts.map