Network
elm
Command-line email client with full-screen interface.
emailmailclientterminalmutt
Additional Notes
elm is an interactive, full-screen email client for the terminal. It provides a menu-driven interface for reading, composing, replying, forwarding, and managing email messages. It was one of the early popular email clients on Unix systems before mutt and pine gained prominence.
The name stands for "ELectronic Mail." elm supports local mailboxes (/var/mail), MH folders, and can send messages via a local MTA or SMTP relay. It provides a built-in address book, message filtering, and user-configurable aliases.
Syntax
elm [options] [address...]
Parameters
address: Recipient address. If given,elmstarts in compose mode addressed to that user.
Common Options
-f mailbox: Open an alternate mailbox instead of the default inbox.-i file: Include the contents of a file in the message when composing.-s subject: Set the subject line when composing from the command line.-a file: Attach a file to the message.-c cc-address: Set a CC address when composing.-b bcc-address: Set a BCC address when composing.-d level: Enable debugging at the specified level.-h: Display help.-m: Check for new mail.-p: Print the current message to stdout.-z: Exit immediately if there is no mail.
Examples
elm
Open the main mailbox interface.
elm user@example.com
Compose a new message to a recipient.
elm -s "Report" -i report.txt user@example.com
Compose a message with a subject line and included file body.
elm -f ~/Mail/archive
Open an alternate mailbox folder.
Practical Notes
elmis less common on modern distributions; many users have migrated tomutt,alpine, orneomutt.- Commands within
elmuse single-key shortcuts:nfor next,dfor delete,rfor reply,sfor save,qfor quit. - Local mail is typically stored in
/var/mail/$USERfor the system mailbox. - Configuration is in
~/.elm/elmrc. - For sending mail in scripts without an interactive session, prefer
mailorsendmaildirectly.