Manos Pitsidianakis
fa96a4e905
themes: add support for optional field theme value links
...
Theme attribute values can refer to another theme key instead of
defining a value. Add support for optionally defining the theme key's
field by appending a ".fg" or ".bg" suffix to the link's key.
2020-06-02 18:31:07 +03:00
Manos Pitsidianakis
9c0ee76ff4
themes: Rename Theme struct to Themes
2020-06-02 18:31:07 +03:00
Manos Pitsidianakis
5144fb6b6b
Add CHANGELOG.md file
2020-06-01 18:05:03 +03:00
Manos Pitsidianakis
049175e743
pager: fix filter invocation and ansi parsing
2020-05-31 22:37:06 +03:00
Manos Pitsidianakis
bee1baedb2
themes: add indentation level color keys
...
Add theme keys for the indentation level colors in ThreadView
2020-05-31 16:44:39 +03:00
Manos Pitsidianakis
b3b9563db0
LineBreakCandidateIter: make iter non-recursive
...
A line with lots of graphemes without any breaks can overflow the stack,
so make the recursion into a loop.
2020-05-31 01:08:22 +03:00
Manos Pitsidianakis
6ceed3cae9
sqlite3: move module to melib
2020-05-30 15:37:12 +03:00
Manos Pitsidianakis
815ff98acc
imap: add smarter untagged reply detection
2020-05-30 14:43:44 +03:00
Manos Pitsidianakis
2c45c39048
ShellExpandTrait: fix for non-linux targets
2020-05-30 14:09:54 +03:00
Manos Pitsidianakis
960d660786
Add #[ignore] to test_parser()
2020-05-29 22:21:12 +03:00
Manos Pitsidianakis
9703b39a40
Add execute command parser to improve suggestions
...
Add grammar for execute commands and parser to identify possible next
tokens for the user's execute command input.
The grammar is given as a sequence of Tokens in each command's
definition. The parser parses the user's input according to this
grammar, and returns the tokens that could come next, if any.
2020-05-29 20:43:40 +03:00
Manos Pitsidianakis
fad8820868
Make serde default for manual_refresh = false
2020-05-29 20:43:39 +03:00
Manos Pitsidianakis
12feca9c97
terminal/ansi: add attribute support
...
Add attribute escape sequence support in terminal::ansi, which handles
converting strings with ansi escape sequences into meli's internal
terminal structures in order to incorporate them into the UI.
2020-05-29 20:43:39 +03:00
Manos Pitsidianakis
e4a1ab8a09
Fix rustfmt suggestions
2020-05-29 20:43:39 +03:00
Manos Pitsidianakis
0a83b99e7c
Update nix, linkify, uuid dependencies
2020-05-29 15:59:47 +03:00
Manos Pitsidianakis
b8261ee36a
Overhaul input thread
...
Remove raw/non raw distinction.
Use a pipe for input thread commands and poll stdin/pipe for events
2020-05-29 15:43:05 +03:00
Manos Pitsidianakis
839c1b1eb5
bin.rs: remove useless #[macro_use]
2020-05-28 21:02:49 +03:00
Manos Pitsidianakis
bea0ca61f5
maildir: conditionally accept invalid subdirs
...
If directory is invalid (i.e. has no {cur,new,tmp} subfolders), accept
it ONLY if it contains subdirs of any depth that are valid maildir
paths.
For example, this change will accept the following directory tree:
```
invalid_maildir
└── valid_maildir
├── cur
├── new
└── tmp
```
2020-05-28 21:02:49 +03:00
Manos Pitsidianakis
bd404e6937
Execute user shell commands with /bin/sh
...
Execute user provided command invocations $CMD such as `editor_cmd` with
`/bin/sh` as `/bin/sh -c "$CMD"
Previously, user commands were split by whitespace which must trigger
erroneous behavior if quotes are involved.
2020-05-28 21:02:49 +03:00
Manos Pitsidianakis
bfff0e4feb
conf: add options for logging
...
Add options for log file location and maximum log level. Also add
manpage entries for these options in `meli.conf.5`
2020-05-28 21:02:49 +03:00
Manos Pitsidianakis
608ef9a946
conf: warn on invalid mailbox name conf
2020-05-19 15:00:26 +03:00
Manos Pitsidianakis
671d473894
email/parser: avoid slice index panic if slice is empty
2020-05-19 13:01:09 +03:00
Manos Pitsidianakis
f8961f493a
Makefile: expand paths
...
Makefile displays a warning if $MANDIR is not in your manpaths or
$BINDIR is not in your $PATH. Expand paths $PREFIX (and by association $BINDIR and $MANDIR) before doing that validation or otherwise paths like '~/.local' and '/home/user/.local' will be erroneously reported different
2020-05-19 12:57:09 +03:00
Manos Pitsidianakis
fb2bb74c5c
Remove std::dbg! use
2020-05-19 12:55:22 +03:00
Manos Pitsidianakis
ab30733ce7
SegmentTree: add update() method
2020-05-18 20:58:55 +03:00
Manos Pitsidianakis
c2980f5dcf
RateLimit: add test
2020-05-18 20:58:20 +03:00
Manos Pitsidianakis
3573423169
PosixTimer: rearm timer only when calling rearm()
2020-05-18 20:57:17 +03:00
Manos Pitsidianakis
1717aa7845
bin: use self-pipe in signal handler
...
send_timeout() isn't signal safe, and might block.
2020-05-18 15:47:19 +03:00
Manos Pitsidianakis
7990b71c19
StatusBar: recognize readline shortcuts in Execute mode
2020-05-16 17:32:30 +03:00
Manos Pitsidianakis
3ce4772251
datetime: fix unupdated tests
2020-05-16 13:34:59 +03:00
Manos Pitsidianakis
38893a77bd
notmuch: fix invalid flag setting
2020-05-16 13:34:29 +03:00
Manos Pitsidianakis
595fa8ab95
notmuch: add total message count for mailboxes
2020-05-16 13:33:22 +03:00
Manos Pitsidianakis
68b1feb6c8
melib: add timestamp to debug trace logs
2020-05-16 12:46:01 +03:00
Manos Pitsidianakis
295577f9d7
Fix invalid theme keys in ThreadListing
2020-05-16 12:44:20 +03:00
Manos Pitsidianakis
a86c1cbb26
listing: redraw on EnvelopeUpdate events
2020-05-11 21:01:40 +03:00
Manos Pitsidianakis
c5fe511d95
notmuch: don't remove tags from tag_index
...
When removing a tag, we shouldn't also remove it from the tag index.
2020-05-11 21:01:40 +03:00
Manos Pitsidianakis
a6af7fc0d3
listing.rs: don't create unnecessary operation
2020-05-11 21:01:40 +03:00
Manos Pitsidianakis
b2857955e4
notmuch: add NewFlags, Remove and Create events
2020-05-11 21:01:40 +03:00
Manos Pitsidianakis
8648b229ad
Add AccountHash to RefreshEvent
...
Different accounts might have same inboxes with same MailboxHashes. Use
the hash of the account's name to differentiate.
2020-05-10 22:10:17 +03:00
Manos Pitsidianakis
eb701695f7
Remove fnv crate
2020-05-10 21:18:56 +03:00
Manos Pitsidianakis
b5b9982d9e
notmuch: cache messages by msg-id, not path
2020-05-09 14:32:30 +03:00
Manos Pitsidianakis
3ea1ce5454
errors: add source
field to MeliError
2020-05-09 14:32:30 +03:00
Manos Pitsidianakis
d915c4a7c8
text_processing: remove invalid unreachable!()
2020-05-08 14:58:59 +03:00
Manos Pitsidianakis
d405aa9797
Show last worker thread heartbeat on status page
2020-05-08 11:07:10 +03:00
Manos Pitsidianakis
c8391983ee
Refactor OfflineListing
...
Move offline status drawing to OfflineListing
2020-05-08 11:00:45 +03:00
Manos Pitsidianakis
2c549f5fcb
Refactor comments in notmuch/bindings.rs
2020-05-08 10:54:53 +03:00
Manos Pitsidianakis
2230e5705d
notmuch: LOCK database only when needed
...
Reported in https://git.meli.delivery/meli/meli/issues/24
2020-05-07 23:11:47 +03:00
Manos Pitsidianakis
0a34b082f6
Add cargo-fuzz targets
2020-05-07 22:52:50 +03:00
Manos Pitsidianakis
b00d3c28c5
parser: fix panic on invalid encoded_word, display_addr
...
found by cargo-fuzz
2020-05-06 19:11:49 +03:00
Manos Pitsidianakis
5981f98f17
parser: fix panic on invalid message id
2020-05-06 18:58:00 +03:00