### Added
* Added `-s|--sanitize` flag for the `read` command.
### Changed
* Changed the behaviour of the `-t|--mime-type` argument of the `read`
command. It is less strict now: if no part is found for the given
MIME type, it will fallback to the other one. For example, giving
`-t html` will show in priority HTML parts, but if none of them are
found it will show plain parts instead (and vice versa).
* Sanitization is not done by default when using the `read` command,
the flag `-s|--sanitize` needs to be explicitly provided.
### Fixed
* Fixed empty text bodies when reading html part on plain text email
[#352].
## himalaya-lib [[v0.4.0](2425269e6d)]
### Added
* Added pipe support for `(imap|smtp)-passwd-cmd` [#373].
* Added `imap-ssl` and `smtp-ssl` options to be able to disable
encryption [#347].
* Implemented sendmail sender [#351].
* Fixed `process` module for `MINGW*` [#254].
### Changed
* Moved `Email::fold_text_plain_parts` to `Parts::to_readable`. It
take now a `PartsReaderOptions` as parameter:
* `plain_first`: shows plain texts first, switch to html if empty.
* `sanitize`: sanitizes or not text bodies (both plain and html).
### Fixed
* Fixed long subject decoding issue [#380].
* Fixed bad mailbox name encoding from UTF7-IMAP [#370].
This step was necessary to move logic from CLI to lib. Indeed, the
trait returned by get_mboxes needed to implement Table, which is
related to the CLI module only.
* modified gitignore
* fixing gitignore
* reomving the himalaya.iml file
* applied cargo fmt
* adding rust-toolchain
* restoring the .gitignore file
* make nix use rust-toolchain.toml
* add back rustfmt and rust-analyzer to buildInputs
I opened an issue to see if its the correct behaviour from the
overlay: https://github.com/oxalica/rust-overlay/issues/88.
* adding clippy to rust-toolchain.toml
Co-authored-by: Clément DOUIN <clement.douin@posteo.net>
* modified gitignore
* fixing gitignore
* reomving the himalaya.iml file
* applied cargo fmt
* fixed typo in .gitignore and removed an entry in it
* adding gitignore to cli/
* reducing .gitignore in cli to one line
change the id parser according to the uuid spec:
https://datatracker.ietf.org/doc/html/rfc4122#section-3
and I get this error when using the vim plugin:
Error: cannot find maildir message by short hash "0" at "/path/to/my/INBOX"
Caused by:
0: cannot find maildir message id from short hash "0"
1: the short hash "0" matches more than one hash: 030598120934103c456ce08338886728, 06edb10a55efb89de45d8560aee33c8e
Signed-off-by: Robert Günzler <r@gnzler.io>
* fix(config/imap): get first line for password
Fixes#373
* fix(config/smtp): get first line password
Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>
This is according to:
https://docs.rs/termcolor/1.1.2/termcolor/#example-using-standardstream
Not resetting the color settings on the stream will leak the style to
the shell otherwise.
This can be observed when listing mailboxes prior to this patch.
Signed-off-by: Robert Günzler <r@gnzler.io>
Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>
* Default Content-Type to text/plain for not multipart messages
Parse body of messages without subparts as text/plain if Content-Type
header is not set.
* narrow check for defaulting to `text/plain`
take message body as `text/plain` only if message has only one part
and has no `Content-Type` header
Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>