Commit Graph

43 Commits

Author SHA1 Message Date
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 cc79f5cc38 fix wrong deps 2024-04-14 16:03:04 +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 799ee8b25b use new template cursor api 2024-03-21 13:57:26 +01:00
Clément DOUIN 1699a581ce update flake and cargo 2024-02-25 09:07:40 +01:00
Clément DOUIN 04982a4644 fix cargo features issues 2024-02-24 14:27:05 +01:00
Clément DOUIN 0e35a0cd64 add account check-up command 2024-02-24 07:55:37 +01:00
Clément DOUIN 1907817392 fix envelope issues preventing sync to work properly 2024-02-21 22:16:06 +01:00
Clément DOUIN 3e0cf0cfda refactor backend system, remove accouts flattening 2024-02-21 11:38:50 +01:00
Clément DOUIN 35c1453863 added wizard warning about google passwords 2024-02-04 11:36:11 +01:00
Clément DOUIN 4f9705952a refactor new backend api 2024-01-27 11:15:03 +01:00
Clément DOUIN 3137e1e851 add back notmuch features (part 1) 2024-01-21 15:59:03 +01:00
Clément DOUIN 7d4ad9c1d9 replaced autoconfig by custom email-lib account discovery module 2024-01-18 11:59:27 +01:00
Clément DOUIN 2342a83d0d deny unknown fields on toml account config 2024-01-15 22:34:30 +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 59fefd7c78 use or instead of or_else
Reasons:
- Closure is not needed.
- Makes it more concise.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-01-09 21:49:33 +01:00
Clément DOUIN 6fcdf7ea10 fix bad prompt_passwd for pgp config 2024-01-09 21:37:53 +01:00
Clément DOUIN 6f9f75cfd2 plug autoconfig to imap and smtp wizards 2024-01-09 21:36:17 +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
Perma Alesheikh 95eed65193 use empty ok instead of wrapping empty expression
Reasons:
- It is more readable since the evaluated result is more explicit.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-01-08 23:01:52 +01:00
Perma Alesheikh 3cca9ac9e8 use static instead of const for lazy values
Reasons:
- Every time a const is referenced, a new instance of the Cell, Mutex,
  or AtomicXxxx is created, negating the purpose of using these types.
  To address this issue, the const value should be stored within
  a static item.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-01-08 23:01:41 +01:00
Perma Alesheikh d2ad386eaa use as as_deref instead of as_ref and mapping on str
Reasons:
- Make the code more direct and concise.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-01-08 23:01:26 +01:00
Clément DOUIN 161f35d20e clean cargo features 2024-01-08 10:34:37 +01:00
Clément DOUIN 819bdc84b3 fix features warns and save sent message copy option 2024-01-08 00:33:07 +01:00
Clément DOUIN a6b863759c add one cargo feature per backend feature 2024-01-07 23:48:45 +01:00
Clément DOUIN 45ce05ec4d fix typos 2024-01-05 21:59:41 +01:00
Clément DOUIN 0352e91e36 improve backend features management for every command 2024-01-03 12:58:44 +01:00
w3irdrobot 77206b2326 allow account.sendmail when sendmail feature is on 2024-01-01 13:49:31 -05:00
Clément DOUIN 9838854ec0 remove obsolete unit tests 2023-12-20 08:17:06 +01:00
Clément DOUIN 6942c59097 improve folder alias management 2023-12-15 22:54:13 +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 24bb6f10d7 fix broken link in readme 2023-12-12 15:25:49 +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 04e721d591 adjust api, test commands with a greenmail instance 2023-12-09 09:38:33 +01:00
Clément DOUIN ef3214f36f clean doc 2023-12-08 12:18:18 +01:00
Clément DOUIN 4a77253c1d refactor folder with clap derive api 2023-12-06 22:13:50 +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