1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-27 07:35:16 +02:00
Commit Graph

7190 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema
b105fad181 NEWS.org: update 2024-05-11 12:46:27 +03:00
Dirk-Jan C. Binnema
a6208efd50 mu4e: add mu4e-save-message
Convenience function for saving the message-at-point.
2024-05-11 12:46:27 +03:00
Dirk-Jan C. Binnema
aeb6d44172 mu-store/indexer: consume messages from workers
Add store::consume_message, which is like add message but std::move from
the caller such that the messages longer has copies (with
Xapian::Document) on the caller side; this is to avoid threading issues.
2024-05-08 19:11:40 +03:00
Dirk-Jan C. Binnema
ceed832cb9 mu-query: minor cleanups 2024-05-08 00:06:28 +03:00
Dirk-Jan C. Binnema
c3283dc5ae IDEAS.org: update 2024-05-07 23:53:43 +03:00
Dirk-Jan C. Binnema
23941735df logging: rework a bit, maybe support syslog
Seems journal logging fails on NetBSD (no surprise), but has some
unwanted/not-fully-understood side-effects.

In any case, outside Linux there's no use in even trying to use
journald; so we don't do that anymore.

Add conditional support for syslog (requires glib 2.80).
2024-05-07 09:27:50 +03:00
Dirk-Jan C. Binnema
b36e492d29 build: bump version to 1.12.5
New version 1.12.5

- Rework message composition; split off parts into mu4e-draft.el
  This tries harder to maintain the current buffer as expected
- This fixes e.g. emacs-report-bug handling
- New hook mu4e-compose-post-hook for tweaking what mu4e does when
  we're done with a message (after sending, cancelling, ...).
  By default, it tries to close the frame if needed, and restore
  the window configuration. See its docstring.
- Better handle forwarding of encoded messages
- Don't remove non-mu4e completion in composer
- Integrate iCalendar support with message-composition
- Handle mu4e-sent-messages-behavior correctly when it's a function
- Better support NetBSD
- Support some file systems that don't put the file type in d_type
- Improve documenation
2024-05-03 18:42:57 +03:00
Dirk-Jan C. Binnema
a2273b69e7 improve documentation 2024-05-03 08:03:39 +03:00
Dirk-Jan C. Binnema
aaf8fbf339
Merge pull request #2703 from a3a3el/bugfix/handle-dt_unknown
scanner: don't skip directory entries with type `DT_UNKNOWN`
2024-05-03 08:02:02 +03:00
Dirk-Jan C. Binnema
332cf249b8
Merge pull request #2702 from dkogan/prefix-reply-all
mu4e-compose-reply with a prefix argument replies to ALL
2024-05-03 08:00:32 +03:00
Jeremy Sowden
5a1ca77b47 scanner: don't skip directory entries with type DT_UNKNOWN
According to the readdir(2) man-page, not all file-systems support returning the
entry's file-type in `d_type`.  For example, the reprotest reproducibility tool,
uses the disorderfs FUSE file-system to shuffle the order in which directory
entries are returned, and this does not set `d_type`.  Therefore, in addition to
entries with type `DT_DIR` and `DT_LNK`, also process entries with type
`DT_UNKNOWN`.

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-05-01 20:43:18 +01:00
Dima Kogan
c5a0dda9ea mu4e-compose-reply with a prefix argument replies to ALL 2024-05-01 09:50:33 -07:00
Dirk-Jan C. Binnema
808d725254 mu4e-compose: use raw message to feed message-forward
Seemingly, message-forwarded needs the raw message, not the decode one
for proper forwarding when the parent message is encoded in some way.

Add a little hack / workaround for that.

See #2662.
2024-05-01 18:37:48 +03:00
Dirk-Jan C. Binnema
e2bf38298d mu4e-draft: mark m-c-(type|parent-message) as permanent-local
The variables mu4e-compose-parent-message & mu4e-compose-type are
buffer-local as well as permanent-local. That way, they'll survive the
mode change to mu4e-compose-mode and we can use them in the
corresponding mode-hook.
2024-05-01 18:22:53 +03:00
Dirk-Jan C. Binnema
5a48664033 lib: centralize xapian include, enable move semantics
Only include xapian.h in one place, so we can have consistent options.
With that in place, we can enable C++ move semantics.

We don't do anything with that yet, but we check in the meson.build file
to see if we have the required xapian version.
2024-05-01 17:02:24 +03:00
Dirk-Jan C. Binnema
32bb79b316 draft: explicitly remove drafts after sending
This seems necessary in some cases.
2024-04-30 18:10:26 +03:00
Dirk-Jan C. Binnema
c56f8e2f06 mu4e-draft: don't treat delete as a function
In mu4e-sent-messages-behavior.

Fixes #2701.
2024-04-30 18:10:26 +03:00
Dirk-Jan C. Binnema
14a882f912 Merge branch 'wip/djcb/composer-rework' 2024-04-28 22:08:58 +03:00
Dirk-Jan C. Binnema
c8bf57955d mu4e-draft: better handle replies
(again) avoid mixing up message-reply-headers.
2024-04-28 22:07:02 +03:00
Dirk-Jan C. Binnema
6e8418bc64 mu-server: better handle msgid-not-found in move
It's opportunistic: messages referred to be msgid may not exist, and
that's okay.
2024-04-28 22:06:07 +03:00
Dirk-Jan C. Binnema
4440594066 mu4e: implement mu4e-compose-post-hook
A hook for when we're done with message composition.

We populate it with a function to kill created frames and one to attempt
to restore window configuration.
2024-04-28 10:04:27 +03:00
Dirk-Jan C. Binnema
a49cd03f6b mu4e-drafts: improve mu4e--fcc-path
Reworked from the pull #2698 for the new branch.
2024-04-26 23:36:28 +03:00
Dirk-Jan C. Binnema
a9b78718b2 mu4e-draft/window: handle buffer display in mu4e-window
Handle buffer display where all mu4e's buffer display is done: in mu4e-window.el.

Avoid overly long lines in mu4e-window.el.
2024-04-26 23:36:28 +03:00
Dirk-Jan C. Binnema
813ce795ff mu4e-icalendar: integrate with mu4e-compose
So we use context and display settings.
2024-04-26 22:59:48 +03:00
Dirk-Jan C. Binnema
6a4d6a49c4 mu4e-compose: split off parts in mu4e-draft; rework
Move draft-creation part of message-composition to a new file
mu4e-drafts

However, this is more than just some refactoring: rework the
message (draft) setup as such to ensure we always get a (non-active,
live) buffer back from the composition process.

This also fixes

(progn
  (compose-mail "test@example.org" "Test")
  (insert "TEST"))

as mentioned on the mailing list.

Fixes #2699
2024-04-26 22:59:48 +03:00
Dirk-Jan C. Binnema
178402fabb mu4e-compose: prepare for rebase
temporarily remove the mu4e-sent-messages-behavior change, it comes
back in a slightly different way in the next commits.
2024-04-26 22:59:33 +03:00
Dirk-Jan C. Binnema
bbd949e9e7
Merge pull request #2698 from josephmturner/fix-mu4e--fcc-path
Fix: Put sent mail in correct location when `mu4e-sent-messages-behavior` is a function
2024-04-25 09:19:32 +03:00
Joseph Turner
f00ca68c67 mu4e-compose: Don't nest pcase 2024-04-24 13:50:40 -04:00
Joseph Turner
4d923b6bbc mu4e-compose: fix when mu4e-sent-messages-behavior is functional
This commits fixes a regression introduced in
85bfe76336 , at which point sent mails ended up in
the "cur/" subdirectory of the root maildir when the mu4e-sent-messages-behavior
user option was set to a function.
2024-04-24 13:50:40 -04:00
Dirk-Jan C. Binnema
0f0d2189d4 mu4d-contacts: fix typo 2024-04-23 22:08:23 +03:00
Dirk-Jan C. Binnema
6349091061 mu4e-compose: don't interfere with non-mu4e completion
When enabled, attempt mu4e's auto-completion the first in line (in
completion-at-point-functions); but don't remove any other completions
the user may have set up.

Fixes #2697.
2024-04-23 11:46:00 +03:00
Dirk-Jan C. Binnema
a0d60d23b0 compat: include sys/wait.h where needed
netbsd needs this explicitly, other systems let us get away without it.
2024-04-21 22:08:10 +03:00
Dirk-Jan C. Binnema
386153f1a7 github: update bug filing template 2024-04-20 11:44:22 +03:00
Dirk-Jan C. Binnema
4f72e2656d mu4e: use message-field-value
Simplify

...instead of
save-restriction/message-narrow-to-headers/message-fetch-field.
2024-04-20 11:44:22 +03:00
Dirk-Jan C. Binnema
a2f08a77f5
Merge pull request #2696 from fbenkstein/mu-move-remove-dbg-print
mu-move: remove debug print
2024-04-20 11:41:00 +03:00
Frank Benkstein
b37bfba223 mu-move: remove debug print 2024-04-19 16:24:26 +02:00
Dirk-Jan C. Binnema
ac2515e66c build: bump version to 1.12.4
- query when quitting emacs with unhandled marks in a headers buffer
- fix mime-handling
- update sent handling (simplifying it)
- some internal improvements
- number of small fixes / updates
- documentation updates
- re-enable a specific database lock; this makes indexing a bit slower,
  but hopefully avoids some db corruption.
2024-04-15 19:05:22 +03:00
Dirk-Jan C. Binnema
a3e1293c4c mu4e-compose: bring make mu4e--fake-pop-to-buffer
All but the default mu4e-compose-switch depend on this.
2024-04-15 08:34:32 +03:00
Dirk-Jan C. Binnema
48822a3af6 mu4e.texi: add note about bbdb address completion
Fixes #2691
2024-04-14 21:40:30 +03:00
Dirk-Jan C. Binnema
29ce96923a test-mu-utils: update parse_date_time tests
We're using ::time_t now.
2024-04-14 11:30:20 +03:00
Dirk-Jan C. Binnema
9f476295e1 mu4e-compose: rework message-sent-hook
Grab the Fcc in the hook (when available).
2024-04-14 10:41:17 +03:00
Dirk-Jan C. Binnema
a6ec43a740 mu-utils: update casting from int64_t -> time_t
Esp. for systems with 32-bit time_t.
2024-04-13 20:06:39 +03:00
Dirk-Jan C. Binnema
d3e7b9cf05 mu4e-compose: handle no-fcc-path in sent-hook
Workaround for #2688.
2024-04-13 13:08:05 +03:00
Dirk-Jan C. Binnema
32d73260d3 mu4e.texi: add diary example action 2024-04-12 20:05:20 +03:00
Dirk-Jan C. Binnema
adb560d960 mu4e-icalendar: use message-reply to generate the reply
using mu4e--compose-setup is a little too fragile.
2024-04-12 18:20:41 +03:00
Dirk-Jan C. Binnema
21ab73e0d0 update IDEAS.org 2024-04-11 19:41:18 +03:00
Dirk-Jan C. Binnema
faade24945 mu4e-compose: kill fcc buffer after sending
There's a buried buffer for the fcc file... not quite sure why, but
let's kill it after we've sent the message.

Fixes #2681.
2024-04-11 20:02:01 +03:00
Dirk-Jan C. Binnema
8c29ed56ce mu4e-compose: use find-file-noselect for edit
Oops! This was missing for #2644
2024-04-10 22:57:10 +03:00
Adam Porter
6a12137506 mu4e--view-render-buffer: Disable Gnus bookmark-make-record-function
The function 'gnus-summary-bookmark-make-record' does not work properly with the
faux "appeasement" summary buffer, causing undesired changes in the window
configuration when the message rendering buffer's bookmark function is
called (which some packages, like Activities, Burly, and Dogears do routinely).

See <https://github.com/alphapapa/activities.el/issues/55>.

Reported-by: Daniel Goldin <https://github.com/danielgoldin>
2024-04-10 21:47:04 +03:00
Dirk-Jan C. Binnema
ac08a35c5b mu4e-view: re-appease gnus
Otherwise some saving of MIME-parts does not work properly.
2024-04-10 21:47:04 +03:00