Commit Graph

37 Commits

Author SHA1 Message Date
23e16f7c41 mu4e-folders: improve mu4e-maildir-shortcuts docstring
... and :type
2026-08-20 15:04:27 -07:00
9763ca0830 mu4e-folder: don't offer "other" if there are none
When mu4e is not started yet, we don't have "other" maildirs; document and don't
add the 'other' option.

Fixes #2855.
2025-06-30 19:24:06 +03:00
ef71b5372f mu4e: fix compiler warnings 2025-05-21 22:23:26 +03:00
ddc5d00efc mu4e-folders: update docstrings 2025-04-23 07:45:34 +03:00
9cd4d73212 mu4e-folders: rework the mu4e-ask-maildir
Attempt to restore the old behaviour of _other_ when there are no maildir
shortcuts defined.

Should help for #2843.
2025-04-23 07:42:45 +03:00
635f6f1bc2 mu4e-folder: improve mu4e-maildir-shortcuts docstring 2025-04-16 09:36:45 +03:00
804c4b4cda mu4e-bookmarks/folders: allow -ask to return query-item
Instead of just the query-string or maildir name, allow
mu4e-ask-bookmark / mu4e-ask-folder to return the query-item, when a new
optional parameter QUERY-ITEM is non-nil.
2025-04-13 14:02:34 +03:00
e534f8ae79 mu4e: centralize docstring for mu4e-bookmarks
Refer to it in mu4e-maildir-shortcut, so we only have one place to
document the format.
2025-04-12 15:07:28 +07:00
a15e640eb7 mu4e: implement :hide-if-no-unread
Make mu4e-maildir-shortcut and mu4e-bookmarks understand a property
:hide-if-no-unread~, which hides the maildir/bookmark from the main-view
if there are no unread messages which the corresponding query.
2025-03-08 11:57:58 +02:00
055cb774e0 mu4e: show short counts next to maildir/bookmark entry
When you ask for bookmarks or maildirs through mu4e-ask-bookmark,
mu4e-ask-maildir, the counts are displayed in the (default) completions
next to the maildirs. This is a shorter version of the full display,
just showing either the delta or the number of unread messages, if any.
If you don't want to see these counts, there is mu4e-hide-short-counts.
2025-02-05 12:32:52 +02:00
407c6189f4 doc: updates 2024-12-17 20:33:28 +02:00
8fc13ab8f3 mu4e: Shorten descriptions a bit 2023-09-20 22:31:19 +03:00
67c8ff75a7 Fix missing or incorrect descriptions in file headers
Try to make useful descriptions and use conventional --- to separate filename
from description.
2023-09-20 22:04:48 +03:00
f73aad2b41 better handle maildir cache
- get an updated maildir list after indexing
- add mu4e-added items to the list opportunistically

Remove mu4e-clear-caches / mu4e-cache-maildir-list to mu4e-obsolete.el

Fixes #2537.
2023-08-19 20:04:50 +03:00
c554e5194a mu4e: get maildirs from server
We were determining the list of maildirs using, but his is rather *slow*.
So instead, get it from the server, through a "data" call.
2023-08-17 22:42:25 +03:00
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
9729e2bba8 Fix asking maildir reading completing candidate is text-property
Some packages like `vertico-prescient` adding text-property to vertico
candidates will break `mu4e-ask-maildir` response.
2023-05-27 07:51:37 +08:00
e5b33c29d1 Fix defcustom type definitions
So that the type definitions reflects the docstrings more closely.  In additon,
fixed warnings from flymake about docstring.

* mu4e/mu4e-draft.el
mu4e-compose-keep-self-cc: should be a comma

* mu4e/mu4e-folders.el
mu4e-maildir-shortcuts: recognize new (plist) format

* mu4e/mu4e-helpers.el
mu4e-debug: removed unnecessary double space in docstring

* mu4e/mu4e-query-items.el
mu4e-query-rewrite-function: prepend "\\=" before column 0 "(" in docstring

* mu4e/mu4e-search.el
mu4e-search-sort-field mu4e-search-sort-direction: used radio in types

* mu4e/mu4e-server.el
mu4e-mu-binary: "mu" executable must exist

* mu4e/mu4e-view.el
mu4e-view-fields: fixed type
mu4e-view-actions: for function refs, prefer "#'" rather than "'"
2023-04-01 15:59:16 +08:00
9a1733e29d mu4e-folder: make mu4e-cache-maildir-list a defcustom, t
turn it on by default; and let mu4e-create-maildir-maybe clear the
cache when a new dir is created.
2023-02-16 21:22:37 +02:00
a8c0bbd390 mu4e-folders: use mu4e-read-option 2023-02-16 21:22:37 +02:00
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
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
29e6c21ed8 mu4e: use mu4e-join-paths 2023-01-27 09:25:40 +02:00
85d2fdcdd7 mu4e: ignore bookmarks/maildirs without characterp keys 2023-01-19 22:37:50 +02:00
99b6820336 Correct 2 docstrings in mu4e-folders.el
* mu4e/mu4e-folders.el: Correct few docstrings
(mu4e-get-drafts-folder): Fix docstring
(mu4e-get-trash-folder): Fix docstring
2023-01-15 22:45:28 +01:00
10041eb2e1 mu4e: implement mu4e-query-items
Implement function / datas structure to conveniently aggregate all
query-related data, for reuse in various places in mu4e...

... to start with the main menu, which gets much simpler. And the
modeline.
2023-01-13 21:56:15 +02:00
fc867c9065 mu4e-folders: fix whitespace 2023-01-09 23:56:34 +02:00
3e3aeead9b Revert "Add support for empty and string maildir shortcuts"
This reverts commit be695579c6.

The change didn't look very nice (keynames are not aligned etc.), and in
hindsight we should probably implement this slightly differently.
2022-12-30 16:19:19 +02:00
56099998e4 Merge pull request #2292 from manufactory/master
More customizable maildir shortcuts
2022-12-28 10:55:57 +02:00
6a7d48c854 Add variable for initial input to maildir selection
"/" was hardcoded as initial input to `mu4e-completing-read-function'
when selecting 'other' maildirs. This can now be set by the user.
2022-12-12 18:15:15 +00:00
be695579c6 Add support for empty and string maildir shortcuts 2022-07-04 12:54:13 +02:00
f16f4b5e3c Add optional name for maildir shortcuts 2022-07-04 11:46:39 +02:00
a1f0c5e9eb mu4e: fix emacs-29 bytecompiler warnings
Wrong single quotes.
2022-05-28 00:51:08 +03:00
a4707afe12 mu4e: cleanups and flycheck fixes
- Remove some unused faces
- Fix some flycheck warnings
- Replace some `cl-` functions with `pcase` and `seq`
2022-01-23 14:27:00 +02:00
8704101afc mu4e-folders: fix typo in docstring 2021-12-19 23:15:42 +02:00
a6514fd683 mu4e-server: rename from mu4e-proc
Rename mu4e-proc.el into mu4e-server.el

Rename mu4e~proc... into mu4e--server...

Update users, too.
2021-08-29 21:40:42 +03:00
9157d9102d mu4e-utils: refactor into mu4e-helpers, separate files
Usurp more of the utils code than can be re-used without further dependencies in
helpers.

Split off specific parts in their own file.

After the helper/utils changes, update the rest of mu4e to take the changes into
account.
2021-08-29 21:40:42 +03:00