Commit graph

316 commits

Author SHA1 Message Date
Clément DOUIN f71720e6b9
refactor tpl system (#80) 2021-05-31 00:02:16 +02:00
Matthias Beyer 62ac9aef2c
refactor msg matches (#151)
* Refactor msg_matches() impl into several functions

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

* Simplify impl of msg_matches()

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

* Refactor to use msg_matches_list() impl for default case as well

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

* Remove unidomatic return keyword

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-05-23 12:04:37 +02:00
Paolo Barbolini c9e1609ea9
update lettre to v0.10.0-rc.1 (#150)
$ cargo update -p lettre --aggressive
    Updating crates.io index
    Updating aho-corasick v0.7.15 -> v0.7.18
    Removing bytes v1.0.1
    Updating cc v1.0.66 -> v1.0.67
      Adding fastrand v1.4.1
    Removing getrandom v0.1.15
    Removing http v0.2.3
    Removing httparse v1.3.5
    Updating httpdate v0.3.2 -> v1.0.0
    Removing hyperx v1.3.0
    Updating idna v0.2.0 -> v0.2.3
    Removing language-tags v0.2.2
    Updating lettre v0.10.0-beta.3 -> v0.10.0-rc.1
    Updating libc v0.2.88 -> v0.2.94
    Updating lock_api v0.4.3 -> v0.4.4
    Updating memchr v2.3.4 -> v2.4.0
    Updating native-tls v0.2.6 -> v0.2.7
    Updating once_cell v1.5.2 -> v1.7.2
    Updating openssl v0.10.32 -> v0.10.34
    Updating openssl-probe v0.1.2 -> v0.1.4
    Updating openssl-sys v0.9.60 -> v0.9.63
    Updating parking_lot_core v0.8.2 -> v0.8.3
    Removing percent-encoding v2.1.0
    Updating quoted_printable v0.4.2 -> v0.4.3
    Removing rand v0.7.3
    Removing rand_chacha v0.2.2
    Removing rand_core v0.5.1
    Removing rand_hc v0.2.0
      Adding redox_syscall v0.2.8
    Updating regex v1.4.2 -> v1.5.4
    Updating regex-syntax v0.6.21 -> v0.6.25
    Updating security-framework v2.0.0 -> v2.2.0
    Updating security-framework-sys v2.0.0 -> v2.2.0
    Updating smallvec v1.6.0 -> v1.6.1
    Updating tempfile v3.1.0 -> v3.2.0
    Removing thread_local v1.0.1
    Updating tinyvec v1.1.0 -> v1.2.0
    Removing unicase v2.6.0
    Updating unicode-bidi v0.3.4 -> v0.3.5
    Updating unicode-normalization v0.1.16 -> v0.1.17
    Updating vcpkg v0.2.11 -> v0.2.12
    Updating version_check v0.9.2 -> v0.9.3
    Removing wasi v0.9.0+wasi-snapshot-preview1
2021-05-14 18:49:31 +02:00
Clément DOUIN 36d3cd6347
bump imap-rust v3.0.0-alpha.3 2021-05-09 21:40:37 +02:00
Clément DOUIN 027b8726c6
fix missing attachment arg for reply and forward cmds (#109) 2021-05-09 13:14:37 +02:00
Clément DOUIN 15376eedc3
remove content-type from templates (#146) 2021-05-09 13:04:03 +02:00
Clément DOUIN 44fbaaa1d6
fix seen flag when moving a msg 2021-05-08 23:14:28 +02:00
Clément DOUIN 66abac61fa
add wiki entry about new msgs counter (#121) 2021-05-08 13:19:25 +02:00
Clément DOUIN ef1a22d986
split idle cmd into notify+watch, remove err when empty result 2021-05-07 16:41:51 +02:00
Clément DOUIN dcbbe01c94
add mailbox attributes (#134) 2021-05-04 23:11:01 +02:00
Clément DOUIN 435932a501
get signature from file (#135) 2021-05-04 16:19:06 +02:00
Clément DOUIN 9ba0c75c58
remove \t from subjects (#141) 2021-05-04 12:18:36 +02:00
Clément DOUIN 4668d51476
use stdin to send message (#78) 2021-05-04 00:15:11 +02:00
Clément DOUIN d5ed69ebf9
fix overflow panic when shrink column (#138) 2021-05-03 22:10:03 +02:00
Clément DOUIN e07e72f497
fix table with subject containing \r\n(#141) 2021-05-03 14:25:28 +02:00
Clément DOUIN 05b0274725
add debug and trace logs in table module (#138) 2021-05-03 14:08:04 +02:00
Clément DOUIN 364654e1ce
init integration tests 2021-05-02 23:49:20 +02:00
Clément DOUIN fa2f93185f
improve logging, replace log-level by RUST_LOG 2021-04-28 00:47:24 +02:00
Clément DOUIN 950e57acdb
show email addr when name not available (#131) 2021-04-27 18:10:18 +02:00
Clément DOUIN 754d311a05
fix edition file format (#133) 2021-04-27 17:18:53 +02:00
Clément DOUIN cddb7bde37
refactor table system (#132)
* init table trait

* add shrink_col_index and max_width method to Table trait

* make unicodes work when shrinking

* improve readability of the table

* replace old table system with new one

* update changelog
2021-04-27 14:54:53 +02:00
Clément DOUIN cb296a5d98
fix stderr redirection (#130) 2021-04-26 11:32:19 +02:00
Clément DOUIN 06f628c33b
fix idle mode after network interruption (#123) 2021-04-25 16:20:24 +02:00
Clément DOUIN 17df485e19
vim table containing emoji (#122) 2021-04-24 23:31:26 +02:00
Clément DOUIN 15c635eb1d
use env_logger for plain output fmt (#126) 2021-04-24 22:54:01 +02:00
Antonio Yang 477b7748de
add content-transfer-encoding support (#128) 2021-04-24 19:32:12 +02:00
Clément DOUIN 366e0b72ed
add idle_hook_cmds setting 2021-04-23 00:20:02 +02:00
Antonio Yang b24ff24426
handle completions subcommand first (#116)
* handle completions subcommand first

* raise errors from comp_matches

Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>

Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>
2021-04-20 12:35:01 +02:00
Axel Dahlberg 6284b0c5a6
improve signature and template management (#114)
* Added signature seperator option plus some refactoring

* Have add_content make newline seperation to headers

* Remove signature separator as a separate argument
2021-04-20 11:23:03 +02:00
Chawye Hsu 28812eab06
improve config compatibility on windows (#111)
* fix: fix config loading compatibility on Windows

Signed-off-by: Chawye Hsu <chawyehsu@hotmail.com>

* more strictly on matching crlf chars

* use conditional assignment
2021-04-19 11:26:28 +02:00
Clément DOUIN 4af2b6a0ac
refactor readme + wiki (#110)
* make readme more concise

* update wiki

* update wiki links inside readme
2021-04-18 23:08:50 +02:00
Clément DOUIN 0907683e31
split modules into mod.rs files 2021-04-18 00:21:22 +02:00
Clément DOUIN 95b99c25da
add custom config path (#86) 2021-04-17 23:19:34 +02:00
Clément DOUIN 3e0d1f704d
add default page size config (#96) 2021-04-17 22:41:10 +02:00
Clément DOUIN f3a67cecd5
fix idle mode notifications (#48) 2021-04-17 00:00:52 +02:00
remche 9317e6b8a5
allow insecure tls option, second try (#105) 2021-04-16 12:33:12 +02:00
Clément DOUIN 2f018889e0
fix panic when downloads-dir does not exist (#100) 2021-04-16 00:00:00 +02:00
Clément DOUIN 33185dba86
save msg upon error (#59) 2021-04-15 23:29:58 +02:00
remche f4cc584716
add insecure tls option for testing purpose (#103) 2021-04-15 13:35:59 +02:00
Clément DOUIN aad74add52
make completion cmd a subcommand of shell args 2021-04-15 13:24:18 +02:00
Clément DOUIN 511878fbd1
remove unused smtp import 2021-04-14 10:40:33 +02:00
remche 9287846aed
add completion subcommands (#99)
* add completion subcommands

* improve error mgmt, add entry to readme

Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>
2021-04-14 10:28:23 +02:00
Sridhar Ratnakumar 647c0c25ce
fix smtp port (#94)
* Respect smtp port when sending email

(cherry picked from commit ef89cbd30296389b7d363ecbb03080081304d98e)

* smtp: remove explicit timeout

Also remove redundant variable
2021-04-13 16:44:24 +02:00
Clément DOUIN 926f476194
increase smtp timeout (#87) 2021-04-12 00:38:10 +02:00
Clément DOUIN e8ae4b025f
release v0.2.5 2021-04-12 00:21:08 +02:00
Clément DOUIN 557c5b79bc
expunge mbox after move and delete cmds (#83) 2021-04-09 14:42:25 +02:00
Clément DOUIN da15ffafd0
add wiki entry about read msg 2021-04-09 00:46:21 +02:00
Clément DOUIN 570c67a2bb
add --raw arg for read cmd (#79) 2021-04-09 00:30:18 +02:00
Clément DOUIN f26051685c
refactor output system (#74) 2021-04-09 00:15:16 +02:00
Clément DOUIN ebf1b854be
add silent flag (#74) 2021-04-08 18:44:31 +02:00
Clément DOUIN 8e6740db65
add info log for copy/move/delete cmds 2021-04-08 18:33:12 +02:00
Clément DOUIN daaa37f3a7
fix incomplete copy/move (#75) 2021-04-08 13:55:23 +02:00
Clément DOUIN 994141f852
fix unicode issue (#71) 2021-04-08 12:59:44 +02:00
Clément DOUIN 1dc051c7c0
add alias for write cmd 2021-04-04 17:43:23 +02:00
Clément DOUIN d99e17af75
fix logs attachment cmd 2021-04-04 17:41:31 +02:00
Clément DOUIN 9602fc0b5b
fix page size for search cmd 2021-04-04 17:38:40 +02:00
Clément DOUIN 409e25fc4d
fix pagination 2021-04-04 15:07:41 +02:00
Clément DOUIN 3d702677b5
refactor vim fn naming 2021-04-04 14:25:55 +02:00
Clément DOUIN 9f7173a572
prevent simultaneous imap conn 2021-04-04 00:17:27 +02:00
Clément DOUIN 2850ae01fd
implement add attachement to msg feature 2021-04-03 22:30:57 +02:00
Clément DOUIN 17115319ee
introduce signature feature 2021-04-03 11:50:07 +02:00
Clément DOUIN 1a26ac4b2c
rename messages subcmd to list 2021-04-03 11:26:12 +02:00
Clément DOUIN 8d1f1e5ed1
add copy/move/delete features 2021-03-31 23:00:54 +02:00
Clément DOUIN 8dbd7c1e7a
merge app with main 2021-03-23 22:37:52 +01:00
Clément DOUIN f2158e71d2
extract output cli+utils 2021-03-23 22:26:29 +01:00
Clément DOUIN e2ba18cda8
extract imap cli+model 2021-03-23 22:20:54 +01:00
Clément DOUIN 96c527dd1a
clean msg/mbox cli files 2021-03-23 22:06:42 +01:00
Clément DOUIN a0296a54d2
extract mbox and msg logics 2021-03-22 22:22:05 +01:00
Clément DOUIN e108729491
extract flags from msg model 2021-03-22 12:50:22 +01:00
Clément DOUIN 563f9a6538
split flags cli logic to a dedicated mod 2021-03-19 23:15:38 +01:00
Clément DOUIN 1d92b5bc00
add answered flag when replying to a message 2021-03-19 22:05:34 +01:00
Clément DOUIN ac6931624b
add flags managers 2021-03-19 22:02:33 +01:00
Clément DOUIN 64019fa5ec
improve choice after editing msg 2021-03-16 23:39:43 +01:00
Clément DOUIN 0dd73e693e
fixed overflow when empty page 2021-03-16 22:33:06 +01:00
Clément DOUIN c9b26031e2
add missing flags column for msgs table 2021-03-16 21:55:08 +01:00
Clément DOUIN 1e5cce0205
improve errors management 2021-03-12 23:01:01 +01:00
Clément DOUIN 781c4a2722
rename idle notify cmd 2021-03-12 00:07:01 +01:00
Clément DOUIN 6e9e7cd30e
add idle mode 2021-03-11 17:22:16 +01:00
Clément DOUIN b6cbfc26be
release v0.2.0 2021-03-10 23:08:31 +01:00
Clément DOUIN f8833ccd7c
add basic flags 2021-03-10 18:05:26 +01:00
Clément DOUIN 10c523fd2c
improve read and attachments commands 2021-03-10 16:46:47 +01:00
Clément DOUIN f7ed99d55f
add send and sav subcommands 2021-03-09 15:26:41 +01:00
Clément DOUIN 2b5be91af9
add template commands 2021-03-07 20:37:37 +01:00
Clément DOUIN 3281c27d57
add starttls option, rename config keys to kebab-case 2021-03-05 13:59:50 +01:00
Clément DOUIN 5e948b5cc1
improve list msgs perf, remove flags column 2021-01-18 12:10:16 +01:00
Clément DOUIN d392d71129
serialize mbox to json 2021-01-17 22:48:50 +01:00
Clément DOUIN d928feefc8
fix typo reply all arg 2021-01-17 17:32:51 +01:00
Clément DOUIN c04752f96d
fix search command 2021-01-17 17:12:26 +01:00
Clément DOUIN 65a3851dca
add github action for releases 2021-01-17 14:45:47 +01:00
Clément DOUIN 34189ad8ad
take passwds from command instead of clear 2021-01-17 11:52:31 +01:00
Clément DOUIN ff724cb5be
set up multi account 2021-01-16 22:58:28 +01:00
Clément DOUIN 60af11bd47
make table responsive 2021-01-16 19:46:55 +01:00
Clément DOUIN c3d5559234
remove display cell trait 2021-01-16 15:39:26 +01:00
Clément DOUIN 04642859e8
complete merge email/msg 2021-01-16 15:30:53 +01:00
Clément DOUIN 0a508f2e95
start merging email with msg, add list msgs command 2021-01-16 13:16:40 +01:00
Clément DOUIN a803800d1c
disable flags column (need to be fixed) 2021-01-15 13:37:18 +01:00
Clément DOUIN 1536fdb894
implement download attachments feature 2021-01-15 12:21:07 +01:00
Clément DOUIN 43c35532be
implement reply, reply all and forward features 2021-01-15 00:00:31 +01:00
Clément DOUIN 2709faf30a
improve errors management 2021-01-12 23:49:44 +01:00
Clément DOUIN b023704d31
add todos, update readme help text 2021-01-08 10:22:56 +01:00
Clément DOUIN cb8610a35f
improve extract subparts fn 2021-01-08 00:29:53 +01:00
Clément DOUIN 01de392977
improve config error management 2021-01-07 12:34:02 +01:00
Clément DOUIN d746a780ba
init editor, improve main error management 2021-01-07 00:19:07 +01:00
Clément DOUIN c7b326a695
refactor write email command 2021-01-06 16:05:08 +01:00
Clément DOUIN 80837044b2
refactor list mailbox command 2021-01-06 14:42:19 +01:00
Clément DOUIN 18042b02b8
refactor + clean table system [WIP] 2021-01-05 23:54:39 +01:00
Clément DOUIN 125c4e2b0e
set up smtp #4 + write email feature #8 2021-01-03 23:19:31 +01:00
Clément DOUIN 0a48df0567
add text and html previews 2021-01-03 17:28:42 +01:00
Clément DOUIN 187b886a1c
add list mailboxes cmd 2021-01-03 10:59:51 +01:00
Clément DOUIN d94b86ca4e
add help entry to readme 2021-01-03 00:54:29 +01:00
Clément DOUIN d8116c6103
set up cli arg parser #15 2021-01-03 00:45:43 +01:00
Clément DOUIN 2970828db9
add new emails listing feature #6 2021-01-02 19:21:30 +01:00
Clément DOUIN 80fb4bd1d9
init table system 2021-01-02 14:50:36 +01:00
Clément DOUIN 2a567040ac
set up imap connection 2020-12-25 22:39:16 +01:00
Clément DOUIN f9e75ee3b4
deserialize config from toml #1 #2 2020-12-25 00:31:38 +01:00
Clément DOUIN 87f1d3171e
init project, init toml config parser 2020-12-24 00:55:57 +01:00