Something went wrong. Try again.
An IMAP client library for Zig 0.17, covering IMAP4rev2 and rev1 with STARTTLS, implicit TLS, SASL authentication and streamed literals. jeff.jcollie.page/zig-imap
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>// SPDX-License-Identifier: MIT
//! zig-imap — an IMAP client library.//!//! `Client` implements the protocol over any `std.Io.Reader`/`std.Io.Writer`//! pair; `Connection` provides the TCP and TLS transports for it.//!//! Implemented specifications://! * IMAP4rev2: https://datatracker.ietf.org/doc/html/rfc9051//! * IMAP4rev1, including modified UTF-7 mailbox names: https://datatracker.ietf.org/doc/html/rfc3501//! * SASL-IR: https://datatracker.ietf.org/doc/html/rfc4959//! * LITERAL+ and LITERAL-: https://datatracker.ietf.org/doc/html/rfc7888//! * UIDPLUS: https://datatracker.ietf.org/doc/html/rfc4315//! * MOVE: https://datatracker.ietf.org/doc/html/rfc6851//! * IDLE: https://datatracker.ietf.org/doc/html/rfc2177//! * ENABLE and UTF8=ACCEPT: https://datatracker.ietf.org/doc/html/rfc5161, https://datatracker.ietf.org/doc/html/rfc6855//! * ESEARCH: https://datatracker.ietf.org/doc/html/rfc4731//! * ID: https://datatracker.ietf.org/doc/html/rfc2971//! * STARTTLS and implicit TLS on port 993: https://datatracker.ietf.org/doc/html/rfc8314
const std = @import("std");
pub const Client = @import("Client.zig");pub const Connection = @import("Connection.zig");pub const parser = @import("parser.zig");pub const response = @import("response.zig");pub const utf7 = @import("utf7.zig");
pub const Response = response.Response;pub const Untagged = response.Untagged;pub const Status = response.Status;pub const StatusResponse = response.StatusResponse;pub const Code = response.Code;pub const Capabilities = response.Capabilities;pub const Mailbox = response.Mailbox;pub const MailboxStatus = response.MailboxStatus;pub const ListItem = response.ListItem;pub const UidResult = response.UidResult;pub const FetchIterator = response.FetchIterator;pub const FetchItem = response.FetchItem;pub const SequenceIterator = response.SequenceIterator;pub const Envelope = response.Envelope;pub const Address = response.Address;pub const Scanner = parser.Scanner;pub const Token = parser.Token;pub const String = parser.String;
/// Re-export of [zig-sasl](https://git.jcollie.dev/jeff/zig-sasl), where the/// AUTHENTICATE mechanisms live: `imap.sasl.Plain`, `sasl.CramMd5`,/// `sasl.XOAuth2` and the rest, for handing to `Client.authenticateSasl`./// They are not here because nothing about them is specific to IMAP — SMTP/// and POP3 want the same ones.pub const sasl = @import("sasl");
test { std.testing.refAllDecls(@This()); _ = @import("parser.zig"); _ = @import("response.zig"); _ = @import("utf7.zig"); _ = @import("Client.zig"); _ = @import("Connection.zig");}