Commit Graph

6616 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 88cb22d178 mu4e: integrate mkdir better into mu4e
When moving to a non-existent folder, offer to create it and proceed from
there (that _almost_ worked earlier).

Fixes #628
Fixes #477
2023-02-12 11:17:59 +02:00
Dirk-Jan C. Binnema 76fedf4d64 mu-server: make :update for mkdir optional
It's useful to do "opportunistic" mkdir form mu4e; don't send updates in
that case (i.e. with :update nil)
2023-02-12 11:16:47 +02:00
Dirk-Jan C. Binnema c70d4b70d2 mu4e-main: better handle :name workaround for maildirs
Distinguish between the lambda and normal activation functions.
2023-02-12 11:07:42 +02:00
Dirk-Jan C. Binnema e1a160a8e5 mu4e-main: just mu4e-search for maildir query
When activated.
2023-02-12 00:34:06 +02:00
Dirk-Jan C. Binnema c3aed7c821 NEWS.org: update 2023-02-11 17:50:58 +02:00
Dirk-Jan C. Binnema 6559f0f86e mu4e: show actual keybindings in main-view
Let the main-screen show a representation of the *actual* keybindings
rather than assuming the defaults.

For that to work, we need to invoke mu4e-main-mode earlier; add a new
hook mu4e-main-mode-rendered-hook which is invoked after rendering is
complete.

Add a few helpers for this to mu4e-helpers.
2023-02-11 17:50:58 +02:00
Dirk-Jan C. Binnema 5df98d57cb
Merge pull request #2428 from leotaku/bug-reference-no-override
Only add bug-reference setup function after the feature was loaded
2023-02-03 19:07:47 +02:00
Leo Gaskin d4cb318bc1 Only add bug-reference setup function after the feature was loaded
This is done so that we do not override the default defvar value of
bug-reference-auto-setup-functions but instead add our own hook to it.
2023-02-03 13:32:34 +01:00
Dirk-Jan C. Binnema 137e800fd0 mu4e-query-items: clear cached bookmarks/maildirs
When refreshing, so they get properly updated.
2023-02-02 23:48:44 +02:00
Dirk-Jan C. Binnema 66d20d04f5 mu4e-main: small cleanups 2023-02-02 23:48:16 +02:00
Dirk-Jan C. Binnema bbea9e5374 mu4e-bookmarks: whitespace fixes 2023-02-02 23:47:18 +02:00
Dirk-Jan C. Binnema 3212a79846 build: bump version to 1.9.19, update NEWS.org 2023-01-31 23:50:38 +02:00
Dirk-Jan C. Binnema 2255769de7 build: bump schema version, update contacts-cache
Bump schema version to trigger update after we added html processing.

Since we're updating the database schema version, let's use the
opportunity to remove outdated data from the contacts-cache.
2023-01-31 23:41:57 +02:00
Dirk-Jan C. Binnema abfa6f277c mu: index html text as if it were plain text
This is a bit of hack to include html text in results.

Of course, html text is not really plain text, so this is a bit of a
hack until we introduce some html parsing step.
2023-01-31 23:41:57 +02:00
Dirk-Jan C. Binnema ea08378ce6 mu4e-server: sync up error code with backend 2023-01-31 23:41:57 +02:00
Dirk-Jan C. Binnema 7610e86e97 mu4e: move some defcustoms to mu4e-vars.el 2023-01-31 19:50:07 +02:00
Dirk-Jan C. Binnema 0ee86ac923 mu4e: make eldoc support configurable
Add new defcustom, mu4e-eldoc-support, turn it off by default.
2023-01-31 19:50:07 +02:00
Dirk-Jan C. Binnema 4f4568a39a
Merge pull request #2426 from metaspace/master
mu4e: Allow completion for symbolic links in maildir
2023-01-31 19:42:31 +02:00
Andreas Hindborg b3614fd3c2 mu4e: Allow completion for symbolic links in maildir
This patch allows mu4e to autocomplete when `mu4e-root-maildor` contains
symbolic links to other maildirs. Without this patch mu4e can still work when
directories under `mu4e-root-maildor` are symlinks, but it will not autocomplete
properly when using `mu4e-search-maildir`.

Signed-off-by: Andreas Hindborg <nmi@metaspace.dk>
2023-01-31 16:02:30 +01:00
Dirk-Jan C. Binnema b71fe1ef95 NEWS.org: update 2023-01-29 16:40:21 +02:00
Dirk-Jan C. Binnema 86edc7d5fc mu4e: improve server error display
Fixes #2328
2023-01-29 16:37:08 +02:00
Dirk-Jan C. Binnema 3ec960c609 mu: improve mu-error
Add specific error-code for SchemaMismatch

Combine find/cfind no-matches
2023-01-29 15:38:40 +02:00
Dirk-Jan C. Binnema 4449ac9d29 man: improve exit code descriptions 2023-01-29 15:38:06 +02:00
Dirk-Jan C. Binnema e21d59e346 mu init: implement --reinit option
Create new mu database from an existing one.
2023-01-29 13:40:40 +02:00
Dirk-Jan C. Binnema cc664b8128 utils: add missing mu-regex.cc
Fixes #2425
2023-01-29 12:49:52 +02:00
Dirk-Jan C. Binnema c902e296f4 build: bump version to 1.9.18 2023-01-29 12:03:13 +02:00
Dirk-Jan C. Binnema 7db93fb0a7 mu-server: cosmetic 2023-01-29 12:03:13 +02:00
Dirk-Jan C. Binnema 6b4857b189 mu-scanner: ignore some more unusable files 2023-01-29 12:03:13 +02:00
Dirk-Jan C. Binnema 40c3d3568e utils: improve xapian exception handling / reporting 2023-01-29 11:25:02 +02:00
Dirk-Jan C. Binnema 29dc90486b server: find_handler: better handle sort-field-id
Handle invalid sort-fields correctly.
2023-01-29 10:13:29 +02:00
Dirk-Jan C. Binnema a8daec9598 lib: use join_paths
Convert some manual concatenation to the new join_paths helper.
2023-01-29 10:13:29 +02:00
Dirk-Jan C. Binnema 25635c5cfe utils: add join_paths + tests 2023-01-29 10:13:29 +02:00
Dirk-Jan C. Binnema daef904ca1 utils: add Regex::replace + unit tests 2023-01-29 10:13:29 +02:00
Dirk-Jan C. Binnema ba69e2104a utils: remove some dead test code 2023-01-29 10:13:29 +02:00
Dirk-Jan C. Binnema 81a0a4fc41 build: enable readline in MU_HACKER build 2023-01-29 10:13:29 +02:00
Dirk-Jan C. Binnema 3e0c7ecdd9 build: symlink to compile_commands.json to topdir
This allows eg. rmsbolt to work OOB
2023-01-29 10:13:29 +02:00
Dirk-Jan C. Binnema 29e6c21ed8 mu4e: use mu4e-join-paths 2023-01-27 09:25:40 +02:00
Dirk-Jan C. Binnema 491f9e91ff mu4e: rework mu4e--file-name-concat into mu4e-join-paths
We also need to handle slashes at the *start*.
2023-01-27 09:25:19 +02:00
Dirk-Jan C. Binnema 83be800611
Merge pull request #2423 from derek-zhou/master
really allow flags to be empty in move command
2023-01-26 22:56:07 +02:00
Dirk-Jan C. Binnema d3966926a9 mu4e-notifications: show notifications for new messages
Filter out the _same_ new messages.
2023-01-26 21:35:42 +02:00
Dirk-Jan C. Binnema abf0e259a2 mu4e: implement mu4e--file-name-concat 2023-01-26 21:35:18 +02:00
Derek Zhou 4271fc2fb6
really allow flags to be empty in move command
Without this patch, I see the following error:

;; mu> (move :docid 1 :maildir "/.Archive")
[2b](:error 32818 :message "invalid flags ''")

flags should not default to "", which is not a valid flags string.
2023-01-25 16:31:41 -05:00
Dirk-Jan C. Binnema fb8502ae4e build: bump version to 1.9.17 2023-01-24 23:43:55 +02:00
Dirk-Jan C. Binnema 930c5b79c8 mu4e-context: small cleanups
Only refresh query-items when switch from existing context.

Some cosmetics
2023-01-24 23:43:55 +02:00
Dirk-Jan C. Binnema 7d17b1c15b mu4e: small cleanup in startup 2023-01-24 23:43:55 +02:00
Dirk-Jan C. Binnema 4b12061efb mu4e-query-items: cosmetic
Fix flycheck warning
2023-01-24 23:43:55 +02:00
Dirk-Jan C. Binnema d6b5384ac1 mu4e: some cosmetic fixes in mu4e-icalendar
Use mu4e--icalendar rather then mu4e~icalendar.

Fix some flycheck warnings
2023-01-24 23:43:55 +02:00
Dirk-Jan C. Binnema b1b87f7adf
Merge pull request #2421 from ArsenArsen/add-cstdint-inc
mu-error: Add missing <cstdint> include
2023-01-21 22:00:28 +02:00
Arsen Arsenović ce94464652
mu-error: Add missing <cstdint> include
GCC 13s libstdc++ reduced its dependency on some headers like <cstdint>, so it's
no longer transitively included through various headers.  Include it explicitly.

See also: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

  ../lib/utils/mu-error.hh:36:26: error: ‘uint32_t’ does not name a type
     36 |         static constexpr uint32_t SoftError = 1 << 23;
        |                          ^~~~~~~~
2023-01-21 19:48:57 +01:00
Dirk-Jan C. Binnema ad51082472 mu4e: tweak notification message 2023-01-20 19:12:19 +02:00