Commit graph

345 commits

Author SHA1 Message Date
Clément DOUIN
3f5feed0ff
extract account and config from cli to lib (#340) 2022-05-28 17:07:29 +02:00
Clément DOUIN
0e98def513
msg: add imap flag aliases 2022-05-28 17:02:45 +02:00
Clément DOUIN
cc918e0eee
fix license and readme file path in cargo.toml 2022-05-28 17:02:45 +02:00
TornaxO7
b6643be03f
add rust toolchain.toml (#386)
* 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>
2022-05-28 14:36:32 +02:00
TornaxO7
bed5a3856b
improve gitignore files (#385)
* 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
2022-05-28 14:10:38 +02:00
Robert Günzler
0696f36f05
vim: msg_id is a uuid string (#383)
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>
2022-05-28 09:49:40 +02:00
Dmitriy Pleshevskiy
ba8ef9adf6
fix(config/imap): get first line for password (#374)
* 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>
2022-05-24 00:41:29 +02:00
Robert Günzler
5a2d7fa6b5
always reset colors settings on the output stream after writing (#375)
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>
2022-05-07 22:54:49 +02:00
Dmitriy Pleshevskiy
4d91a5d74e
table: reset color after cell (#372)
Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>
2022-05-07 22:29:09 +02:00
fabrixxm
b7157573f2
default Content-Type to text/plain for not multipart messages (#357)
* 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>
2022-05-07 22:13:08 +02:00
ugla
6d154abcb5
add tpl_args for write subcommand (#361)
Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>
2022-04-16 13:50:49 +02:00
João Capucho
0ddcce22e6
check the global config for notify-cmd (#362)
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>
2022-04-15 21:50:05 +02:00
Clément DOUIN
37572e6c23
prepare release v0.5.10 2022-03-20 21:19:45 +01:00
Clément DOUIN
87fc37729f
bump maildir version with windows support (#346) 2022-03-20 21:17:21 +01:00
Clément DOUIN
b2cffd22f1
use cargo workspace feature (#340)
For now, everything has been moved as it is in the "cli"
workspace. The next step is to separate the "lib" from the "cli".
2022-03-16 09:57:24 +01:00
Clément DOUIN
ac8628c08c
fix flag commands (#334) 2022-03-15 13:55:40 +01:00
Clément DOUIN
4f6f884962
prepare release v0.5.9 2022-03-12 18:02:46 +01:00
Clément DOUIN
e5413fb902
improve msg date readable format 2022-03-12 17:45:56 +01:00
Clément DOUIN
1d969a0d3a
simplify msg header decoding 2022-03-12 17:01:05 +01:00
Clément DOUIN
f9bed5f3c2
introduce read_headers in account config (#338) 2022-03-12 15:27:53 +01:00
Clément DOUIN
d3968461e2
add tests for --header arg of read command (#338) 2022-03-12 13:57:27 +01:00
Clément DOUIN
86b41e4914
introduce --header arg for read command (#338) 2022-03-12 13:05:57 +01:00
Clément DOUIN
eb6f51456b
improve draft file ext 2022-03-12 00:49:51 +01:00
Clément DOUIN
6b042f5e6a
fix listings json api (#331) and maildir e2e tests (#335) 2022-03-12 00:33:50 +01:00
Clément DOUIN
811ea45610
improve mailbox alias management 2022-03-09 12:30:10 +01:00
Clément DOUIN
1f01202262
check for absolute and relative maildir paths 2022-03-09 09:48:23 +01:00
Clément DOUIN
d79c6c40a7
make mdir inbox condition case insensitive 2022-03-08 14:29:53 +01:00
Clément DOUIN
984eb8c9f7
fix notmuch backend infinite loop (#329) 2022-03-08 14:22:02 +01:00
Clément DOUIN
3899ec9c03
build smtp envelope after executing pre_send hook 2022-03-06 13:15:58 +01:00
Daniel M. Capella
4dc1be25cd
fix typo sig delim in comment (#328) 2022-03-06 09:34:25 +01:00
Clément DOUIN
f79e0ae4fb
add pre-send hook (#178) 2022-03-05 00:42:11 +01:00
Clément DOUIN
212f5e6eb1
improve attachments command (#281)
Also fixed a printer typo.
2022-03-04 23:05:01 +01:00
Clément DOUIN
130ed24a5a
fix missing or invalid cc when replying to a message (#324)
I also added tests for the `Msg::into_reply` method and made the
`Msg::merge_with` stricter.
2022-03-04 21:50:09 +01:00
Oskar
19f4483a3e
fix replies (#323) 2022-03-04 18:15:26 +01:00
Clément DOUIN
4bbc348dc6
fix nix run command 2022-03-04 16:04:22 +01:00
Clément DOUIN
a14ce2af60
fix typo in gh action workflow test 2022-03-04 14:51:06 +01:00
Clément DOUIN
cb21edaec4
add libnotmuch to test gh action workflow 2022-03-04 14:49:02 +01:00
Clément DOUIN
04cce37316
prepare release v0.5.8 2022-03-04 14:36:16 +01:00
Clément DOUIN
f06beb61ae
make one cargo feature per backend (#318) 2022-03-04 14:19:54 +01:00
Clément DOUIN
c40dde6e9a
update readme features section 2022-03-04 09:46:17 +01:00
Clément DOUIN
23a8118da9
fix account typo in comment 2022-03-03 17:33:26 +01:00
Clément DOUIN
736641bf77
add list accounts command (#244) 2022-03-03 17:29:39 +01:00
Clément DOUIN
e5164a2ce3
fix bad sender and date in reply and forward tpl (#321) 2022-03-03 15:16:34 +01:00
Clément DOUIN
1b16804ed6
update changelog 2022-03-03 13:12:01 +01:00
Clément DOUIN
613e592f72
implement flowed format POC (#206) 2022-03-03 12:16:59 +01:00
Clément DOUIN
6e5362e76e
add keybind precision vim readme (#298) 2022-03-02 23:32:00 +01:00
Clément DOUIN
6b920cbe76
remove variation selectors from table cells (#300) 2022-03-02 11:13:38 +01:00
Clément DOUIN
4e24d04faf
update changelog, prepare v0.5.7 2022-03-01 23:14:34 +01:00
Clément DOUIN
21e5658e43
fix errors and warns notmuch cargo feature 2022-03-01 22:50:24 +01:00
Clément DOUIN
5f13489e83
improve maildir and notmuch tests 2022-03-01 22:44:40 +01:00