Commit Graph

7021 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 146b80113f lib: move transaction handling to mu-xapian
Instead of handling transactions in the store, handle it in xapian-db.
Make the code a bit more natural / cleaner-out

Handle transaction automatically (with a batch-size) and add some RAII
Transaction object, which makes all database interaction transactable
for the duration. So, no more need for explicit parameters to
add_message while indexing.
2023-12-22 21:24:41 +02:00
Dirk-Jan C. Binnema cbd6353058 mu4e-compose: don't attempt deleting frames for now
This needs some more work, so don't try to delete frames for now, which
is better than the alternative.
2023-12-15 12:46:44 +02:00
Dirk-Jan C. Binnema 65e7e7f42d mu4e-compose: be less eager deleting frames
We were deleting frames if it was not the last one; however, emacs can
have a bunch of hidden frames (for tooltips?) that we should not
consider.
2023-12-14 21:38:15 +02:00
Dirk-Jan C. Binnema 25776da557 mu-result: small tweaks 2023-12-13 21:48:43 +02:00
Dirk-Jan C. Binnema 8c1466773f mu4e: get rid of mu4e-is-mode-or-derived-p
derived-mode-p is enough
2023-12-06 20:30:47 +02:00
Dirk-Jan C. Binnema 8bdf6b42a2 lib: debug-log moving / unlinking 2023-12-06 20:29:27 +02:00
Dirk-Jan C. Binnema 0ee0a26689 mu4e.texi: mention header-line-format misalignment & workaround
We can't fully fix this with the current headers-view, but this may help
some user. Based on code provided by @phil-s.

Fixes #2606.
2023-12-04 18:52:50 +02:00
Dirk-Jan C. Binnema 038d6ea6b6 mu4e-headers: avoid defcustom warning for mu4e-headers-field
Variable may contain custom (user-specified) fields, no need to warn for
that; suggested by @mekeor.

Fixes #2607
2023-12-04 18:52:50 +02:00
Dirk-Jan C. Binnema daf303d444 mu4e-window: fix mu4e--get-current-buffer-type
The change for emacs 30.x does not work for older emacs versions...
2023-12-04 18:52:50 +02:00
Dirk-Jan C. Binnema 526d49f70c mu4e-compose: attempt to delete frame after done with composition
Attempt to delete the frame when
a) it's not the last frame, and
b) there's only a single window on the frame

Fixes #2577
2023-12-04 19:25:55 +02:00
Dirk-Jan C. Binnema 730bd13ea2 mu4e-compose: ensure we switch to composition buffer
When we're done with the setup.

Fixes #2605.
2023-12-02 17:45:51 +02:00
Dirk-Jan C. Binnema d488ab2641 mu4e-compose: combine mu4e-compose-new and mu4e-compose-mail
No need for duplication.
2023-12-02 17:45:51 +02:00
Dirk-Jan C. Binnema 20e44f0fb6
Merge pull request #2599 from a3a3el/reproducilble-build-fix
man: fix unreproducible copyright years
2023-12-02 17:41:03 +02:00
Dirk-Jan C. Binnema 8c26edf656 build: bump version to 1.11.26 2023-12-01 19:11:56 +02:00
Dirk-Jan C. Binnema 4ea450c29f mu4e: update documentation 2023-12-01 19:11:56 +02:00
Dirk-Jan C. Binnema 8e52ef6a7c build: add some fortification flags 2023-12-01 19:11:56 +02:00
Dirk-Jan C. Binnema 149ec143ba mu4e-compose: remove crs from message when decoding
This fixes e.g. forwarding for some mesasges that contain CRs.
2023-12-01 19:11:56 +02:00
Dirk-Jan C. Binnema 18efe9a955 mu4e-compose: improve mu4e-message-kill-buffer
Try to go back to the buffer we were in before. HT: @thierryvolpiatto

Fixes #2600.
2023-11-30 22:16:04 +02:00
Dirk-Jan C. Binnema f3606c0352 mu4e-compose: rework message handling
A number of change in message composition:

Clean up some of the handling function, in particular, only include
headers in mu4e--decoded-message when that is all that's needed.

When forwarding messages, make sure message-reply-headers is filled with
the values for the to-be-forwarded message so the references etc. get
filled correctly.

Fixes #2603
2023-11-30 22:14:36 +02:00
Dirk-Jan C. Binnema 14d9f7ccce mu4e-window: update derived-mode-p call
Don't use the deprecated calling convention
2023-11-30 19:05:34 +02:00
Dirk-Jan C. Binnema dcd3fbb41a
Merge pull request #2602 from progfolio/fix/mu4e-compose-reply
mu4e-compose-reply: account for nil REPLY-TYPE in assertion
2023-11-22 23:21:50 +02:00
Nicholas Vollmer 4ab0ae5565 mu4e-compose-reply: account for nil REPLY-TYPE in assertion
Previous assertion would fail when REPLY-TYPE is nil, but nil is a valid value
for the argument.

See: https://github.com/djcb/mu/issues/2601
2023-11-22 16:10:08 -05:00
Dirk-Jan C. Binnema fa0248a361 mu4e-view: unfold threads when working in headers-context
It's a bit hard otherwise to keep headers/article in sync.

Fixes #2498.
2023-11-22 21:41:02 +02:00
Dirk-Jan C. Binnema 087d06c5d3 mu4e-compose: implement mu4e-compose-supersede
Hook up `message-supersede` which you can /supersede/ your own messages;
that is, send the message as kind-of reply to the same recipients. This
only works if you were the sender.

This should help for #2584.
2023-11-22 21:41:02 +02:00
Jeremy Sowden c9b06a55e7 man: fix unreproducible copyright years
967b724e75 ("build: avoid dynamic dates for reproducibility")
introduced the `mu_date` variable to hard-code a build-date.  This is
used for the dates embedded in the texinfo documentation, but `date` is
still called to set the copyright years in the man-pages.  Use `mu_date`
there too.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2023-11-19 12:30:34 +00:00
Dirk-Jan C. Binnema e0826d10b1 mu4e-contacts: fix some noise
Fixes #2598.
2023-11-18 19:12:29 +02:00
Dirk-Jan C. Binnema 3a506846f9 mu4e-view: do not bind message-alternative-emails recursively
Fixes #2597.
2023-11-16 19:03:13 +02:00
Dirk-Jan C. Binnema d814d4630f mu4e-headers: remove overlays in mu4e~headers-clear
This is needed to clear-up message threads
2023-11-16 18:59:43 +02:00
Dirk-Jan C. Binnema d9f7b295b4 build: bump version to 1.11.25 2023-11-15 15:56:58 +02:00
Dirk-Jan C. Binnema 1936d4eec3 mu4e-compose: ensure message-mail-user-agent is nil
Unbreak some user setups

Fixes #2596.
2023-11-15 15:52:58 +02:00
Dirk-Jan C. Binnema 08ebe87f81 mu4e-view: fix typo
a rogue ' snuck in.
2023-11-13 10:42:04 +02:00
Dirk-Jan C. Binnema 17ea8bd613 mu4e: fix background mu4e
Fixes #2593.
2023-11-12 23:29:51 +02:00
Dirk-Jan C. Binnema e71640fdfa mu4e-view: tidy-up mu4e-view-message-text 2023-11-12 23:29:51 +02:00
Dirk-Jan C. Binnema 3c19613cf0
Merge pull request #2594 from Chris00/master
mu4e-compose-mail: fix the number of parameters of the closure
2023-11-12 23:15:17 +02:00
Dirk-Jan C. Binnema 90c5d859e8
Merge pull request #2592 from creichen/master
When re-tagging, force `replace-match' to preserve case
2023-11-12 23:14:13 +02:00
Christophe Troestler 8d8a5a9844 mu4e-compose-mail: fix the number of parameters of the closure 2023-11-12 21:09:24 +01:00
Christoph Reichenbach 490dc8869b When re-tagging, force `replace-match' to preserve case
Sets the second parameter to `replace-match' to t, thus forcing it to
not attempt to auto-adjust the case of any tags.
2023-11-12 10:51:47 +00:00
Dirk-Jan C. Binnema a720c9cb1c mu4e-compose: split citing / header extraction
We use a body from mu4e-view-message-text for citing, and
mu4e--decoded-message for header extraction.

There's room for some refactoring.
2023-11-10 16:47:34 +02:00
Dirk-Jan C. Binnema 117600ef20 mu4e-main: cosmetics / docs 2023-11-10 16:47:23 +02:00
Dirk-Jan C. Binnema 2058f15506 mu4e: improve startup routine
Switch to main buffer if it already exists, in the non-background case.
2023-11-10 16:47:23 +02:00
Dirk-Jan C. Binnema 171fe9a018 mu4e-compose: add missing arg to mu4e-compose-new lambda 2023-11-08 18:18:47 +02:00
Dirk-Jan C. Binnema 30a78d3cb9 mu4e-compose: use raw message for "forward"
Not the decoded one.
2023-11-08 15:33:47 +02:00
Dirk-Jan C. Binnema 4845872118
Merge pull request #2591 from Chris00/master
Fix mu4e-compose-mail and some warnings
2023-11-08 15:33:18 +02:00
Christophe Troestler 0941b37fcc Fix mu4e-compose-mail 2023-11-08 10:00:16 +01:00
Christophe Troestler d19c78f30d mu4e: Fix warnings in contrib 2023-11-08 10:00:06 +01:00
Dirk-Jan C. Binnema ea7c05c183 mu4e-compose: implement mu4e--decoded-message
Instead of mu4e-view-message-text, use a more targeted approach that
does just enough to get a decoded message with all the headers, which we
can use for replying.
2023-11-07 16:40:09 +02:00
Dirk-Jan C. Binnema c76c410256 mu4e: always include message-id in mu4e-view-message-text
Regardless of mu4e-view-headers; and ensure the message-id is in
<brackets>.
2023-11-05 17:52:14 +02:00
Dirk-Jan C. Binnema 556396bb85 mu4e-compose: explicitly generate-headers
Ongoing troubles with this, and apparently some differences between
Emacs versions (?).

Explicitly generated the needed headers.
2023-11-05 16:47:08 +02:00
Dirk-Jan C. Binnema dfe28f033a mu4e-view: do full render in mu4e-view-message-text
Otherwise decoding does not work correctly.
2023-11-04 23:38:02 +02:00
Dirk-Jan C. Binnema a551aaa694 mu4e-compose: rework header insertion
Clean up the composition pipeline a bit, and set
message-generate-headers-first explicitly.

Hide headers later.
2023-11-04 23:38:02 +02:00