Send a message

$ himalaya message send [OPTIONS] [MESSAGE]...

This command allows you to send a raw message and to save a copy to your send folder.

The raw message can be send either as a regular argument or using standard input (pipe or redirection).

Options

--disable-cache

Disable any sort of cache.

The action depends on commands it apply on. For example, when listing envelopes using the IMAP backend, this flag will ensure that envelopes are fetched from the IMAP server rather than the synchronized local Maildir.

-a|--account

Override the default account.

An account name corresponds to an entry in the table at the root level of your TOML configuration file.

Settings

message.send.backend

Override the backend used for sending messages.

# valid backends: smtp, sendmail
message.send.backend = "smtp"

message.send.save-copy

Should save a copy to the sent folder of the message being sent.

message.send.save-copy = true

message.send.pre-hook

The hook called just before sending a message.

The command should take a raw message as standard input (stdin) and returns the modified raw message to the standard output (stdout).

message.send.pre-hook = "process-markdown.sh"

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!'