Commit Graph

5492 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 793eca1585 build: bump version to 1.6.1, db schema to 452
The db schema update ensures users re-init the store, to avoid problems
reported.
2021-07-31 01:57:23 +03:00
Dirk-Jan C. Binnema 24e8b9b97b NEWS.org: add note about mu init 2021-07-31 01:57:23 +03:00
Dirk-Jan C. Binnema b4ebd6c248 mu4e-utils: make schema warning/error a bit clearer
Show in the warning buffer.
2021-07-31 01:49:23 +03:00
Dirk-Jan C. Binnema 8a3a125ca3 mu-cmd-server: report errors to mu4e
Even "existential errors" that cause mu-server not to start.
2021-07-31 01:48:24 +03:00
Dirk-Jan C. Binnema fd9cc6bcc4 mu-store: improve database schema error
Tell user they should mu-init
2021-07-31 01:47:21 +03:00
Dirk-Jan C. Binnema 34fae2c072 mu-store: update whitespace 2021-07-31 01:45:22 +03:00
Dirk-Jan C. Binnema 26bd64f4c9 mu4e-header: mark mu4e-headers-field-properties-function obsolete
The variable is an unused leftover.

Fixes: #2067.
2021-07-30 14:25:54 +03:00
Dirk-Jan C. Binnema 1998505679 index: update removed value in progress report
Fixes: #2016
2021-07-29 23:26:40 +03:00
Dirk-Jan C. Binnema f69214b4df mu4e-main: refresh after context-switch
Fixes: #2062.
2021-07-29 23:24:13 +03:00
Dirk-Jan C. Binnema c8a2151cb9 mu: use g_strerror instead of strerror
Some #includes were missing for the latter (but only noticeable on some
systems - e.g., build breaks on Cygwin).

So let's replace with something that works equally everywhere.

Fixes: #2060
2021-07-29 00:02:30 +03:00
Dirk-Jan C. Binnema 71b9c7f598
Merge pull request #2059 from japhir/patch-1
README: fix grammatical error
2021-07-28 17:09:08 +03:00
Dirk-Jan C. Binnema aba00313e5 README.org: fix typo 2021-07-28 17:06:53 +03:00
Dirk-Jan C. Binnema 7fa80f77e9 index: don't assume very fast machine cfg drive
The scanner had a timeout for scanning, which doesn't work too well with
machine with rel. fast disks / rel. slow machines. Which I don't happen
to have!

Let's remove the timeout, should help with getting unwanted timeouts
which would cut short the indexing.
2021-07-28 17:04:39 +03:00
Ilja Kocken 53abceb6c4
README: fix grammatical error 2021-07-28 10:28:59 +02:00
Dirk-Jan C. Binnema f583207842 build: create mu 1.6 release 2021-07-27 22:28:49 +03:00
Dirk-Jan C. Binnema cc890d8688 build: Bump version to 1.5.14 2021-07-17 15:01:23 +03:00
Dirk-Jan C. Binnema 10c1aafa4c mu4e: Update mu4e-view-show-images doc string
Make clear it only applies to the old view.
2021-07-17 15:01:23 +03:00
Dirk-Jan C. Binnema d30f85934d mu4e.texi: Move docs for old view to appendix
Hopefully that makes it less confusing.
2021-07-17 15:01:23 +03:00
Dirk-Jan C. Binnema 375411ee77
Merge pull request #2049 from thierryvolpiatto/fix_move_to_previous_line
Fix mu4e-headers-prev with invisible lines
2021-07-17 11:09:50 +03:00
Dirk-Jan C. Binnema 6657f252fc
Merge pull request #2048 from nicolasavru/fix-include-related
query: fix include-related.
2021-07-17 11:09:19 +03:00
Thierry Volpiatto 617e8023f6
Fix mu4e-headers-prev with invisible lines
Skip invisible text at BOL possibly hidden by
the end of another invisible overlay covering
previous EOL.

This patch affects people using mu4e-thread-folding-mode but change nothing
when using mu4e as it is.
2021-07-12 06:47:36 +02:00
Nicolas Avrutin ee4bf5664a query: fix include-related.
mu-query.cc:
- make_related_enquire: don't include first query in qvec, we already have all
  thread IDs we need to query in thread_ds.
- run_related: always sort first query by date, explained by the comment.
- run_related: include qflags (in particular ascending vs descending) in
  leader_qflags.
- run_theaded: don't limit results to maxnum, that results in threads
  potentially being cut off.

mu-server.cc:
- output_sexp: don't limit results to maxnum so as to match the behaviour of
  mu find (and avoid cuttong off threads).

Fixes #1924 and #1911.
2021-07-11 16:23:39 -04:00
Dirk-Jan C. Binnema 40b5b89775
Merge pull request #2045 from DiGitHubCap/fix-visual-lines
Fix #2044: broken header movement with visual-line-mode
2021-07-11 22:21:15 +03:00
DiGitHubCap d394295fe7 Fix #2044: broken header movement with visual-line-mode
This fixes the issue introduced by 50f6f539 where header navigation
would break when `visual-line-mode' was enabled. Previously,
`forward-line' was used in `mu4e-view-headers-next', which disregarded
visual lines and moved by logical lines, but this was changed to
`line-move', which moves by visual lines when `line-move-visual' is
non-nil (the default when `visual-line-mode' is enabled). Thus, when
the current header line was wrapped and a message was open in the
split view, `mu4e-view-headers-next' would move to the next visual
line in the headers buffer (the same message), and then jump back to
the start of the previous line, preventing switching to the next
message.

This would also throw off navigation when `mu4e-view-headers-next' was
used with a prefix argument, since it would move by visual lines and
not headers.

`line-move-visual' is therefore set to nil before using `line-move' to
prevent these issues.
2021-07-05 22:39:31 -04:00
Dirk-Jan C. Binnema 7034556ab4
Merge pull request #2034 from thierryvolpiatto/remove_marked_overlays
Only remove mark overlays in `mu4e-mark-at-point`
2021-06-17 22:22:00 +03:00
Thierry Volpiatto 2f251209e3
Rename mmark overlay to mu4e-mark 2021-06-17 21:11:38 +02:00
Dirk-Jan C. Binnema 6ddfc61c8d mu4e: Update documentation for mu4e-view-fields
Fixes: #2041
2021-06-17 20:54:59 +03:00
Dirk-Jan C. Binnema 619509eb56 query-results: remove GatherThreadIds
We can't really do that in the match-decider, since we get _all_ messages
there, not the <n>-limited.

And some whitespace changes.
2021-06-17 20:54:59 +03:00
Dirk-Jan C. Binnema 6caa9acb34 query-match-deciders: whitespace 2021-06-17 20:54:59 +03:00
Dirk-Jan C. Binnema c3c8e53454
Merge pull request #2036 from thierryvolpiatto/line_move_visual
Ensure mu4e~headers-move honor line-move-ignore-invisible
2021-06-17 20:33:35 +03:00
Thierry Volpiatto 50f6f539f5
Ensure mu4e~headers-move honor line-move-ignore-invisible
This change is needed because forward-line doesn't honor this variable, more
generally visual lines.

Using `next-line` instead of `forward-line` allows this but it is more focused
on interactive use, so use `line-move` which handles visual lines without
warnings and return 0 or 1 just like `forward-line`.
2021-06-11 19:56:15 +02:00
Dirk-Jan C. Binnema 9020389a56 mu-cmd-find: Fix links ouput
Special case the footer/header for the links output. Small code
cleanups.

Fix error in docs.

Fixes: #2035.
2021-06-11 10:40:01 +03:00
Thierry Volpiatto 89538ef4fc
Only remove mark overlays in `mu4e-mark-at-point`
This prevent deleting overlays added by third party packages working as well
with overlays in mu4e-headers e.g. thread-folding , and probably in mu4e
itself as well with future features.  Also having a named overlay allows in
future features to modify any other overlays but these one.

As it is this patch doesn't modify the actual behavior.
2021-06-10 14:19:22 +02:00
Dirk-Jan C. Binnema 047c10453a query: gather related ids from mset, not match-decider
Since we only want the (smaller) set from the mset, not the (full) set
that the match-decider sees.
2021-06-04 00:54:28 +03:00
Dirk-Jan C. Binnema 212641669e
Merge pull request #2025 from peterhoeg/f/batch_size
fix wrong configuration key reference
2021-06-02 22:09:52 +03:00
Dirk-Jan C. Binnema dd542f3718
Merge pull request #2028 from andersjohansson/fix-bug-helm
Fix bug with helm completing-read when saving attachments
2021-06-02 22:04:58 +03:00
Anders Johansson c090e36485 Fix bug with helm completing-read when saving attachments
Previously helm-comp-read-use-marked was bound also when completing on
a directory for saving attachments (when using a prefix argument). This
returned a list with the selected directory, which caused an error.
2021-06-02 18:03:39 +02:00
Peter Hoeg 5f2e72776a fix wrong configuration key reference 2021-06-01 15:13:50 +08:00
Dirk-Jan C. Binnema 672d57fe5d github: update mu-bug issue template 2021-05-31 21:27:14 +03:00
Dirk-Jan C. Binnema d6a0ad02a2 github: update issue templates 2021-05-31 21:25:56 +03:00
Dirk-Jan C. Binnema eda62a73e4
Merge pull request #2022 from smohaorg/fix-license-notice-at-the-start-of-mu4e-files
mu4e/*: fix license notice at the start of source files
2021-05-30 11:27:58 +03:00
Salman Mohammadi 539a946aa4
mu4e/*: fix license notice at the start of source files
At the start of mu4e/* files, the license has been wrongly attributed
to GNU Emacs instead of mu4e.

Fixes https://github.com/djcb/mu/issues/2019
2021-05-29 23:45:10 +02:00
Dirk-Jan C. Binnema 5531a6fe0f actions: disable guile for now
Seems it's picking up some version of Guile on MacOS which is not working.
2021-05-29 16:22:17 +03:00
Dirk-Jan C. Binnema 0bb8ad6e4c
Merge pull request #2016 from Profpatsch/mu4e-view-dont-overwrite-home-and-end
mu4e-view: remove <home> and <end> bindings
2021-05-29 15:31:52 +03:00
Dirk-Jan C. Binnema 8929e29d24
Merge pull request #2020 from torgeir/patch-1
Link to mu cheatsheet from readme
2021-05-29 15:29:22 +03:00
Dirk-Jan C. Binnema 7ae1095a83
Merge pull request #2021 from tsdh/bug-reference-auto-setup
Add support for bug-reference auto-setup in mu4e-view-mode
2021-05-29 15:28:41 +03:00
Tassilo Horn b7fb722df6 Add support for bug-reference auto-setup in mu4e-view-mode
The bug-reference mode in Emacs 28 has support for several kinds of auto-setup,
one of them being for mail customizable by the variable
`bug-reference-setup-from-mail-alist`.  Add mu4e support for that so that users
can simply do

    (add-hook 'mu4e-view-mode-hook #'bug-reference-mode)

and have it working.

Also squash one byte-compiler warning about the (at compile-time) undefined
variable `gnus-article-buffer`.

* mu4e/mu4e-utils.el (mu4e-view--try-setup-bug-reference-mode): New function.
2021-05-28 23:33:08 +02:00
Torgeir Thoresen 0e4217228c
Link to mu cheatsheet 2021-05-27 13:08:54 +02:00
Profpatsch d106237c5a mu4e-view: remove <home> and <end> bindings
Users usually have `<home>` and `<end>` bound in their configuration,
for Spacemacs the default is “move-beginning-of-line” and “move-end-of-line”.

The mu4e view mode should not rebind basic navigation keys like these.
2021-05-20 14:16:37 +02:00
Dirk-Jan C. Binnema cefd66159a mu4e-headers: use the mu engine thread-subject
Instead of handling in the headers (which were broken).  The messages
that are hidden are _slightly_ different than before.
2021-05-04 17:36:24 +03:00