Read a message
$ himalaya message read [OPTIONS] <ID>...
Reads message(s) matching the given envelope id(s).
Note: when reading message(s), the seen
flag is automatically applied to the corresponding envelope(s). To prevent this behaviour, use the --preview
flag instead.
Options
-f|--folder
The name of the folder.
-p|--preview
Read the message without applying the “seen” flag to its corresponding envelope.
-r|--raw
Read only body of text/html parts.
This argument is useful when you need to read the HTML version of a message. Combined with --no-headers
, you can write it to a .html
file and open it with your favourite browser.
--no-headers
Read only the body of the message.
All headers will be removed from the message.
-H|--header
Prefill the template with custom headers (can be repeated).
A raw header should follow the pattern KEY:VAL
.
--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.read.backend
Override the backend used for reading messages.
# valid backends: maildir, imap, notmuch
message.read.backend = "imap"
message.read.headers
Define visible headers at the top of messages when reading them.
message.read.headers = ["Date", "From", "To", "Subject"]
message.read.format
Define the text/plain format as defined in the RFC 2646.
# The content should fit its container (default).
message.read.format = "auto"
# The content should not be restricted.
message.read.format = "flowed"
# The content should fit in a fixed amount of pixels.
message.read.format.fixed = 80
Example
$ himalaya message read --disable-cache --account posteo --folder Archives.FOSS 944
From: ~matf <outgoing@sr.ht>
To: soywod <clement.douin@posteo.net>
Subject: ~soywod/pimalaya#154: Configuration wizard: cannot canonicalize path
I built `himalaya` from sources using the `cargo` instructions in the documentation, then followed the configuration wizard (it's nice), but unfortunately it seems unable to save the `config.toml`:
✘ cannot canonicalize path "/home/droidian/.config/himalaya/config.toml"
? Where would you like to save your configuration? (/home/droidian/.config/himalaya/config.toml) ›
The same happens whether I `mkdir -p ~/.config/himalaya` or not.
Any ideas? This is on aarch64.
--
View on the web: https://todo.sr.ht/~soywod/pimalaya/154