Commit Graph

6743 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 6ad5cccc53 store/index: and unit test for circular symlink
Check that we bail out early
2023-07-18 23:18:21 +03:00
Dirk-Jan C. Binnema 885903c496 index: limit length of maildir path to MaxTermLength
This limit was already in place, but now we detect it a bit earlier (in
the indexer). We _could_ increase it (by using hashes for dirstamps), but
right now it's a good catch for circular symlinks.
2023-07-18 23:18:21 +03:00
Dirk-Jan C. Binnema f3c303106d man: update mu-index manpage 2023-07-18 23:14:25 +03:00
Dirk-Jan C. Binnema 0cb78fe4d1 mu-remove: add unit test 2023-07-18 21:33:59 +03:00
Dirk-Jan C. Binnema 8b66491a72 mu-add: update unit test 2023-07-18 21:33:33 +03:00
Dirk-Jan C. Binnema cf6c5a36d7 utils: rework running system commands
Use g_spawn and pass arguments, so we don't involve a shell that needs
escaping etc.

Improve error handling.
2023-07-18 20:19:27 +03:00
Dirk-Jan C. Binnema 5efd0a61aa build: improve 'coverage' target
Ensure we compile everything first.
2023-07-18 19:08:16 +03:00
Dirk-Jan C. Binnema e8462e0204 lib/index: add rudimentary scanner test
Make the defunct existing one a working test.
2023-07-18 19:08:16 +03:00
Dirk-Jan C. Binnema 224bbfe5cc
Merge pull request #2521 from mssdvd/add-default-notification-action
mu4e-notifications: add default action
2023-07-18 19:06:33 +03:00
Dirk-Jan C. Binnema 535ab6e010 mu4e-view: avoid getting gnus markers in m-v-message-text
We don't need that here (when replying to email).
2023-07-18 18:31:48 +03:00
Davide Masserut 7cc4804d47 mu4e-notifications: add default action 2023-07-18 12:18:54 +02:00
Dirk-Jan C. Binnema 67f95eac63 build: bump version to 1.11.10 2023-07-17 21:53:42 +03:00
Dirk-Jan C. Binnema 56cea76b8d mu4e-view: don't set gnus-article-emulate-mime by default
This triggers excessive CPU-load in some corner-case messages.

Make it a 'massage' option instead.

Fixes #2515.
2023-07-17 21:53:42 +03:00
Dirk-Jan C. Binnema c263e4c4d7 mu4e-view: fix mu4e-view-refresh
It's didn't quite work in the post-mu4e-window world
2023-07-17 21:53:42 +03:00
Dirk-Jan C. Binnema c19c011b0b mu4e/NEWS.org: document updated MIME-part handling in view 2023-07-17 21:53:42 +03:00
Dirk-Jan C. Binnema 993f16522a mu4e: split off mime-handling from mu4e-view & improve
Split off the MIME-handling from mu4e-view.el into its own
mu4e-mime-parts.el

Improve the implementation, updating completions with annotations.
Support "Pick all" for completing attachments and MIME-types.

Both attachment/inline disposition MIME-type with a file name are
considered "attachment" now.

Allow MIME-part actions to target multiple MIME-parts.
2023-07-17 21:53:42 +03:00
Dirk-Jan C. Binnema 3b93863f15 mu4e: use mu4e-determine-attachment-dir
Make the old internal mu4e~get-attachment-dir a public function,
improve documentation. Update callers.
2023-07-16 13:19:35 +03:00
Dirk-Jan C. Binnema 66e113ef2a man: mu-init: document --max-message-size and --batch-size
They were missing.
2023-07-16 13:19:35 +03:00
Dirk-Jan C. Binnema 3c9d1f1ab1 mu: cmd-init: fix batch-size typo
Copy-pasta
2023-07-16 13:19:35 +03:00
Dirk-Jan C. Binnema 99a0eaaa76 lib/store: improve dirstamp / set_dirstamp code
Modernize.
2023-07-11 22:54:01 +03:00
Dirk-Jan C. Binnema 545494225a lib/contacts-cache: improve code 2023-07-11 22:54:01 +03:00
Dirk-Jan C. Binnema 4a405ff4d4 build: better coverage/valgrind targets 2023-07-11 22:54:01 +03:00
Dirk-Jan C. Binnema 6f69f5d482 utils/mu-regex: add move constructor 2023-07-11 22:54:01 +03:00
Dirk-Jan C. Binnema f3bfdf5add lib/maildir: use mv for moving to avoid warnings
using gio gives some (false, we assume) valgrind warnings, so for now
use 'mv' instead.

Also slightly update the code with some mu_format overtaking format.
2023-07-10 23:17:06 +03:00
Dirk-Jan C. Binnema 18490a818d store/server: centralize docids-for-msgid
No need for two near-identical impls

Remove some dead declarations.
2023-07-10 23:17:06 +03:00
Dirk-Jan C. Binnema 0b4f7c4cbe lib: xapian-db/store: simplify
No need for "pimpl" in xapian-db; keep it simple.
2023-07-10 23:15:40 +03:00
Dirk-Jan C. Binnema a32b924692 mu: add "unit" tests for 'mu add' 2023-07-10 23:15:40 +03:00
Dirk-Jan C. Binnema cc65b8b401 utils: add some more helpers for test code
Creating and removing (temp) dirs, running mu commands.
2023-07-10 23:15:40 +03:00
Dirk-Jan C. Binnema 904f64aa03 utils/result: add "unwrap" convenience function 2023-07-10 23:15:40 +03:00
Dirk-Jan C. Binnema 31f0c40893 migrate to fmt-based logging in some more places
and improve logging.
2023-07-08 10:30:36 +03:00
Dirk-Jan C. Binnema 4171fe14c3 store: removing trailing / for root_maildir
Other code depends on that.
2023-07-06 21:49:50 +03:00
Dirk-Jan C. Binnema 75a2cab3f1 message: don't check language without cld2 support
No point in checking if we do not have the support.
2023-07-06 21:49:50 +03:00
Dirk-Jan C. Binnema 82235b9d49 fmt: more update to use new fmt-based APIs 2023-07-06 21:49:50 +03:00
Dirk-Jan C. Binnema 91c5a9bac5 store: only write last-change _once_
xapian-db does it, no longer needed in store.cc
2023-07-06 21:49:50 +03:00
Dirk-Jan C. Binnema d96e9cc4ba mu-info: improve docs; better colors 2023-07-06 19:13:14 +03:00
Dirk-Jan C. Binnema c59d493296 mu4e: fix mu4e-main-quit-or-bury
Typo... fixes #2512.
2023-07-06 11:01:32 +03:00
Dirk-Jan C. Binnema e48485cb58 sexp: use fmt for parsing_error
Should help with Apple clang build too.
2023-07-05 23:40:36 +03:00
Dirk-Jan C. Binnema 161f7df7b9 build: bump version to 1.11.9 2023-07-05 23:19:34 +03:00
Dirk-Jan C. Binnema aed1395c53 lib/utils: update library paths 2023-07-05 23:14:34 +03:00
Dirk-Jan C. Binnema 4920b56671 update to use fmt-based apis
Not complete, but a first big stab converting users of Mu::Error and
various g_warning & friends, format to the new libfmt-based APIs.
2023-07-05 23:10:13 +03:00
Dirk-Jan C. Binnema 742ca33740 utils: rework Mu::Error and g_ logging macros with fmt
A bit more C++ template magic to remove a lot of code.
2023-07-05 23:07:11 +03:00
Dirk-Jan C. Binnema e6ab61d233 thirdparty: add fmt
Add libfmt for formatting strings. With C++23, perhaps we can remove
this. Let's see.
2023-07-05 23:07:11 +03:00
Dirk-Jan C. Binnema 5c878558e0 thirdparty: move {optional,expected}.hpp to tl/
Follow upstream naming.
2023-07-05 23:07:11 +03:00
Dirk-Jan C. Binnema c3a756a207 mu4e: main: add mu4e-main-quit-or-bury
So instead of quitting, you can do C-u q to merely bury the buffer.
2023-07-05 20:39:47 +03:00
Dirk-Jan C. Binnema c5f3894374 message: double-check part-type in Multipart
Avoid exception for some messages (unsigned messages with signed
attachment).
2023-07-05 20:39:47 +03:00
Dirk-Jan C. Binnema 9004363aa5 cli: merge 'fields' with 'info' command
Update the 'info' command to handle 'fields' as well; remove
fields.
2023-07-05 20:39:47 +03:00
Dirk-Jan C. Binnema 5e184a581f README.org: don't show WSL2 badge
Avoid false advertising
2023-07-02 11:51:13 +03:00
Dirk-Jan C. Binnema f01e572f75 README.org: mark WSL2 as experimental 2023-07-02 11:49:43 +03:00
Dirk-Jan C. Binnema f74de792b2 README.org: make a bit more readable 2023-07-02 11:47:29 +03:00
Dirk-Jan C. Binnema f4183065c3 Makefile: improvements 2023-07-02 11:18:14 +03:00