Install the complete package with local command reference and every published mode.
install mailmailUse
The IMAP password is entered through the hidden prompt and connection state is kept in the session.
mail [subcommand] [arguments] [options]mailshow the current IMAP connection
mail connect <host> <user> [box]connect through a hidden password prompt
mail boxeslist available mailboxes
mail box <name>select a mailbox
mail ls [n] [-u]list recent messages; optionally unread only
mail read <id> [-o <file>]read a message or save it to a file
mail send <to> <subject> <text>send diagnostic
-p <port>set the IMAP port
-ssl | -tls | -plainselect the IMAP transport
-kallow an unverified TLS certificate for diagnostics
-freplace an existing message output file
-from <addr> | -cc <addr> | -bcc <addr> | -reply <addr>set optional message headers
mail del <id> | mail undel <id>mark a message deleted | undo the mark
mail expungepermanently remove messages marked deleted
mail -edisconnect and remove saved
-k disables certificate verification and should be used only for diagnostics.
Passwords use the shared hidden prompt. Optional
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install mailInstall the reduced package. Local reference is omitted;
install mail -mInstall exactly this published version.
install mail -v 1.1.5Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade mailRemove the extension block while leaving the core and unrelated modules intact.
install mail -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
mailMail is not connectedmail connect imap.example.com user@example.comStatus connected
Host imap.example.com:993/ssl
User user@example.com
Box INBOX
Messages 128
Recent 2
Unread 4mail connect imap.example.com user@example.com INBOX -tls -p 143Status connected
Host imap.example.com:993/ssl
User user@example.com
Box INBOX
Messages 128
Recent 2
Unread 4mail boxesINBOX
Archive
Sent
Trashmail box ArchiveMailbox Archive
Messages 128mail ls 2042 2026-08-08 noreply@example.com Deployment report
41 2026-08-07 admin@example.com Backup complete
40 2026-08-07 alerts@example.com TLS renewalmail ls 20 -u42 2026-08-08 noreply@example.com Deployment reportmail read 42From noreply@example.com
To user@example.com
Subject Deployment report
Date 2026-08-08 09:15:00 UTC
Deployment completed successfully.mail read 42 -o sandbox/tmp/message-42.txtsandbox/tmp/
message-42.txtmail send admin@example.com "lil diagnostic" "Mail transport test"Mail accepted by local transportmail send admin@example.com "lil diagnostic" "Mail transport test" -from lil@example.com -reply support@example.comMail accepted by local transportmail del 42Message 42
Deleted markedmail undel 42Message 42
Deleted clearedmail expungeExpunged 1mail -eConnection closedmail send not-an-email "test" "hello"Invalid recipient addressFinalizes Local and Server Help synchronization and localization safety for