Commit Graph

7504 Commits

Author SHA1 Message Date
3a506f4065 Merge pull request #2828 from a3a3el/bugfix/man-page-quoting-fixes/v1
man: fix some single-quoted strings
2025-05-04 16:23:53 +03:00
998a6448d5 bump version to 1.12.10 2025-05-03 08:51:48 +03:00
86c628a0f2 Merge pull request #2845 from tmuehlbacher/fix-smart-refiling-doc
mu4e.texi: fix smart refiling example config
2025-04-25 18:07:12 +03:00
481d976c82 mu4e.texi: fix smart refiling example config 2025-04-24 22:13:20 +02: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
371216a9fe mu4e-draft: ensure we only remove the message Date:
Narrow to headers first, or we may remove e.g. Date: headers in
forwarded messages.
2025-04-17 18:35:31 +03:00
174c8aa575 mu4e-query-items: ensure :key is in results
This worked earlier accidentally....
2025-04-17 00:12:41 +03:00
faea3c35ad mu4e-helpers: tweak plist filtering
A little refactoring
2025-04-17 00:11:50 +03:00
e79874aafb mu4e-helpers: make mu4e-plist-put-many non-destructive 2025-04-16 23:46:21 +03:00
5951c387b3 mu4e-helpers: fix mu4e-plist-put-many
mu4e-plist-put-many was very broken, but somehow mu4e still somewhat
worked.
2025-04-16 09:36:45 +03:00
635f6f1bc2 mu4e-folder: improve mu4e-maildir-shortcuts docstring 2025-04-16 09:36:45 +03:00
97a6bab35c mu4e-headers: fix column sorting 2025-04-13 21:04:55 +03:00
a7778fc333 test-store: don't break on slow systems
The 'circular-symlink' test.
2025-04-13 20:34:44 +03:00
102dfa1bd4 mu4e: silence emacs header cookie complaints
Update header-cookies to avoid emacs cookie complaints.

Fixes #2841
2025-04-13 19:24:50 +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
a6d68a4146 mu4e-headers/search: use last-query information
Use the information from the last-query to update the modeline,
sorting-column etc.
2025-04-12 15:23:52 +07:00
f5b9cf4cfb mu4e-server: improve documentation 2025-04-12 15:13:53 +07:00
398cb0abd2 mu4e-headers: cosmetics
Fix some flycheck warnings.
2025-04-12 15:07:28 +07:00
a2a1838da4 mu-server: cleanup find prop handling
Rework the overly long find-handler.

Improve parsing of options, and return better return properties (for use
in mu4e).
2025-04-12 15:07:28 +07: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
a6c41f6262 NEWS.org: merge new items with 1.12
Merge the new feature items into the 1.12 NEWS, prefixed with their
version.
2025-04-12 15:07:28 +07:00
6f228fc505 mu4e: clean up mu4e--make-query-items
Automatically copy all key-values from the source item.
2025-04-12 15:07:28 +07:00
ba9b7c079f Merge pull request #2835 from matperc/close-notification
mu4e-notification: close notification once done
2025-04-12 01:26:17 +07:00
17b85e8390 test-circular-symlink: loosen test a bit
Work-around some weirdness. No energy to do a root-cause analysis ;)

Fixes #2832.
2025-04-12 00:56:43 +07:00
bb76179e51 mu4e.texi: better document tagging actions
Remove some misleading old descriptions.

Cosmetics.

Fixes #2838
2025-04-12 00:48:20 +07:00
a242be7077 Merge pull request #2837 from daym/issue-2836
mu4e-compose: Heed shift-selection-mode for extending the selection.
2025-04-11 15:00:22 +07:00
0c7398d55c mu4e-compose: Heed shift-selection-mode for extending the selection.
Fixes #2836.
2025-04-05 13:54:45 +02:00
da9ffc169f mu4e-notification: close notification once done 2025-04-04 08:35:03 +02:00
507ea8e18e mu-sexp: don't require > c++17 2025-03-23 20:22:56 +02:00
44ba631a34 mu-find: implement format=json2
Implement a new experimental json2 format for mu-find, which gets rid of
the ":" prefixes for fields, i.e., "subject" instead of ":subject".
Document it as well.
2025-03-23 19:47:09 +02:00
d99785ed35 mu4e.texi: fix compiler warning 2025-03-23 19:47:09 +02:00
4cda859eb8 mu-sexp: tighten definition of plistp
In a plist, we also require the first of each two element pairs to start
with ':'

Fixes #2830.
2025-03-23 19:47:09 +02:00
c91e4ef515 mu-sexp: fix c++23 warning for suffix operator
Space between operator"" and _xxx is deprecated.
2025-03-23 19:47:09 +02:00
3dd922ff6c man: escape a couple of back-slashes
Otherwise:

    (with the \040 specifying a space in the regular expression, and and extra '\' to escape it)

is rendered as:

    (with the $ 40 specifying a space in the regular expression, and and extra `$´ to escape it)

Fixes: 5e2b7d52b2 ("mu-query.7: update documentation")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2025-03-10 21:44:28 +00:00
9364d25af7 man: fix some single-quoted strings
Commit 721aadc140 ("man: change quoting style") replaced single-quoted strings
of the form:

    'lorem ipsum'

with:

    `lorem ipsum'

to prevent the possibility of single quotes appearing at the beginning of lines,
because these will be misinterpreted by troff.  However, changes to the man-page
sources in 1.12.9 reintroduced some of these, including one which does appear at
the beginning of a line in mu-query(7):

    '"', '*', '(' and ')'. The details are shell-specific. In case of doubt, the

which results in the following warning:

    troff:<standard input>:25: warning: macro '"',' not defined

and the omission of that line from the rendered paragraph:

    NOTE:  if  you  use  queries on the command-line (say, for mu find), you
    need to quote any characters that would otherwise be interpreted by  the
    shell, such as *--analyze option can be useful.

Use back-ticks for the opening quotes.

Fixes: 5e2b7d52b2 ("mu-query.7: update documentation")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2025-03-10 21:23:11 +00:00
a8fac834d3 update IDEAS.org 2025-03-09 08:54:44 +02:00
770aa793cb mu4e-actions: add note about mu4e-action-git-apply-patch
See: https://github.com/djcb/mu/issues/2827

And some cosmetics.
2025-03-09 08:52:36 +02: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
5608892349 mu4e-vars: cosmetic 2025-03-08 11:39:44 +02:00
a7dcf04ba0 mu4e-draft: ensure compose-type is available without parent
In non-parent messages, such as completely new message, ensure the
mu4e-compose-type is available during the initial composition, i.e.,
enlarge the let to cover the rest of `mu4e--prepare-draft'.
2025-03-08 10:34:08 +02:00
60340c525d build: bump version to 1.12.9 2025-02-26 18:53:07 +02:00
0ea6fd45a4 update NEWS.org 2025-02-26 18:44:32 +02:00
f5a8699993 update NEWS.org 2025-02-26 08:51:05 +02:00
200ada5026 mu4e.texi: update debugging information 2025-02-26 08:51:05 +02:00
2714aa5e8c mu4e-headers: remove existence check
This is already done on the server-side ("SkipUnreadable"), so we don't
need to replicate.
2025-02-26 08:50:49 +02:00
18092c7ff9 indexer: minor tweaking 2025-02-23 11:39:21 +02:00
cdb619e4f5 Improve performance of index cleanup: use readdir(3), not access(2)
This change makes index cleanup ~4x faster by changing how we
determine whether a file mentioned by the database still exists on
disk.  Previously, we'd call access(2) for each file the database
mentioned.  Doing so produced a lot of system call overhead.  Now, we
read the directory entries of the directories containing the files
whose existence we're checking, build a hash table from what we find,
then do the existence check against this hash table instead of
entering the kernel.

The semantics of the cleanup check do change subtly, however.
Previously, we checked whether the mentioned file was *readable*.
Now we check merely that it exists.  Extant but unreadable files in
maildirs should be rare.

BEFORE:

$ time mu index --lazy-check
lazily indexing maildir /home/dancol/Mail -> store /home/dancol/.cache/mu/xapian
/ indexing messages; checked: 0; updated/new: 0; cleaned-up: 0

real    0m19.310s
user    0m1.803s
sys     0m12.999s

AFTER:

$ time mu --debug index --lazy-check
lazily indexing maildir /home/dancol/Mail -> store /home/dancol/.cache/mu/xapian
- indexing messages; checked: 0; updated/new: 0; cleaned-up: 0

real    0m4.584s
user    0m2.433s
sys     0m2.133s
2025-02-23 11:39:17 +02:00
b0f6e5cbb9 Merge pull request #2820 from dcolascione/mu-named-timer
Use named function, not lambda, for refresh timer
2025-02-23 11:22:58 +02:00
17577444be Merge pull request #2822 from dcolascione/mu-skip-readability-check-remote
Call file-readable-p only on non-remote files
2025-02-23 11:21:52 +02:00