Commit Graph

6421 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 08ffba42b9 mu/cmd: update for new sexp API
Makes the code a bit cleaner.
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema a417b38624 store: update for new sexp api
And use improved cached_sexp api (automatically handled with
mu-document now)
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema e1dd6f10b1 server: rework for updated Sexp/CommandHandler
Rework for the new APIs.
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema 58176f8438 message: updates for new sexp
Update for API changes.
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema dbd3c1309a command-handler: rework for new sexp
Rework / cleanup the command-handler (and rename for command-parser).

Update tests (and integrate with sources)
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema dfc2cb12d7 sexp: major rework / API improvements
Use a bit nicer/modern c++, since we're using C++17 now. Add more tests.
2022-11-07 18:37:23 +02:00
Dirk-Jan C. Binnema 6064c2e88b test-mu-store-query: make move/refresh test more rigorous 2022-11-01 18:41:10 +02:00
Dirk-Jan C. Binnema db0d51d630 server: improve error messages 2022-11-01 18:37:31 +02:00
Dirk-Jan C. Binnema cb4e893f3a mu-error: add missing string include 2022-10-30 15:51:03 +02:00
Dirk-Jan C. Binnema 83eceaf580 test-mu-store-query: make move/refresh test more rigorous 2022-10-30 11:39:33 +02:00
Dirk-Jan C. Binnema 0055b40a8d mu-maildir: improve error handling / reporting 2022-10-30 11:27:54 +02:00
Aleksei Atavin 0f097e00c6
mu4e: temporary reset browse-url-handlers in view in xwidget action
If `browse-url-handlers` is set `mu4e-action-view-in-xwidget` function
tries to open url in the handler first instead of xwidget. This is
happening because `browse-url` first checks `browse-url-handlers` and
`browse-url-browser-function` after.

Signed-off-by: Aleksei Atavin <axeoman@gmail.com>
2022-10-28 22:52:16 +03:00
Dirk-Jan C. Binnema 06be7a24e7 test-mu-store-query: add unit test for dup message
For ticket #2327. Haven't been able to reproduce though.
2022-10-26 22:35:34 +03:00
Dirk-Jan C. Binnema 27a85eada2 store: fix move ctor
indexer_ is holding a ptr to the _old_ store; clear it so it gets
regenerated.
2022-10-26 21:51:53 +03:00
Daniel Colascione f0bba8e1fa message: use fake Message-ID when empty
Previously, mu generated a fake message ID for messages without a
Message-ID header. This fake message ID allows these messages to show in
an --include-related query. However, if a message contained a Message-ID
header with the value equal to the empty string, we did not generate a
fake message ID in the index, and consequently, these messages failed to
appear in an --include-related query. This change uses a fake message ID
when the Message-ID header is absent _or_ empty.
2022-10-24 23:14:17 +03:00
Dirk-Jan C. Binnema 822f49d41a mu-fields: fix string format 2022-10-17 07:33:23 +03:00
Dirk-Jan C. Binnema 479532689b mu4e: update outdated doc for mime-part actions
As noted in #2351.
2022-10-17 07:32:30 +03:00
Dirk-Jan C. Binnema 3d97db8ffc view: be clearer there's no text body found
There may have been an html body, but mu-view only shows a text-body;
make that clearer.

Add a test case for an html-only message.

Fixes #2349.
2022-10-16 00:57:19 +03:00
Dirk-Jan C. Binnema 669ad7720e build: add explicit check for charconv
Some older Apple compilers don't have it; error out early.

Fixes #2347.
2022-10-15 11:15:02 +03:00
Damon Kwok 3833c49f78 Added windows(MSYS2) support 2022-10-06 16:09:15 +08:00
Dirk-Jan C. Binnema 84cfe205f1 build: bump version 1.9.1 2022-10-03 22:11:36 +03:00
Dirk-Jan C. Binnema 5367122c08 store: support reinit
Support reinitializing, based on some current store. This is useful for
upgrading. Note that this is only the backend implementation + tests.
2022-10-02 18:24:23 +03:00
Dirk-Jan C. Binnema 9e60ebb683 utils: add helpers for assoc-pairs
Add some unit-test, too.
2022-10-02 18:24:23 +03:00
Dirk-Jan C. Binnema ca04ae4d65 test-mu-msg.cc: fix unit test
Fix typo.
2022-10-02 18:24:23 +03:00
Dirk-Jan C. Binnema c8898c8c13 meson.build: cosmetic
Fix whitespace, avoid a warning with clang
2022-10-02 18:24:23 +03:00
Dirk-Jan C. Binnema 44d3cefbf7
Merge pull request #2342 from sje30/patch-7
Update copyright to 2022
2022-10-02 14:34:34 +03:00
Stephen Eglen 36d006171d
Update copyright to 2022 2022-09-30 20:36:48 +01:00
Dirk-Jan C. Binnema 9673c02977 mu4e: headers: Fix copy-pasta m-h-thread-first-child-prefix
Fixes #2334.
2022-09-19 18:33:16 +03:00
Dirk-Jan C. Binnema bb7c8d880a message: convert mime-parts to utf-8
Ensure that non-utf8 mime-parts are converted to utf8. This fixes a
problem with messages with such parts; added unit test.

Fixes #2333.
2022-09-19 18:27:03 +03:00
Dirk-Jan C. Binnema e8177c7f04 mu4e: remove some dead code in headers 2022-09-14 23:26:00 +03:00
Dirk-Jan C. Binnema bf0af7465f Revert "m4e: remove disruptive characters from header fields"
This reverts commit 74d5902133 because it
broke the threading display.
2022-09-14 23:23:27 +03:00
Dirk-Jan C. Binnema ecc7cb65d3 mu4e: add mu4e--plist-get helper 2022-09-14 23:07:30 +03:00
Dirk-Jan C. Binnema e23c378d01
Merge pull request #2330 from seanfarley/smf/indexing-refresh-main
mu4e-main: automatically update the mail counts after indexing
2022-09-14 23:06:39 +03:00
Dirk-Jan C. Binnema 0de4754df6
Merge pull request #2332 from remvee/mu4e-headers-sanitize-field-values
mu4e: remove disruptive characters from header fields
2022-09-14 23:05:32 +03:00
Dirk-Jan C. Binnema 87018e6257
Merge pull request #2336 from tsdh/fix-cl-case-usages
Fix wrong cl-case usages where emacs 29 errors on byte-compilation now
2022-09-14 23:02:24 +03:00
Tassilo Horn 2dd5d9cfa1 Fix wrong cl-case usages where emacs 29 errors on byte-compilation now 2022-09-14 08:19:31 +02:00
Dirk-Jan C. Binnema 7f0497638c
Merge pull request #2329 from seanfarley/smf/save-excursion-html
mu4e-view: use `save-excursion' around toggling html
2022-09-08 07:04:04 +03:00
Remco van 't Veer 74d5902133 m4e: remove disruptive characters from header fields
Sometimes fields (especially subject fields) contain disruptive
characters like new lines which will mess up the mu4e-headers view.
This changeset introduces `mu4e~headers-sanitize-field-value` to replace
all control characters by spaces.

Note, Unicode Left to Right Overrides do not cause any problems so they
are ignored.
2022-09-07 10:47:12 +02:00
Sean Farley 89acde3f9c mu4e-main: automatically update the mail counts after indexing
It always struck me as a bit odd to force the user to refresh the main
view after updating and indexing their mail. This change creates a hook
that will simply call `revert-buffer' after an indexing completes.
2022-09-04 16:54:24 -05:00
Sean Farley 243b862776 mu4e-view: use `save-excursion' around toggling html
Previously, the cursor would be moved to the first html attachment which
would break using mu4e keybindings (e.g. delete). With this change, the
cursor isn't moved at all, presumably the expected behavior.
2022-09-03 17:01:41 -05:00
Dirk-Jan C. Binnema e7e6f2e776
Merge pull request #2326 from protesilaos/master
Make refinements to face remapping in mu4e~compose-remap-faces
2022-08-27 07:45:18 +03:00
Protesilaos Stavrou 8c42c43fd7
mu4e-compose: remove remap for unused face
The mu4e-cited-1-face does not exist any more, per commit
a4707afe12.
2022-08-27 05:51:16 +03:00
Protesilaos Stavrou 339d841415
mu4e-compose: simplify mu4e~compose-remap-faces 2022-08-27 05:29:56 +03:00
Dirk-Jan C. Binnema 0ee49f9b8c guile: define_vars: define for both name and alias
Scripts seem to depend on both.
2022-08-23 22:26:36 +03:00
Dirk-Jan C. Binnema 529e856d35 guile: define_vars: define for both name and alias
Scripts seem to depend on both.
2022-08-23 22:25:01 +03:00
Dirk-Jan C. Binnema fafc7d3bf6 mu4e: include mu4e-obsolete.el
Fixes #2324.
2022-08-23 19:33:49 +03:00
Dirk-Jan C. Binnema b91628d009 guile/meson.build: install scripts too
Fixes #2323
2022-08-23 19:33:41 +03:00
Dirk-Jan C. Binnema a094512067 guile/meson.build: cleanup whitespace 2022-08-23 19:33:34 +03:00
Dirk-Jan C. Binnema 906f0910a2 guile/meson.build: install scripts too
Fixes #2323
2022-08-23 19:29:53 +03:00
Dirk-Jan C. Binnema ed4d8d0e0f guile/meson.build: cleanup whitespace 2022-08-23 00:20:52 +03:00