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.
mailOffline training example — no live HTTP, mail or TLS request
Status connected
Host imap.example.test:993/ssl
User user@example.test
Box INBOX
Messages 12
Recent 1
Unread 3mail connect imap.example.test user@example.testOffline training example — no live HTTP, mail or TLS request
Hidden password prompt openedmail connect imap.example.test user@example.test INBOX -ssl -p 993Offline training example — no live HTTP, mail or TLS request
Hidden password prompt openedmail connect imap.example.test user@example.test INBOX -tls -p 143Offline training example — no live HTTP, mail or TLS request
Hidden password prompt openedmail connect imap.example.test user@example.test INBOX -plain -p 143Offline training example — no live HTTP, mail or TLS request
Hidden password prompt openedmail connect imap.example.test user@example.test INBOX -kOffline training example — no live HTTP, mail or TLS request
Hidden password prompt openedmail boxesOffline training example — no live HTTP, mail or TLS request
INBOX
Archive
Sentmail box ArchiveOffline training example — no live HTTP, mail or TLS request
Status connected
Host imap.example.test:993/ssl
User user@example.test
Box Archive
Messages 7
Recent 0
Unread 1mail lsOffline training example — no live HTTP, mail or TLS request
*3 2026-10-31 10:05 contact@example.test Project update
2 2026-10-30 09:20 alerts@example.test Backup completemail ls 10Offline training example — no live HTTP, mail or TLS request
*3 2026-10-31 10:05 contact@example.test Project update
2 2026-10-30 09:20 alerts@example.test Backup completemail ls 10 -uOffline training example — no live HTTP, mail or TLS request
*3 2026-10-31 10:05 contact@example.test Project updatemail read 3Offline training example — no live HTTP, mail or TLS request
ID: 3
Date: Sat, 31 Oct 2026 10:05:00 +0000
From: contact@example.test
To: user@example.test
Subject: Project update
The files are ready for review.mail read 3 -o tmp/message.txtOffline training example — no live HTTP, mail or TLS request
Saved sandbox/tmp/message.txt
README.txt
message.txtmail read 3 -o tmp/message.txt -fOffline training example — no live HTTP, mail or TLS request
Saved sandbox/tmp/message.txt
README.txt
message.txtmail del 3Offline training example — no live HTTP, mail or TLS request
+mail undel 3Offline training example — no live HTTP, mail or TLS request
+mail expungeOffline training example — no live HTTP, mail or TLS request
+mail -eOffline training example — no live HTTP, mail or TLS request
+mail send someone@example.test "Test" "Hello from lil"Offline training example — no live HTTP, mail or TLS request
Mail accepted by local transport
(Note: this does not confirm delivery)mail send someone@example.test "Test" "Hello" -from admin@example.testOffline training example — no live HTTP, mail or TLS request
Mail accepted by local transport
(Note: this does not confirm delivery)mail send someone@example.test "Test" "Hello" -cc team@example.test -bcc archive@example.test -reply admin@example.testOffline training example — no live HTTP, mail or TLS request
Mail accepted by local transport
(Note: this does not confirm delivery)mail send not-an-email "Test" "Hello"Offline training example — no live HTTP, mail or TLS request
Invalid recipient addressmail send someone@example.test "A
B" "Hello"Offline training example — no live HTTP, mail or TLS request
Mail accepted by local transport
(Note: this does not confirm delivery)mail read bad-idOffline training example — no live HTTP, mail or TLS request
Valid message ID requiredmail connect imap.example.test user@example.test INBOX -p 70000Offline training example — no live HTTP, mail or TLS request
Invalid IMAP portmail connect imap.example.test user@example.test INBOX -unknownOffline training example — no live HTTP, mail or TLS request
Unknown option: -unknownmail send someone@example.testOffline training example — no live HTTP, mail or TLS request
To, subject and text are requiredmail boxOffline training example — no live HTTP, mail or TLS request
Mailbox name requiredFinalizes Local and Server Help synchronization and localization safety for