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
* fixed typo in .gitignore and removed an entry in it
* adding gitignore to cli/
* reducing .gitignore in cli to one line
* 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>
This brings it in line with how notify-query works and how the wiki
defines it to also be a global option.
Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>