Commit Graph

5246 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 90e35a9732 toys/mug: upgrade for query changes
Mostly, port to c++.
2021-01-22 22:51:33 +02:00
Dirk-Jan C. Binnema 4daa7105d2 guile: update for query changes 2021-01-22 22:51:33 +02:00
Dirk-Jan C. Binnema 01ced9a356 mu: Update for new querying APIs 2021-01-22 22:51:33 +02:00
Dirk-Jan C. Binnema e282d80bc0 lib: Update for new querying machinery
Port to c++ and use new APIs.
2021-01-22 22:51:33 +02:00
Dirk-Jan C. Binnema 95dffb98a6 query: Rework querying/threading machinery
Rewrite the query machinery in c++:
- use an MSet decorator instead of the mu-msg-iter stuff
- use mu-query-decider to mark duplicates/unreadable/related messages
- use mu-query-threader to replace the older container/thread code

Algorithm did not substantially change, but the implementation details
did.
2021-01-20 14:09:04 +02:00
Dirk-Jan C. Binnema 86e1515c71
Merge pull request #1900 from Chris00/master
Fix the decoding of accents in Gnus view
2021-01-18 08:22:30 +02:00
Dirk-Jan C. Binnema 53c9526871 mu4e: add org-mu4e-store-and-capture alias
Let it refer to the new function.

Fixes: #1905.
2021-01-18 08:12:42 +02:00
Christophe Troestler a1664d2189 Fix the decoding of accents in Gnus view
Followup on https://github.com/djcb/mu/issues/1823
Fixes https://github.com/djcb/mu/issues/1886
2021-01-16 12:38:41 +01:00
Dirk-Jan C. Binnema 55fd642b0c
Merge pull request #1868 from tsdh/search-query-completion
Completion for search query keywords and fixed or determinable values
2021-01-15 21:19:55 +02:00
Dirk-Jan C. Binnema 5ca25e9e89
Merge pull request #1898 from Chris00/describe-binding
Restore C-h b default behavior
2021-01-15 21:16:26 +02:00
Dirk-Jan C. Binnema a3865d6ba9 index: wait with cleanup until work-queue is empty 2021-01-15 21:07:38 +02:00
Dirk-Jan C. Binnema bcd96d8a1e mu4e-view: use mm-insert-file-contents
Which should avoid some encoding troubles.
2021-01-15 21:07:38 +02:00
Dirk-Jan C. Binnema c1a5a690e4 mu4e-proc: update docstring for 'extract' 2021-01-15 21:07:07 +02:00
Christophe Troestler 4acfce6e2c Restore C-h b default behavior
Fixes https://github.com/djcb/mu/issues/1842
2021-01-13 11:49:32 +01:00
Tassilo Horn 03dc7c06fd Add paragraph for query completion to texinfo docs 2021-01-11 15:41:42 +01:00
Tassilo Horn 25beafbdd4 Implement completion for search query keywords and fixed values 2021-01-11 15:41:42 +01:00
Yuri D'Elia c311dc4d36 Fix 'mu4e-interrupt-update-mail alias definition 2021-01-11 10:23:55 +02:00
Dirk-Jan C. Binnema 5213adeb2c
Merge pull request #1875 from thierryvolpiatto/save_attachment
Fix #1790 by providing mu4e-view-gnus-save-mime-parts
2021-01-11 09:45:12 +02:00
Dirk-Jan C. Binnema 4dbc6ac399 mu4e-view: Use 'mu4e not "mu4e" when extracting
And param is a string.

Fixes: #1869.
Fixes: #1865.
2021-01-03 15:27:16 +02:00
Dirk-Jan C. Binnema b09b3cb2bb mu4e-main: fix hide-personal-addresses typo
Fixes #1879.
2021-01-03 14:58:28 +02:00
Dirk-Jan C. Binnema 6566ced33b
Merge pull request #1885 from tsdh/selecting-deleted-buffer-on-quit
Debugger entered--Lisp error: (error "Selecting deleted buffer") when quitting mu4e
2021-01-03 14:29:27 +02:00
Tassilo Horn e76f894476 Fix Selecting deleted buffer when quitting mu4e 2021-01-03 12:54:13 +01:00
Thierry Volpiatto 00651acaab
Fix #1790 by providing mu4e-view-gnus-save-mime-parts
in replacement of mu4e-view-save-attachment-multi for gnus viewers.

The alias mu4e-view-save-attachment have been replaced by a wrapper function
that calls either mu4e-view-save-attachment-multi or
mu4e-view-gnus-save-mime-parts depending of the context.
2020-12-27 09:46:18 +01:00
Dirk-Jan C. Binnema 46bd705131
Merge pull request #1874 from thierryvolpiatto/Remove_null_byte
Remove null byte added probably by error
2020-12-26 13:54:01 +02:00
Thierry Volpiatto 4830e7de14
Remove null byte added probably by error 2020-12-26 08:49:19 +01:00
Dirk-Jan C. Binnema 39bb5dd47b
Merge pull request #1871 from juanjosegarciaripoll/readline-fix
Make libreadline really optional.
2020-12-24 17:50:01 +02:00
Juan Jose Garcia-Ripoll 34964509f7 Make libreadline really optional. 2020-12-24 10:19:02 +01:00
Dirk-Jan C. Binnema 78636ba3df
Merge pull request #1859 from tsdh/use-mu4e-query-rewrite-function-for-counts
Use mu4e-query-rewrite-function also for computing bookmark counts
2020-12-17 23:27:04 +02:00
Tassilo Horn fe6cbf5949 Use mu4e-query-rewrite-function also for computing bookmark counts
Until now, the bookmark queries were sent to mu in their original form.  Thus,
if you have `mu4e-query-rewrite-function` set, the numbers shown next to the
bookmarks didn't reflect the actual number of query results you'd get when
opening a bookmark view.

With this commit, the `mu4e-query-rewrite-function` is applied and the result
is sent to mu for evaluation (in `mu4e~start`) and the likewise the rewritten
queries are used to find the matching one in the last query results (in
`mu4e~main-bookmarks`).

* mu4e/mu4e-utils.el (mu4e~start): Send the rewritten queries for evaluation to
mu.
* mu4e/mu4e-main.el (mu4e~main-bookmarks): Compare last mu query results with
rewritten queries.
2020-12-13 17:06:11 +01:00
Dirk-Jan C. Binnema 3ff8fd165f cmd-server: use std::fflush 2020-12-07 00:35:58 +02:00
Dirk-Jan C. Binnema 0ef88af34e cmd-server: fflush before reading next line
Seems this is necessary on Windows/MSYS2. HT to juanjosegarciaripoll.
2020-12-06 17:04:10 +02:00
Dirk-Jan C. Binnema 273eb822d5 mu4e: add mu4e-last-query-result[s]
This makes the most recent results from the queries (i.e. the numbers)
available using the supported 'mu4e-' API.

Fixes: #1845.
2020-12-06 14:48:46 +02:00
Dirk-Jan C. Binnema aba0ab3629 mu4e: cosmetics 2020-12-06 13:20:13 +02:00
Dirk-Jan C. Binnema 0ebf456612 lib: comment out some future unit test
Don't break the build!
2020-12-05 12:20:19 +02:00
Dirk-Jan C. Binnema 7182db5b0d ax_lib_readline: only accept the _real_ readline
Seems the other ones are not compatible enough

Fixes: #1852
2020-12-05 11:59:07 +02:00
Dirk-Jan C. Binnema 9cab1ae751 mu4e-compose: restrict to headers in before-save-hook-fn
Follow up to issue #1846.
2020-12-05 11:42:54 +02:00
Dirk-Jan C. Binnema ecafe54c99 parser: restore most unit tests 2020-12-05 11:42:54 +02:00
Dirk-Jan C. Binnema 3010e614a3 parser: using correct field for regexp expansion
Fixes: #1848
2020-12-05 11:42:54 +02:00
Dirk-Jan C. Binnema e9529c246c
Merge pull request #1850 from juanjosegarciaripoll/fix-for-mu4e-proc-start
Do not use shell commands to extract version number
2020-12-04 22:46:13 +02:00
Juan Jose Garcia-Ripoll 03d5640cee Do not use shell commands to extract version number
Avoid using 'head', 'sed' or other POSIX commands to extract the version number when Emacs can do it. This allows installing just 'mu', without the extra unix tools in a Windows environment.
2020-12-04 16:45:09 +01:00
Dirk-Jan C. Binnema 4eed85187f mu4e-compose: Don't auto-update Message-Id/Date
Fixes #1846
2020-12-02 08:51:35 +02:00
Dirk-Jan C. Binnema 946bf7571e mu4e-vars: remove unused face 2020-11-30 20:34:54 +02:00
Dirk-Jan C. Binnema d0e357c150 utils: Improve option/result types
And add the beginnings of unit tests.
2020-11-28 10:46:38 +02:00
Dirk-Jan C. Binnema 4b6d9a0ce8 utils: add RAII stopwatch
For benchmarking
2020-11-28 10:46:38 +02:00
Dirk-Jan C. Binnema 6bda2a12ff
Merge pull request #1777 from jesusbv/add-new-entry-org
mu4e: Add Org entry when accepting event
2020-11-28 10:45:16 +02:00
Dirk-Jan C. Binnema d7512b1259 mu4e-org: Use derived-mode-p correctly
Fixes: #1840
2020-11-24 00:17:17 +02:00
Dirk-Jan C. Binnema 1f1415c91f
Merge pull request #1839 from thierryvolpiatto/avoid_looping
Avoid looping through buffer-list when not needed
2020-11-19 22:34:01 +02:00
Dirk-Jan C. Binnema a00918ac93 guile: small build cleanups 2020-11-16 10:16:39 +02:00
Thierry Volpiatto c62dbb250c
Avoid looping through buffer-list when not needed 2020-11-16 08:59:45 +01:00
Dirk-Jan C. Binnema df954c82de
Merge pull request #1837 from eklitzke/readdir
Use readdir(3) instead of deprecated readdir_r(3) in mu-maildir.c
2020-11-16 09:52:38 +02:00