Write & send a message
There are multiple ways to send a message:
Compose a message interactively
$ himalaya message write
Opens your editor (the one specified in the $EDITOR
environment variable) to edit a new message, then sends it. The edition stops when you exit your editor.
You can customize the editor for a given command by prefixing it with a custom $EDITOR
environment variable:
$ EDITOR=nano himalaya message write
See the advanced version for more details.
Reply to a message interactively
$ himalaya message reply <ID>
Similar to write a new message: finds the message matching the given envelope identifier, opens your editor to edit a reply message then sends it.
Note: you can reply to all recipients with the flag -A|--all
.
See the advanced version for more details.
Forward a message interactively
$ himalaya message forward <ID>
Similar to write a new message: finds the message matching the given envelope identifier, opens your editor to edit a forward message then sends it.
See the advanced version for more details.
Send a message
$ himalaya message send [MESSAGE]...
Sends the given message. The message can come from arguments or from the standard input (if the terminal is not interactive).
See the advanced version for more details.
Example
$ cat /tmp/email.eml | himalaya message send
$ himalaya message send < /tmp/email.eml
$ himalaya message send 'From: alice@localhost
To: bob@localhost
Subject: Hello
Hello, world!'