Commit graph

408 commits

Author SHA1 Message Date
Clément DOUIN
c0e002ea1b
clean process and account modules (#340) 2022-06-27 01:13:55 +02:00
Clément DOUIN
a5c4fdaac6
move backend to lib folder (#340) 2022-06-26 21:47:04 +02:00
TornaxO7
3b2991ae56
bumping lettre to 0.10.0-rc.7 (#391)
* bumping lettre to 0.10.0-rc.7

* executed `cargo build`
2022-06-05 17:51:34 +02:00
Clément DOUIN
3c5379b24d
fix tests 2022-06-05 17:14:57 +02:00
Clément DOUIN
8f667def0c
move envelopes and flags to lib
refactor maildir envelopes/flags

refactor notmuch envelopes
2022-06-05 13:55:40 +02:00
TornaxO7
ca67780341
updating the version of lettre (#389) 2022-06-04 11:17:29 +02:00
Clément DOUIN
e1c92d3f57
make Backend::add_msg return String instead of trait (#340)
This step was necessary to move logic from CLI to lib.
2022-05-29 14:06:54 +02:00
Clément DOUIN
7c01f88006
make Backend::get_mboxes return struct instead of trait (#340)
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.
2022-05-29 12:36:10 +02:00
Clément DOUIN
a0461d84ba
use default rust toolchain components 2022-05-28 20:03:27 +02:00
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
fe8f9eab7c
Merge pull request #349 from soywod/development
Release v0.5.10
2022-03-20 22:12:48 +01: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
a44e94bd6f
Merge pull request #339 from soywod/development
Release v0.5.9
2022-03-12 18:06:29 +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
2d077faa88
Merge pull request #322 from soywod/development
Release v0.5.8
2022-03-04 16:41:52 +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