Manos Pitsidianakis
148f0433d9
meli: implement flag set/unset action in UI
...
Also document it in manpages meli.1 and meli.7
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-01-01 21:28:21 +02:00
Manos Pitsidianakis
8185f2cf7d
meli: add deny clippy lints and fix them
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-01-01 15:59:13 +02:00
Manos Pitsidianakis
0270db0123
melib: From<&[u8]> -> From<B: AsRef<[u8]>>
...
This change allows byte literals to be used with the from trait method.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-01-01 15:16:47 +02:00
Manos Pitsidianakis
8ddd673dd8
melib/imap/untagged: update all mailboxes
...
When receiving an envelope event (deleted, or changed flags), update all
mailboxes that contain that envelope hash; not just the currently
selected mailbox.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-01-01 14:36:29 +02:00
Manos Pitsidianakis
e3351d2755
melib/imap: fix set unseen updating all mboxes
...
When manually setting an envelope as not seen, all mailboxes had their
unseen count increased. This commit updates only those that include the
envelope in the first place.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-01-01 14:34:50 +02:00
Manos Pitsidianakis
31401fa35c
melib/backends: add LazyCountSet::contains method
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-01-01 14:34:05 +02:00
Manos Pitsidianakis
33408146a1
Fix feature permutation mis-compilations found with cargo-hack
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-01-01 11:38:42 +02:00
Manos Pitsidianakis
8a95febb78
CI: set debuginfo=0 in test/lint builds
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-01-01 11:03:29 +02:00
Manos Pitsidianakis
73d5b24e98
melib/tests: merge integration tests in one crate
...
Saves about 0.5 seconds from compilation and runtime.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-01-01 10:44:31 +02:00
Manos Pitsidianakis
0da97dd8c1
mail/listing: check row_updates in is_dirty()
...
If there are row_updates, it means we need to redraw. But in the draw()
call, we check is_dirty() to decide whether to proceed drawing. Add
row_updates not being empty into the dirty conditions.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-29 20:02:58 +02:00
Manos Pitsidianakis
933bf157ae
melib/email/parser: ack \ as an atom
...
I think this is not spec compliant but the MIME spec (rfc6068 - The
'mailto' URI Scheme) uses it for "valid" addresses.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-29 19:56:52 +02:00
Manos Pitsidianakis
f685726eac
melib/email/parser: add backtrace field to ParsingError
...
Add backtrace field to ParsingError when the build is for testing or
documentation.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-29 19:56:52 +02:00
Manos Pitsidianakis
ab1b946fd9
melib/error: don't print details if it's an empty string.
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-29 19:56:52 +02:00
Manos Pitsidianakis
ce4ba06ce9
command: add a flag set/unset command
...
e.g. "flag unset draft"
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-29 19:51:45 +02:00
Manos Pitsidianakis
bebb473d1b
melib/mbox: derive extra traits for enums
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-29 19:51:45 +02:00
Manos Pitsidianakis
f0866a3965
meli: make config error more user-friendly
...
If `send_mail` is incorrect, display a long-ish list of valid examples.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-29 19:51:45 +02:00
Manos Pitsidianakis
f63774fa6d
Fix new clippy lints (1.75)
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-29 19:51:44 +02:00
Manos Pitsidianakis
808aa4942d
melib: rename text_processing to text for the whole brevity thing
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-26 16:47:42 +02:00
Manos Pitsidianakis
08518e1ca8
terminal: remove obsolete position.rs module
...
The functions in terminal::position were pretty much obsolete after
commit
0e3a0c4b70
Add safe UI widget area drawing API
So this commit does a little cleanup and removes the module.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-17 19:49:23 +02:00
Manos Pitsidianakis
34a2d52e7e
Fix rustdoc::redundant_explicit_links
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-17 19:14:00 +02:00
Manos Pitsidianakis
4026e25428
melib/notmuch: add some doc comments
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-17 19:13:15 +02:00
Manos Pitsidianakis
ca7d7bb95d
melib/notmuch: use message freeze/thaw for flag changes
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-17 19:12:45 +02:00
Manos Pitsidianakis
ebe1b3da7e
melib/notmuch: wrap *mut struct fields in NonNull<_>
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-17 18:50:23 +02:00
Manos Pitsidianakis
506ae9f594
melib/error: Add ErrorKind::LinkedLibrary variant
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-17 18:43:12 +02:00
Manos Pitsidianakis
b6f769b2f4
mail/listing: add field names to row_attr! bool values
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-17 18:35:09 +02:00
Manos Pitsidianakis
3691cd2962
accounts.rs: send EnvelopeUpdate event after self.collection.update_flags()
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-17 18:20:14 +02:00
Manos Pitsidianakis
97eb636375
Makefile: add dpkg --print-architecture to deb filename
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-13 15:43:00 +02:00
Manos Pitsidianakis
b3079715f6
melib/smtp: disable flakey test_smtp()
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-13 09:45:17 +02:00
Manos Pitsidianakis
86bbf1ea57
melib/notmuch: refresh NotmuchMailbox counts when setting flags
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-12 20:03:14 +02:00
Manos Pitsidianakis
1b0bdd0a9a
melib/notmuch: split queries and mailbox into submodules
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-12 20:03:14 +02:00
Manos Pitsidianakis
7412c23870
Bump meli version to 0.8.5-rc.3
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-11 13:18:50 +02:00
Manos Pitsidianakis
500fe7f7e4
Update CHANGELOG.md
...
Use git-cliff.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-11 13:13:19 +02:00
Manos Pitsidianakis
2419f4bd40
CI: add debian package build workflow
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-11 09:32:40 +02:00
Manos Pitsidianakis
59c99fdc79
debian: update debian package metadata
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-10 21:22:23 +02:00
Manos Pitsidianakis
5f8d7c8039
debian: Update deb-dist target command with author metadata
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-10 19:38:29 +02:00
Manos Pitsidianakis
876616d45b
CI: use actions/upload-artifact@v3
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-10 15:56:38 +02:00
Manos Pitsidianakis
c41f35fdd5
CI: use actions/checkout@v3
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-10 15:56:22 +02:00
Manos Pitsidianakis
773254864b
CI: remove on-push hooks for actions w/ run on-pr
...
Because it results in jobs being scheduled twice, once because of push
and once because they are in a PR.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-10 15:51:03 +02:00
Manos Pitsidianakis
e19f3e572c
Cargo-sort all Cargo.toml files
...
With:
cargo sort --grouped --order package,bin,lib,dependencies,features,build-dependencies,dev-dependencies,workspace meli
cargo sort --grouped --order package,bin,lib,dependencies,features,build-dependencies,dev-dependencies,workspace melib
cargo sort --grouped --order package,bin,lib,dependencies,features,build-dependencies,dev-dependencies,workspace tools
cargo sort --grouped --order package,bin,lib,dependencies,features,build-dependencies,dev-dependencies,workspace fuzz
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-10 15:33:10 +02:00
Manos Pitsidianakis
1617212c5b
CI: add scripts/check_debian_changelog.sh lint
...
Check if latest version in debian/changelog matches the version in
meli/Cargo.toml.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-10 15:33:10 +02:00
Manos Pitsidianakis
3ba1603af2
CI: add manifest file only lints workflow
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-10 15:33:10 +02:00
Manos Pitsidianakis
0a617410ec
CI: split test.yaml to test.yaml and lints.yaml
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-09 22:08:38 +02:00
Manos Pitsidianakis
5ff4e8ae68
CI: run builds.yaml when any manifest file changes
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-09 22:08:38 +02:00
Manos Pitsidianakis
c4344529e3
Add .git-blame-ignore-revs file
...
See DEVELOPMENT.md for info.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-09 21:30:02 +02:00
Manos Pitsidianakis
f900dbea46
Use cargo-derivefmt to sort derives alphabetically
...
Used https://github.com/dcchut/cargo-derivefmt
With command:
cargo install --locked \
--git https://github.com/dcchut/cargo-derivefmt \
--bin cargo-derivefmt \
--rev 2ff93de7fb418180458dd1ba27e5655607c23ab6
Since it's not on crates.io at the moment.
Sample diff:
-#[derive(Debug, Deserialize, Clone, Serialize)]
+#[derive(Clone, Debug, Deserialize, Serialize)]
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-09 21:28:12 +02:00
Manos Pitsidianakis
f3e85738e7
meli: move build.rs scripts to build directory
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-09 21:24:18 +02:00
Manos Pitsidianakis
3a70979483
Update minimum rust version from 1.65.0 to 1.68.2
...
Found with `cargo msrv --bisect --min 1.67.0`
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-09 18:01:12 +02:00
Manos Pitsidianakis
24971d1960
Fix compilation with 1.70.0 cargo
...
Cargo bug: https://github.com/rust-lang/cargo/issues/10788
Caused meli to not be able to be installed with 1.70.0 cargo.
This commit expresses the static dependencies differently to allow both
1.70.0 and later versions understand the optional dependency feature
activation.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-09 17:28:05 +02:00
Manos Pitsidianakis
e37997d697
mail/view: store Link URL value in Link type
...
Due to changes in how decoded email body is stored in `ViewFilter`s,
the previous way of accessing URL values (by using the `start` and `end`
offset in the e-mail body) meant the offset values might not be correct.
Store the value right away to prevent this from happening.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-09 15:08:56 +02:00
Manos Pitsidianakis
3adba40e32
scripts/make_html_manual_page.py: add macos manpage mirror url
...
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-12-06 16:33:19 +02:00