Commit graph

129 commits

Author SHA1 Message Date
Clément DOUIN d26314cd48
fix cargo features 2024-08-13 11:49:46 +02:00
Clément DOUIN 90e12ddc51
wip: design basic tree using petgraph 2024-05-17 23:22:06 +02:00
Perma Alesheikh 1e448e56eb
replace dialoguer with inquire
In order to reduce our dependencies, we are replacing the dependencies
that use console_rs with those that use crossterm.

This commit will completely replace dialoguer with inquire.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-05-14 18:20:54 +02:00
Perma Alesheikh 5a0ff83a5e
replace anyhow and log with color_eyre and tracing
Since Himalaya is intended to be ran as a CLI in the terminal emulator
environment, their user experience could vastly improve with better and
more colorful error messages and logging.

This change will replace more minimal libraries for error-reporting/han-
dling with their more advanced counterparts.

Since these crates have tight integrations, this commit will change both
in one shot.

Also we have don't need env_logger any more. So I also have removed that
guy as well.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-04-15 12:17:56 +02:00
Clément DOUIN 58df66b5fa
update deps 2024-04-07 11:47:09 +02:00
Clément DOUIN d95f277bab
adjust code for pimalaya new errors + sync hash 2024-04-05 11:05:55 +02:00
Clément DOUIN ee9718a482
add message.delete.style config option 2024-03-23 17:07:41 +01:00
Clément DOUIN 799ee8b25b
use new template cursor api 2024-03-21 13:57:26 +01:00
Clément DOUIN 1c23adc8a2
fix unit tests 2024-03-16 22:31:32 +01:00
Clément DOUIN 7ee710634b
bump deps, make global config option repeatable 2024-03-16 22:20:19 +01:00
Clément DOUIN 3868c62511
prevent unknown fields at top config level 2024-03-12 11:57:37 +01:00
Clément DOUIN 5cb247169a
fix unit tests 2024-02-23 08:25:15 +01:00
Clément DOUIN 3e0cf0cfda
refactor backend system, remove accouts flattening 2024-02-21 11:38:50 +01:00
Clément DOUIN 83306d5f6a
fix pgp unit test 2024-01-28 08:42:18 +01:00
Clément DOUIN 4f9705952a
refactor new backend api 2024-01-27 11:15:03 +01:00
Clément DOUIN 7eba3a5186
generate one autoconfig per email address 2024-01-15 15:27:14 +01:00
Clément DOUIN 1246be8a5b
fix wizard serialization issues 2024-01-12 10:16:43 +01:00
Perma Alesheikh 87eac50eb7
remove comparison with boolean value
Reasons:
- The bool value itself is enough for the filter expression.
- Simplifies the expression.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-01-09 22:12:46 +01:00
Perma Alesheikh b417ad11a0
use if let instead of a map with only sideeffects
Reasons:
- Map is usually intended for transforming a value, and as is not
  idiomatically used for only doing side-effects and control flow.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-01-09 22:10:28 +01:00
Perma Alesheikh 945c567f35
remove reference over trait implemented type
Reasons:
- String already implement the AsRef<str>.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-01-09 22:08:41 +01:00
Perma Alesheikh 2ef477c225
remove needless update using default
Reasons:
- Every field is either turned-off entirely or assigned a value when it
  needs one.
- Avoids the situation when a new field is introduced and is assigned a
  default value when it is not desired.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-01-09 22:07:37 +01:00
Clément DOUIN bd1ac45a58
remove empty string from println call 2024-01-09 22:02:09 +01:00
Clément DOUIN b0d7e773dc
renamed sync feature to account-sync, put wizard stuff under feature 2024-01-09 09:28:45 +01:00
Clément DOUIN a6b863759c
add one cargo feature per backend feature 2024-01-07 23:48:45 +01:00
Clément DOUIN 9838854ec0
remove obsolete unit tests 2023-12-20 08:17:06 +01:00
Clément DOUIN d6bf407653
move watch command from folder to envelope 2023-12-14 14:12:25 +01:00
Clément DOUIN 7fccdd822a
init folder watch command 2023-12-14 12:13:08 +01:00
Clément DOUIN 3e3f111d3b
fix typos 2023-12-11 22:01:48 +01:00
Clément DOUIN 2e0ec913cf
refactor configs to match new nested api from lib 2023-12-11 18:38:00 +01:00
Clément DOUIN 8e05be7f77
apply pr #461 due to conflicts, bump pimalaya crates 2023-12-10 22:01:49 +01:00
Clément DOUIN ef3214f36f
clean doc 2023-12-08 12:18:18 +01:00
Clément DOUIN abe4c7f4ea
refactor account with clap derive api 2023-12-06 18:09:49 +01:00
Clément DOUIN d2308221d7
refactor man and completion with clap derive api 2023-12-05 22:38:08 +01:00
Clément DOUIN 7a10a7fc25
reorganize folder and cli structure 2023-12-05 15:06:26 +01:00
Clément DOUIN 8b1a289f4d
rename existing cargo features, fix imports 2023-12-04 22:26:49 +01:00
Clément DOUIN ea9c28b9d7
fix config and oauth2 2023-12-04 16:25:56 +01:00
Clément DOUIN c54ada730b
fix wizard 2023-12-03 22:31:43 +01:00
Clément DOUIN f24a0475cc
fix imap credentials and pgp 2023-12-03 13:03:36 +01:00
Clément DOUIN 41a2f02699
rename config and account config 2023-11-29 07:52:08 +01:00
Clément DOUIN fb8f356e8c
fix id mapper 2023-11-28 22:28:28 +01:00
Clément DOUIN a0888067da
fix sync cache 2023-11-28 12:30:50 +01:00
Clément DOUIN 1f88b27468
init backend override with list envelopes and send message 2023-11-26 12:16:07 +01:00
Clément DOUIN cec658aff4
bump lib with backend features 2023-11-25 12:37:00 +01:00
Clément DOUIN 56fc31b367
bump mml-lib@v0.5.0 and email-lib@v0.15.3 2023-09-25 15:32:29 +02:00
Clément DOUIN 4b60379070
try fixing #132 by using shellexpand-utils
https://todo.sr.ht/~soywod/pimalaya/132
2023-08-29 11:28:20 +02:00
Clément DOUIN 7ad1772c83
update pimalaya libs, prepare v0.9.0 2023-08-28 09:05:14 +02:00
Hugo Osvaldo Barrera f61a1f6669
make sendmail-cmd optional
Use the common /usr/sbin/sendmail the default. This is a common default
hardcoded in many applications.

Fixes: https://todo.sr.ht/~soywod/pimalaya/126
2023-08-27 21:39:27 +02:00
Clément DOUIN 176da9eeeb
add pgp commands support back 2023-08-05 22:53:39 +02:00
Clément DOUIN 0eed8f355d
add gpg support 2023-08-05 12:10:25 +02:00
Clément DOUIN 183c0272cc
fix pgp exports 2023-08-04 21:33:15 +02:00