Commit Graph

2335 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 930c5b79c8 mu4e-context: small cleanups
Only refresh query-items when switch from existing context.

Some cosmetics
2023-01-24 23:43:55 +02:00
Dirk-Jan C. Binnema 7d17b1c15b mu4e: small cleanup in startup 2023-01-24 23:43:55 +02:00
Dirk-Jan C. Binnema 4b12061efb mu4e-query-items: cosmetic
Fix flycheck warning
2023-01-24 23:43:55 +02:00
Dirk-Jan C. Binnema d6b5384ac1 mu4e: some cosmetic fixes in mu4e-icalendar
Use mu4e--icalendar rather then mu4e~icalendar.

Fix some flycheck warnings
2023-01-24 23:43:55 +02:00
Dirk-Jan C. Binnema ad51082472 mu4e: tweak notification message 2023-01-20 19:12:19 +02:00
Dirk-Jan C. Binnema 61299b853c mu4e: tweak baseline handling 2023-01-20 07:08:16 +02:00
Dirk-Jan C. Binnema d0d85c9135 mu4e: query-item: tweak baseline handling 2023-01-20 00:14:46 +02:00
Dirk-Jan C. Binnema 85d2fdcdd7 mu4e: ignore bookmarks/maildirs without characterp keys 2023-01-19 22:37:50 +02:00
Dirk-Jan C. Binnema 87187d15d6 mu4e-mark: add confirmation for mu4e-mark-unmark-all
Fixes #1234
2023-01-19 22:37:50 +02:00
Dirk-Jan C. Binnema c23dad7058 mu4e-view: use with-selected-window in mv--in-headers-context
Fixed #1394
2023-01-18 20:32:34 +02:00
Dirk-Jan C. Binnema ae10d3a3f8 mu4e-main: put bookmark/maildir query in help-echo 2023-01-18 19:41:25 +02:00
Dirk-Jan C. Binnema 817675d83c mu4e-draft: cleanup, honor reply-to
Fixes #2420
2023-01-18 17:11:58 +02:00
Dirk-Jan C. Binnema e97dcb1ff7 mu4e: tweak mu4e--query-items-queries-handler 2023-01-18 17:11:58 +02:00
Dirk-Jan C. Binnema 6271d0119b mu4e: update documentation 2023-01-18 17:11:58 +02:00
Dirk-Jan C. Binnema 6307a0db90 mu4e: mark-mu4e-quote-for-modeline obsolete
Becoming an internal function, mu4e--modeline-quote-and-truncate
2023-01-18 00:15:40 +02:00
Dirk-Jan C. Binnema 190ace5574 mu4e: show bookmark name in modeline
... if there's a bookmark matching the current query. Controllable
through mu4e-modeline-prefer-bookmark-name.

Fixes #1318.
2023-01-17 19:56:33 +02:00
Dirk-Jan C. Binnema 413bdc0980 mu4e-bookmarks: improve modeline item 2023-01-17 19:56:33 +02:00
Dirk-Jan C. Binnema 54210b9c4e mu4e.texi: improve documentation 2023-01-17 18:46:03 +02:00
Dirk-Jan C. Binnema 891c5838da mu4e-search: improve search modeline item 2023-01-17 18:46:03 +02:00
Dirk-Jan C. Binnema 74fb72035a mu4e: tweak main-view updating 2023-01-17 18:45:40 +02:00
Dirk-Jan C. Binnema d7eed9e9ff mu4e-context: improve mode-line item 2023-01-17 18:45:40 +02:00
Dirk-Jan C. Binnema 3716e6da3b mu4e-modeline: only cache global items, improve layout
So buffer-local items get flushed out automatically when we leave the
buffers where the local items were specified.

Honor mu4e-modeline-max-width
2023-01-17 18:45:40 +02:00
Dirk-Jan C. Binnema ec403c2306 mu4e: remove mac/ci texi pain point 2023-01-16 22:44:10 +02:00
Dirk-Jan C. Binnema 1b25dc0b88 mu4e.texi: fix some makeinfo warnings 2023-01-16 22:35:20 +02:00
Dirk-Jan C. Binnema 72a9ee9d4b mu4e-view: fix misplaced bracket
Fixes #2416.
2023-01-16 22:20:33 +02:00
Dirk-Jan C. Binnema 22b2d44b96 mu4e: tweak query-items refreshing
Try to make it a bit less confusing. The baseline becomes a bit more
implicit, and a `g` in the main view refreshes / resets.
2023-01-16 13:15:40 +02:00
Dirk-Jan C. Binnema eb691f8f31 mu4e-query-items: handle rewritten queries
We need to rewrite the queries that we send as server queries, and we
need to use those same rewritten queries when processing the results.
2023-01-16 13:15:40 +02:00
Dirk-Jan C. Binnema 5713a18374 mu4e: apply query-rewrite-function to query-items too
Some users depend on this.
2023-01-16 11:59:13 +02:00
Dirk-Jan C. Binnema ee8a59e6a5 mu4e-context: refresh/update query items upon switch 2023-01-16 11:59:13 +02:00
Dirk-Jan C. Binnema 08cb28da8c mu4e: implement optional desktop notifications 2023-01-16 11:59:13 +02:00
Dirk-Jan C. Binnema b37cf7341b mu4e-headers: avoid some too-long lines
In the source code.
2023-01-16 11:59:13 +02:00
Aimé Bertrand 99b6820336 Correct 2 docstrings in mu4e-folders.el
* mu4e/mu4e-folders.el: Correct few docstrings
(mu4e-get-drafts-folder): Fix docstring
(mu4e-get-trash-folder): Fix docstring
2023-01-15 22:45:28 +01:00
Tassilo Horn e88c869d6e Multiword maildirs are not quoted when autocomplete is used (fixes #2389) 2023-01-15 14:31:46 +01:00
Stephen Eglen 20fe650714
When replying to self, use :from field of original message
Simple patch to fix #2403
2023-01-14 22:41:31 +00:00
Dirk-Jan C. Binnema 526742af9f mu4e.texi: update mu4e-search references
The -headers- names were obsoleted.

Resolves #2407.
2023-01-14 20:02:05 +02:00
Dirk-Jan C. Binnema d428219ee6 mu4e-bookmarks: fix typo
resolves #2408.
2023-01-14 20:02:05 +02:00
Dirk-Jan C. Binnema a8d2476f08 mu4e-view: select window when operating in headers context
Fixes #2398
2023-01-14 20:02:05 +02:00
Dirk-Jan C. Binnema a86ed97f66
Merge pull request #2401 from sje30/patch-9
Update mu4e.texi
2023-01-14 20:00:21 +02:00
Dirk-Jan C. Binnema 10497436f3 mu4e.texi: small updates 2023-01-14 09:22:36 +02:00
Dirk-Jan C. Binnema 4182e599de mu4e-view: update baseline display
Make it a bit less prominent; and add a command mu4e-baseline-time.
2023-01-14 09:04:43 +02:00
Dirk-Jan C. Binnema d0e79d9429 mu4e: kill update process when quitting 2023-01-14 00:23:12 +02:00
Dirk-Jan C. Binnema a629caef1a mu4e: avoid byte-compiler warnings 2023-01-13 21:56:15 +02:00
Dirk-Jan C. Binnema 10041eb2e1 mu4e: implement mu4e-query-items
Implement function / datas structure to conveniently aggregate all
query-related data, for reuse in various places in mu4e...

... to start with the main menu, which gets much simpler. And the
modeline.
2023-01-13 21:56:15 +02:00
Dirk-Jan C. Binnema fc867c9065 mu4e-folders: fix whitespace 2023-01-09 23:56:34 +02:00
Dirk-Jan C. Binnema f5f03e8f91 mu4e-main: add menu to menubar 2023-01-09 22:45:53 +02:00
Dirk-Jan C. Binnema b11293147f mu4e: move mu4e~headers-jump-to-maildir to search
... to mu4e-search-maildir.

Where we can, we move appropriate code from the overpopulated
mu4e-headers.el to mu4e-search, and update users.
2023-01-09 22:43:39 +02:00
Dirk-Jan C. Binnema 551bc46b47 mu4e: improve emacs menu-bar items
Fixes issue #2406.
2023-01-09 22:13:24 +02:00
Dirk-Jan C. Binnema 5e5a74ed22 mu4e: use caching for modeline items
Avoid excessive (unnecessary) recalculation.
2023-01-08 13:54:47 +02:00
Dirk-Jan C. Binnema f77bc903e7 mu4e: move modeline handling from mu4e-headers to mu4e-search 2023-01-08 13:31:51 +02:00
Dirk-Jan C. Binnema 1e018ee1fc mu4e: remove keybindings from mu4e-context-minor-mode
They interfered with the major modes (in particular the undefine hack
needed in mu4e-compose).

Fixes #2402.
2023-01-07 17:13:36 +02:00
Dirk-Jan C. Binnema 441c450004 mu4e-compose: whitespace fixes 2023-01-07 17:13:36 +02:00
Dirk-Jan C. Binnema 49b687ec67 mu4e.texi: Improve documentation 2023-01-07 16:25:56 +02:00
Dirk-Jan C. Binnema 687fc53855 mu4e: update documentation for modeline/favorite 2023-01-07 15:40:30 +02:00
Dirk-Jan C. Binnema 49e094531c mu4e: add support for :favorite bookmark
Show favorite bookmark in main-screen (highlighted)

Add baseline-reset when main screen is shown or when the favority
bookmark is searched.

Some code cleanup
2023-01-07 15:40:30 +02:00
Dirk-Jan C. Binnema f0f14d7505 mu4e-bookmarks: show favorite bookmark info 2023-01-07 15:40:30 +02:00
Dirk-Jan C. Binnema 17b7790686 mu4e: handle the new queries command responses 2023-01-07 15:40:30 +02:00
Dirk-Jan C. Binnema beb2bef8dd mu4e-modeline: refactor modeline support
Move all the modeline code to new mu4e-modeline.el, and update
mu4e-context and mu4e-headers to use it.
2023-01-07 15:40:30 +02:00
Dirk-Jan C. Binnema da02a954fa mu4e: avoid some compiler warnings 2023-01-04 23:06:07 +02:00
Stephen Eglen 182a26f664
Update mu4e.texi
Suggestion to mention how to change contexts manually.
2023-01-04 12:57:45 +00:00
Dirk-Jan C. Binnema b1b11eb0cb
Merge pull request #2395 from bjcohen/bjcohen/fix-split-view-single-window-nil
mu4e-view: don't delete window on view msg in single-window mode
2023-01-04 00:26:50 +02:00
Dirk-Jan C. Binnema c2d5ded634 mu4e: rebuild elc if any el changes
Avoid outdated elcs.
2023-01-04 00:19:47 +02:00
Dirk-Jan C. Binnema 4b78449b62 mu4e: use define-obsolete-variable-alias 2023-01-03 23:18:44 +02:00
Dirk-Jan C. Binnema 8137443b53 mu4e.el: load mu4e-obsolete as the very first. 2023-01-03 23:10:55 +02:00
Dirk-Jan C. Binnema 675f5a7f93 mu4e: improve elc compilation build-target
--directory comes first
2023-01-03 23:08:49 +02:00
Dirk-Jan C. Binnema 9f1e626ef7 mu4e: move some more variables from headers->search
We were incomplete.
2023-01-03 23:08:17 +02:00
Ben Cohen bade0d52fb mu4e-view: don't delete window on view msg in single-window mode 2023-01-02 16:29:36 -05:00
Dirk-Jan C. Binnema b9841942d8 mu4e: build: don't depend on mu4e-obsolete for building 2023-01-02 17:45:39 +02:00
Dirk-Jan C. Binnema 953bd95246 mu4e: improve interactive check for baseline reset 2023-01-01 15:01:21 +02:00
Dirk-Jan C. Binnema 7073d2af85 mu4e: update documentation 2023-01-01 15:01:08 +02:00
Dirk-Jan C. Binnema ba5026e7dc mu4e: support showing 'baseline' query-results
Add the concept of a query results baseline, i.e., the result for
bookmark-queries at some particular point in time. Later, we can compare
the results with the then-current query-results.

Show the delta in the main view. Add mu4e-reset-baseline-query-results
to reset the baseline to 'now'. By default, we automatically reset when
explicitly (interactively) going to the main-view, i.e., M-x mu4e.
2023-01-01 15:01:08 +02:00
Dirk-Jan C. Binnema b7b97212ce mu4e: move search functionality to mu4e-search
Move out of mu4e-headers; rename variables and callers.
2023-01-01 15:01:08 +02:00
Dirk-Jan C. Binnema 7fa8fe9165 mu4e: whitespace updates 2023-01-01 15:01:08 +02:00
Dirk-Jan C. Binnema e435692bb2 mu4e-main: refactor bookmark/maildir menu creation
There was quite a bit of duplicate code, refactor it to reduce.
2022-12-30 23:30:45 +02:00
Dirk-Jan C. Binnema 3e3aeead9b Revert "Add support for empty and string maildir shortcuts"
This reverts commit be695579c6.

The change didn't look very nice (keynames are not aligned etc.), and in
hindsight we should probably implement this slightly differently.
2022-12-30 16:19:19 +02:00
Dirk-Jan C. Binnema 653bc9253f mu4e: update some versions in mu4e.texi 2022-12-29 12:04:45 +02:00
Dirk-Jan C. Binnema ba09b8fc2c mu4e.texi: add headers-mark customization example 2022-12-29 09:01:44 +02:00
Dirk-Jan C. Binnema 67db2ce092 mu4e-context: tweak minor mode 2022-12-29 09:01:44 +02:00
Dirk-Jan C. Binnema 9e1f0931f4 mu4e-main: fix byte-compiler warning 2022-12-29 08:43:42 +02:00
Dirk-Jan C. Binnema eb8160e8ed mu4e-main: restore mail-menu support for split-window mode 2022-12-29 00:23:32 +02:00
Dirk-Jan C. Binnema 15fadee730 mu4e-main: whitespace 2022-12-29 00:22:48 +02:00
Dirk-Jan C. Binnema 155d7be1d4 mu4e-view: "detach" headers view when quitting in single-window mode
Otherwise the headers view seems to get confused (thinking it is still
showing a message).
2022-12-28 20:59:20 +02:00
Dirk-Jan C. Binnema 56099998e4
Merge pull request #2292 from manufactory/master
More customizable maildir shortcuts
2022-12-28 10:55:57 +02:00
Dirk-Jan C. Binnema fe88890419 mu4e-view: update mu4e-view-fields
Remove obsolete fields; update docstring.
2022-12-24 15:28:46 +02:00
Dirk-Jan C. Binnema 1799c69451 mu4e-view: rename mu4e~view -> mu4e--view
Our long-running migration from mu4e~ -> mu4e-- takes another step.
2022-12-24 10:02:21 +02:00
Dirk-Jan C. Binnema 4bf85a769e mu4e-window: define display-buffer-full-frame if needed
display-buffer-full-frame was added only in emacs 29.x
2022-12-20 21:00:58 +02:00
Dirk-Jan C. Binnema 3568e6784a mu4e~view-in-headers-context: don't display buffer
Displaying the buffer doesn't look very nice in single-window mode.
2022-12-19 23:24:40 +02:00
Dirk-Jan C. Binnema fcda5dcc5f mu4e-view: Re-add mu4e-view-quit
Add special handling for single-window/other for view buffer quitting

Fixes #2386.
2022-12-19 23:00:49 +02:00
Mickey Petersen 8ea01241ca Change how *mu4e-main* is displayed and default to full frame 2022-12-17 15:13:17 +00:00
Dirk-Jan C. Binnema 926083458d
Merge pull request #2380 from mickeynp/bugfix/re-add-missing-argument
Re-add missing argument as `define-mail-user-agent' expects it
2022-12-16 18:57:04 +02:00
Dirk-Jan C. Binnema 371376a42b
Merge pull request #2378 from mickeynp/bugfix/fix-window-issues
Bugfix/fix window and buffer issues
2022-12-16 18:56:19 +02:00
Dirk-Jan C. Binnema 34815a1961 mu4e: use mu4e-view-rendered-hook
Instead of the older mu4e-after-view-message-hook; update version where
it go obsolete.
2022-12-15 11:52:50 +02:00
Dirk-Jan C. Binnema 83ed407dbc mu4e-view: use kill-buffer-and-window
...for the last remaining mu4e~view-quit-buffer.

Fixes issue #2381
2022-12-15 11:47:12 +02:00
Mickey Petersen 5a77065011 Do not create a mu4e buffer unless asked for 2022-12-15 07:41:23 +00:00
Mickey Petersen cb364bc0c5 Attempt to delete the window after composing a message 2022-12-15 07:41:23 +00:00
Mickey Petersen af35314231 Rename to _switch-action 2022-12-15 07:38:46 +00:00
Dirk-Jan C. Binnema e85445b787 mu4e: update documentation
Where need, use ~mu4e-view-rendered-hook~, and warn users.
2022-12-15 00:05:26 +02:00
Dirk-Jan C. Binnema 56d8f4cd25 mu4e: rename mu4e-after-view-message-hook into mu4e-view-rendered-hook
For consistency.
2022-12-15 00:05:26 +02:00
Dirk-Jan C. Binnema 00d3e9208d mu4e-view: whitespace fixes 2022-12-15 00:05:11 +02:00
Dirk-Jan C. Binnema 3f0b22396d
Merge pull request #2379 from tsdh/bug-reference
bug-reference: Add clarifying comment / checked-headers as variable
2022-12-14 22:53:20 +02:00
Dirk-Jan C. Binnema 2988a1dc32 mu4e.texi: update display section
Update for the updated display handling
2022-12-14 22:44:11 +02:00
Dirk-Jan C. Binnema 368ea2f568 mu4e-window: mention mu4e-split-view cannot be a function
mu4e-split-view can no longer be a function; update the documentation.
2022-12-14 22:38:35 +02:00
Dirk-Jan C. Binnema 6bcf665c85 mu4e-window: use mu4e-error
Instead of the error.
2022-12-14 22:37:56 +02:00
Mickey Petersen c3d962545d Re-add missing argument as `define-mail-user-agent' expects it 2022-12-14 20:00:42 +00:00
Tassilo Horn cbeed9ef28 bug-reference: Add clarifying comment / checked-headers as variable 2022-12-14 18:34:24 +01:00
Dirk-Jan C. Binnema fdbf912e06 mu4e-view: use kill-buffer-and-window for quitting
That restores the classic mu4e style. I.e.,

With default settings, e.g.

    case 1: - (1)go to inbox -> (2)see headers -> (3)open message ->
    window splits -> (4)read message -> (5)'q' . Window closes and we're
    back to (2). All good!

The more complicated step is

    case 2: (4) read message -> (5) reply to message -> (6) done
    replying -> back to (4) but for some reason when pressing 'q' now,
    the window is not closed, but replaced by the headers window (so we
    have 2 now. [ I think it should behave just like in case 1 ]

This fixes that.
2022-12-13 23:50:38 +02:00
Dirk-Jan C. Binnema 9ae567f5f5 mu4e-view: whitespace cleanup 2022-12-13 23:49:57 +02:00
Dirk-Jan C. Binnema 98fcf0192c mu4e-window: avoid some byte-compiler-warnings 2022-12-13 09:42:13 +02:00
Dirk-Jan C. Binnema 7d9a9d8a7c mu4e-main: make main-window full-screen again
Make the main-window fullscreen again, as before.
2022-12-13 09:36:42 +02:00
Dirk-Jan C. Binnema de8b4f0e32 mu4e-main: whitespace updates 2022-12-13 09:36:16 +02:00
Dirk-Jan C. Binnema f7fe4fea21 mu4e-window: disable functionp mu4e-split-window for now
Set it to 'horizontal. It didn't quite work with the new window handling
code, such that mu4e was not functional. So let's restore the basics at
least.
2022-12-13 00:58:54 +02:00
Dirk-Jan C. Binnema bdb494135d
Merge pull request #2377 from mickeynp/bugfix/preserve-view-window
Preserve `mu4e~headers-view-win' when a search is (re-)executed
2022-12-12 23:50:16 +02:00
Mickey Petersen 0b99dd5c8c Preserve `mu4e~headers-view-win' when a search is (re-)executed 2022-12-12 18:57:57 +00:00
Mark Knoop 6a7d48c854 Add variable for initial input to maildir selection
"/" was hardcoded as initial input to `mu4e-completing-read-function'
when selecting 'other' maildirs. This can now be set by the user.
2022-12-12 18:15:15 +00:00
Dirk-Jan C. Binnema a4698db84e mu4e.texi: update documentation
Use the new toggles.
2022-12-11 15:25:11 +02:00
Dirk-Jan C. Binnema f46fe4ee69 mu4e-headers: show number of hidden messages in footer 2022-12-11 14:38:40 +02:00
Dirk-Jan C. Binnema f4923c6f2a mu4e-headers: make hide-predicate togglable
Like the other search properties.
2022-12-11 14:09:26 +02:00
Dirk-Jan C. Binnema 5a3d7e9c56 mu4e-headers: add mu4e-headers-toggle-property, remove obsolete
And add the 'P' one for mu4e-headers-toggle-property
2022-12-11 14:09:26 +02:00
Dirk-Jan C. Binnema e453f20ade mu4e-helpers: allow passing key to mu4e-read-option
Can be useful for non-interactive use.
2022-12-11 14:09:26 +02:00
Dirk-Jan C. Binnema b8861cdbfe mu4e-helpers: fix whitespace
Follow .dir-locals.
2022-12-11 13:59:26 +02:00
Dirk-Jan C. Binnema 2dca07612c mu4e-obsolete: make mu4e-headers-toggle-* obsolete
... for the new mu4e-headers-toggle-property
2022-12-11 13:56:12 +02:00
Dirk-Jan C. Binnema f0e973f8c5 mu4e-obsolete: whitespace fixes 2022-12-11 13:55:38 +02:00
Dirk-Jan C. Binnema 85f60647b9 mu4e-view: bind 'P' to mu4e-headers-toggle-property
And remove the obsolete older mu4e-headers-toggle-*.
2022-12-11 13:54:57 +02:00
Dirk-Jan C. Binnema ff9fc73e5a mu4e-view: whitespace/newline fixes 2022-12-11 13:31:13 +02:00
Dirk-Jan C. Binnema 6278d1f18a mu4e-headers: whitespace/newline cleanups 2022-12-11 12:42:48 +02:00
Marcel van der Boom 65f9fbf0ba Fix empty 'To:' header on reply to icalendar invitation
On reply to an ical invitation the To: header stayed empty, this fixes that.

The 'Reply-To' data is set if it is not there and if the emaill was different from the Organizer so
that the msg can be further treated by the draft construct functions.

This issue is briefly mentioned in issue #2305
2022-12-10 23:27:55 +02:00
Dirk-Jan C. Binnema a39d61bb58
Merge pull request #2372 from mickeynp/feature/improve-window-buffer-handling
Multiple buffer support and standardised window and buffer handling
2022-12-10 19:46:40 +02:00
Mickey Petersen 792ab4cd0d Remove comment and unnecessary form 2022-12-09 09:13:14 +00:00
Mickey Petersen 04903c568d Move defcustoms to mu4e-window.el 2022-12-09 09:01:18 +00:00
Dirk-Jan C. Binnema 51d555f947 mu4e-headers: appease byte-compiler 2022-12-08 23:20:03 +02:00
Dirk-Jan C. Binnema 9857d18b29 mu4e-headers: fallback to :subject for :thread-subject
If we're not showing threads, use the normal subject.

Fixes #2341.
2022-12-08 21:52:32 +02:00
Mickey Petersen d109e3d335 Documentation 2022-12-06 10:57:10 +00:00
Mickey Petersen 42add64683 Appease the byte compiler and clean up the code 2022-12-06 09:46:39 +00:00
Dirk-Jan C. Binnema c856c750f5 mu4e-headers: fix mu4e-headers-toggle-setting 2022-12-05 23:57:18 +02:00
Mickey Petersen 8ac172cd08 Resize headers window after displaying a message 2022-12-03 17:13:20 +00:00
Mickey Petersen d43c0030e3 Ensure the linked headers buffer state is not lost 2022-12-03 17:13:20 +00:00
Mickey Petersen d0ae875527 Ensure a uniquified buffer name is created if it does not exist 2022-12-03 17:13:20 +00:00
Mickey Petersen 8c3a71f884 Respect `mu4e-compose-in-new-frame' if non-nil 2022-12-03 17:13:20 +00:00
Mickey Petersen 32aefe508f Correct documentation 2022-12-03 17:13:20 +00:00
Mickey Petersen 37e8328975 mu4e-loading-mode is now a minor mode 2022-12-03 17:13:20 +00:00
Mickey Petersen 12bad5f810 Ensure mu4e-window is built properly 2022-12-03 17:13:20 +00:00
Mickey Petersen 55a7e21c4a
Merge branch 'djcb:master' into feature/improve-window-buffer-handling 2022-12-01 07:35:30 +00:00
Mickey Petersen 514b921813 Render with current buffer set to the view 2022-12-01 07:34:22 +00:00
Mickey Petersen 3b44ad9514 Ensure the windows belonging to the now-defunct view buffer are destroyed 2022-11-30 15:33:41 +00:00
Mickey Petersen d6c67a401d Check for detached view in the navigation context macro 2022-11-30 15:33:07 +00:00
Mickey Petersen 8d2b75219f Browing a view that has a header pointing elsewhere is legal 2022-11-30 15:32:45 +00:00
Mickey Petersen ef2c989e08 Clean up 2022-11-29 11:50:59 +00:00
Mickey Petersen 9ec925728f Style changes 2022-11-29 11:50:07 +00:00
Mickey Petersen 5f5d5ab11e Use `font-lock-ensure' 2022-11-29 11:49:06 +00:00
Mickey Petersen 69a17bfcb9 Multiple buffer support and standardised window and buffer handling 2022-11-29 11:33:07 +00:00
Sean Allred 93f3a2da35 Teach mu4e-copy-thing-at-point about SHR links
This allows one to copy the link behind a link-widget instead of using
RET to open it.
2022-11-28 04:54:18 -06:00
Sean Allred 3375a95f24 Whitespace fix
Allow aggressive-indent-mode to do its thing.
2022-11-28 04:53:53 -06:00
Dirk-Jan C. Binnema 50489fe6bb
Merge pull request #2356 from axeoman/fix-view-in-xwidget
mu4e: temporary reset browse-url-handlers in view in xwidget action
2022-11-19 18:36:49 +02:00
Dirk-Jan C. Binnema 02188ecbb5 mu4e: improve server comms with mu 2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema b0fad6d763 mu4e-update: no need to confirm killing buffer
Fixes issue #2362.
2022-11-14 22:19:31 +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 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 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 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
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
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 fafc7d3bf6 mu4e: include mu4e-obsolete.el
Fixes #2324.
2022-08-23 19:33:49 +03:00
Dirk-Jan C. Binnema 68753f9e84 mu4e: move all obsolete aliases to mu4e-obsolete
Unclutter the rest of the code a bit.
2022-08-20 14:24:24 +03:00
Dirk-Jan C. Binnema 4fc00ccf32 mu4e: remove obsolete org-mu4e.el
It's been dead for a long time.
2022-08-20 13:46:57 +03:00
Dirk-Jan C. Binnema 18bf2d995d mu4e: Add mu4e-header-field-face, avoid mu-header-key-face cycle
By default, mu4e-header-key-face inherits from message-header-name; this
leads to warnings when we later remap the latter to the former in
mu4e-compose.el.

We don't want to change the definition of mu4e-header-key-face (it's
used widely in mu4e); so we add a new face mu4e-header-field-face
for *just* mu4e-compose and which does not inherit.

Fixes #2321.
2022-08-20 13:29:04 +03:00
Dirk-Jan C. Binnema 48681b8cfb mu4e-server: make buffer invisible
Prepend a SPC to the name so it become "invisible".

Issue #2322.
2022-08-20 12:10:09 +03:00
Dirk-Jan C. Binnema 2ed905ef09 mu4e: update reference manual
Update the build instructions.
2022-08-20 11:58:30 +03:00
Dirk-Jan C. Binnema e416a5215f autotools: remove
Since 2008, autotools has served us well - thank you!

However, mu is now using meson build, and it's time to remove the
autotools support -- one build system is enough.
2022-08-20 11:19:29 +03:00
Dirk-Jan C. Binnema 3ba2c4ea08 mu4e-headers: do not nillify mu4e~view-message
In mu4e~headers-clear, do not set mu4e~view~message to nil; it may still
be in use.
2022-08-15 23:15:38 +03:00
Dirk-Jan C. Binnema 8a6da6a869 mu4e: be more precise about non-nil in server
As seen in #2310, we should test for non-nil for some parameters rather
then expect them to be literally nil or t.

Also update some docstrings.
2022-08-07 11:47:06 +03:00
Dirk-Jan C. Binnema a4b8471ba6 mu4e: fix mu4e-action-add-org-contact for new format
The sexp address format changed, but mu4e-action-add-org-contact wasn't.

Fixes #2306.
2022-07-28 07:29:31 +03:00
Dirk-Jan C. Binnema ad7f5cac92 mu4e-message: avoid mu4e-message-at-point misfiring
Belt-and-suspenders fix for already-fixes issue #2299.
2022-07-17 13:57:28 +03:00
Dirk-Jan C. Binnema f77f8f743e mu4e: load mu4e-view earlier
This avoids some setup/configuration problems for some people.

Fixes #2301
2022-07-17 13:53:34 +03:00
Dirk-Jan C. Binnema d62fc66104 mu4e-headers: clear view message when clearing headers
This avoids showing an old message when clicking an empty headers
buffer.

Fixes #2299.
2022-07-16 16:56:55 +03:00
Dirk-Jan C. Binnema 46476fc001 mu4e: add mu4e-copy-thing-at-point
Copy the thing (url or email) at point, similar to the feature in the
pre-gnus view. Bind to 'c' in the message-view.
2022-07-13 23:35:16 +03:00
Dirk-Jan C. Binnema 39d7096bba mu4e-main: rewrite mu4e--main-menu
The old one had bit-rotted quite a bit.

Fixes #2296.
2022-07-07 00:52:32 +03:00
Dirk-Jan C. Binnema 4a3069a5b5 mu4e-helpers: fix mu4e-is-mode-or-derived-p 2022-07-05 00:11:34 +03:00
Dirk-Jan C. Binnema dc44165ada mu4e-message: remove dead alias
Fixes #2293
2022-07-05 00:06:53 +03:00
Manuel Wiesinger be695579c6 Add support for empty and string maildir shortcuts 2022-07-04 12:54:13 +02:00
Manuel Wiesinger f16f4b5e3c Add optional name for maildir shortcuts 2022-07-04 11:46:39 +02:00
Dirk-Jan C. Binnema 8f1d83e4b2 build: add 'lispdir' option
Add lispdir option for installing mu4e in a custom directory, which what
some pre-meson users tended to do with --lispdir.

Passing '-Dlispdir=/tmp/foo/bar' causes the mu4e files to be installed
in /tmp/foo/bar/mu4e.

Should help for issue #2287.
2022-07-02 12:18:51 +03:00
Dirk-Jan C. Binnema 5e3e2cf28e build: use install-info when installing mu4e/guile
So the docs can be found.
2022-07-01 08:31:00 +03:00
Dirk-Jan C. Binnema 99eb3bb674 mu4e-compose: handle message-cite-reply-position later
Can't really repro the problem. Perhaps I don't have hidden heders?
Anyway, can't hurt to move it after that.

Fixes #2283.
2022-07-01 08:31:00 +03:00
Dirk-Jan C. Binnema d139be3df6 mu4e.texi: minor improvements 2022-06-30 21:30:27 +03:00
Dirk-Jan C. Binnema 6cb38c8125 mu4e: include version.texi.in for doc generation
We use it for the mu4e ref docs.
2022-06-29 08:00:43 +03:00
Dirk-Jan C. Binnema c1793e0f6b mu4e: generate version.texi in meson build
So docs get the right version
2022-06-29 07:53:27 +03:00
Dirk-Jan C. Binnema 9f3c80f4dd headers: reduced 'related' face priority
Don't use the 'related' face for messages which are *also* unread etc.
2022-06-26 11:25:11 +03:00
Dirk-Jan C. Binnema b43ac49bdf mu4e.texi: remove duplicate iCalendar note
One is enough
2022-06-18 15:25:45 +03:00
Dirk-Jan C. Binnema 5e63b8bed3 mu4e-draft: better sender in list-reply dialog
Don't show the raw lisp object.
2022-06-16 22:48:37 +03:00
Dirk-Jan C. Binnema ff8e0455dc mu4e-compose/compose-mail: add brackets for in-reply-to
Seems in some contexts we get them _without_ brackets in other-headers; so let's
fix that up.

Fixes #2273.
2022-06-14 23:48:43 +03:00
Dirk-Jan C. Binnema 1a84a57e05 mu4e-headers: implement mu4e-headers-toggle-setting
Make it easier to toggle various header-view settings and display them in the mode-line.
2022-06-11 12:07:50 +03:00
Dirk-Jan C. Binnema 65d2005422 mu4e-update: fix typo 2022-06-10 23:28:43 +03:00
Dirk-Jan C. Binnema 3aaf29303e mu4e-headers: add calendar mark 2022-06-10 23:28:43 +03:00
Dirk-Jan C. Binnema 7b83605019 mu4e-view: fix naming of temp files 2022-06-07 23:06:33 +03:00
Dirk-Jan C. Binnema f16224c33a mu4e: don't loop mu4e-update-index when index is empty
Fixes: issue #2240.
2022-06-05 12:08:35 +03:00
Dirk-Jan C. Binnema 63521300a3 mu4e: avoid some warnings in doc-generation 2022-06-02 21:04:30 +03:00
Dirk-Jan C. Binnema edce618d7d mu4e-server: add mu4e-kill-stale
Kill off any stale mu4e servers upon startup....

Should help for some corner cases like issue #2198.
2022-05-31 23:35:51 +03:00
Dirk-Jan C. Binnema 59022e066d mu4e: revamp emacs bookmark support
The support for emacs in bookmarks in mu4e-contrib has been broken for a while;
we removed it an now re-implement it as part of mu4e-proper.

Fixes: issue #2255.
2022-05-29 12:31:39 +03:00
Dirk-Jan C. Binnema 8720310679 mu4e-contrib: remove bookmark support, cleanup a bit
Bookmark support was broken (and has been for a while). Remove it.
2022-05-29 12:28:42 +03:00
Dirk-Jan C. Binnema cf0f72e4a4 mu4e: use mu4e-config instead of mu4e-meta
All these changes to avoid:

,----
| mu4e/meson.build:92: WARNING: Source item '/home/djcb/Sources/mu/build/mu4e/mu4e-meta.el' cannot be converted to File object, because it is a generated file. This will become a hard error in the future
`----

This is because we want to byte-compile a file we just before generated using
configure_file. This does not seem like a crazy thing, but meson threatens with
breaking the build at some point in the future.

So instead, we decide _not_ to compile this (very boring) file. But, users may
still have an older mu4e-meta.elc lying around, leading to confusion.

So, let's rename that file and we're golden.
2022-05-29 11:10:58 +03:00
Dirk-Jan C. Binnema b1ff292bbb mu: support MUHOME environment variable 2022-05-29 11:10:46 +03:00
Dirk-Jan C. Binnema 926b49220e mu4e-message: remove dead code 2022-05-29 00:17:41 +03:00
Christophe Troestler c8fcf4eccf Make mu4e-message-contact-field-matches accept a list of fields
Fixes https://github.com/djcb/mu/issues/2265
2022-05-28 20:08:05 +02:00
Dirk-Jan C. Binnema a1f0c5e9eb mu4e: fix emacs-29 bytecompiler warnings
Wrong single quotes.
2022-05-28 00:51:08 +03:00
Dirk-Jan C. Binnema a1461a47f3
Merge pull request #2262 from progfolio/fix/org-link
mu4e-org-store-link: prevent error when no message at point
2022-05-28 00:23:29 +03:00
Nicholas Vollmer f82d5e62b7 mu4e-org-store-link: prevent error when no message at point
The error can cause org-store-link to short circuit before it should.
2022-05-24 17:26:34 -04:00
Dirk-Jan C. Binnema 15abda26e7 mu4e.texi: update documentation 2022-05-23 23:55:41 +03:00
Dirk-Jan C. Binnema aea2f58c77 mu4e: add command mu4e-sexp-at-point
Add command ~mu4e-sexp-at-point~ for showing/hiding the s-expression for the
message-at-point. Useful for development / debugging. Bound to ~,~ in headers and
view mode.
2022-05-14 20:45:33 +03:00
Christophe Troestler 3caa22596b Reintroduce mu4e-headers-from-or-to-prefix to customize the prefix 2022-05-14 10:53:27 +02:00
Dirk-Jan C. Binnema cdd0256664 mu4e: Show 'related' messages with mu4e-related-face
And tweak some of the modeline labels.
2022-05-12 08:56:13 +03:00
Dirk-Jan C. Binnema ccdc45c4fa mu4e: doc improvements, mu4e-compose-complete-max to nil 2022-05-12 08:56:13 +03:00
Tassilo Horn 34fe094561 Simplify mu4e-view-mode-map creation and fix `-` binding
`mu4e-view-mode-map` was initialized from a sparse keymap and eventually passed
to `suppress-keymap` in order to remove bindings to `self-insert-command` which
obviously make no sense in read-only buffers.  However, `suppress-keymap` also
remaps all digits and the minus sign to make prefix args, i.e., pressing 8
would be equal to `C-u 8` and `-` got bound to `negative-argument` instead of
`mu4e-view-mark-for-unflag` as defined.

While `suppress-keymap` has a `NODIGITS` arg to suppress the rebinding of
digits and minus sign (which would also mean that pressing a digit would try
inserting that digit and lead to an error), I chose the more straight-forward
solution and start from an empty rather than a sparse keymap and added the
`digit-argument` bindings for 0..9 explicitly.
2022-05-11 21:08:47 +02:00
Dirk-Jan C. Binnema db86e7b5ee mu4e: contacts: use mu4e--contacts-set
We use to have mu4e--contacts-hash, with name mapping to rank; that was
needlessly complicated since most completion engine sort alphabetically, making
the rank totally irrelevant (in practice, it doesn't matter much from the
end-user pov).

Anyway, simplify that part, maintain a set of contacts without any rank (which
what the server delivers now).

Also update the _default_ mu4e-contact-process-function to filter out anything
with 'reply' since it's not very useful for autocompletion.
2022-05-09 22:25:28 +03:00
Tassilo Horn 7ee53d69b8 Add support for flag:personal & fix mu4e-contacts-info 2022-05-09 10:43:11 +02:00
Kai von Fintel 5e36ce0274 Fixed typo in mu4e.texi 2022-05-08 08:53:49 -04:00
Thierry Volpiatto 94312b969c mu4e: fix mu4e~headers-flag-str 2022-05-08 15:09:53 +03:00
Dirk-Jan C. Binnema 5e4fc603d9 mu4e: headers: add personal/list header flags 2022-05-08 14:49:43 +03:00
Dirk-Jan C. Binnema c99f81ef4e mu4e-vars: remove some obsolete header-info
No longer meaningful after the migration to gnus-view.
2022-05-08 14:49:43 +03:00
Dirk-Jan C. Binnema 85ba1456bb mu4e: update reference documentation 2022-05-07 20:49:20 +03:00
Dirk-Jan C. Binnema 48311ea18d mu/mu4e: tweak :list vs :mailing list 2022-05-07 20:48:21 +03:00
Dirk-Jan C. Binnema 80c9ffae1e mu/mu4e: use :mailing-list as the mailing-list property
In queries you can use list: as before

This helps for issue #2246.
2022-05-07 16:10:52 +03:00
Dirk-Jan C. Binnema 36165520ac mu4e/headers: refresh some of the message flag marks 2022-05-07 16:10:52 +03:00
Dirk-Jan C. Binnema ca08443f05 headers: turn off fancy chars for now
Temporary fix.
2022-05-07 14:21:23 +03:00
Dirk-Jan C. Binnema f320c56c15 mu4e/headers: restoring mailing-list display 2022-05-07 10:11:46 +03:00
Dirk-Jan C. Binnema 9b88cec317
Merge pull request #2046 from nagy/list-buffers-directory
Assign `list-buffers-directory`
2022-05-07 09:33:31 +03:00
Dirk-Jan C. Binnema d79488efdc avoid warnings, update tests 2022-05-06 22:54:41 +03:00
Dirk-Jan C. Binnema ec500d3ed4 update documentation 2022-05-06 22:17:53 +03:00
Dirk-Jan C. Binnema 8844ddac23 mu4e: Update mu4e~headers-move
Fixes: #2339.
2022-05-06 22:17:53 +03:00
Dirk-Jan C. Binnema 836bfc9062 mu/mu4e: implement mu4e-compose-complete-max
Allow limiting number of contacts for auto-completion to a specific number;
defaulting to 2000.
2022-05-06 21:58:51 +03:00
Dirk-Jan C. Binnema 45aec819f6 mu4e: updates for core changes
Deal with (name . email) --> (:name "boo" :email "boo@example.com")
Add support for the new "changed" field.
2022-05-05 01:40:17 +03:00
Dirk-Jan C. Binnema b686c9da25
Merge pull request #2242 from tsdh/fn-valued-mu4e-view-open-program
Allow a function as mu4e-view-open-program
2022-04-30 10:35:46 +03:00
Dirk-Jan C. Binnema edd9f88922
Merge pull request #2241 from tsdh/list-id-completion-in-search
Add support for List-Id completion (list:<List-Id>)
2022-04-30 10:34:39 +03:00
Dirk-Jan C. Binnema 43c66aa827
Merge pull request #2235 from danielfleischer/update-ts
Last updated timestamp in main screen
2022-04-30 10:34:15 +03:00
Dirk-Jan C. Binnema c86d21657c
Merge pull request #2225 from PRESFIL/install-mu4e-about
meson: Install mu4e/mu4e-about.org
2022-04-30 10:33:19 +03:00
Tassilo Horn 0baa735f18 Allow a function as mu4e-view-open-program 2022-04-29 14:03:05 +02:00
Tassilo Horn 497dd16d7b Add support for List-Id completion (list:<List-Id>) 2022-04-29 10:27:52 +02:00
Daniel Fleischer eebb0eddd6 Last updated timestamp in the main screen
* mu4e/mu4e-main.el: showing last updated

based on the `:tstamp` of `mu4e-index-update-status` plist.
2022-04-18 19:06:54 +03:00
Dirk-Jan C. Binnema cc32257f1c mu4e: improve search/rendering benchmark
Include numbers for search from start to finish.
2022-04-16 16:20:38 +03:00
PRESFIL 5516422144
meson: Install mu4e/mu4e-about.org
`mu4e` expects this file when activating the [A]bout link in `mu4e-main`
view, but when building the `mu-git` package from the AUR, this file
did not appear in the resulting package.

Now this file is not lost.
2022-03-26 23:00:56 +03:00
Dirk-Jan C. Binnema 1fc0a6047f mu4e: ensure we check for a _local_ mu
Unless we explicitly use a local directory, the tramp package may cause emacs to
use a _remote_ one, which then fails, as mentioned in issue #2193.
2022-03-07 06:50:18 +02:00
Dirk-Jan C. Binnema 3b205dacff meson: remove some warnings and add one 2022-02-26 14:14:27 +02:00
Dirk-Jan C. Binnema f10a7560f7 build: fix some warnings 2022-02-21 23:51:46 +02:00
Dirk-Jan C. Binnema a0ec982789 mu4e/server: honor rename-move for view-message, too
It's technically a 'move', so apply user preference.
2022-02-13 14:33:12 +02:00
Dirk-Jan C. Binnema a66fd4dae4 mu4e-headers: warn earlier when message does not exist
check path before trying to show it.
2022-02-13 12:04:47 +02:00
Dirk-Jan C. Binnema 99993bea69 mu4e-headers: tweak mark-as-orphan option
Make 'first the default, and some whitespace fixes.
2022-02-06 10:44:47 +02:00
Dirk-Jan C. Binnema 769ad20c40
Merge pull request #2203 from mhcerri/mu4e-headers-thread-mark-as-orphan
mu4e-headers: Add mu4e-headers-thread-mark-as-orphan option
2022-02-06 10:41:28 +02:00
Dirk-Jan C. Binnema 6dafffd07a mu4e-server: tweak stopping the mu4e server
Stop listening for server output when we're shutting down.
2022-02-03 23:04:18 +02:00
Dirk-Jan C. Binnema cc3be78dc5 mu4e-main: use mu4e~headers-jump-to-maildir
Re-fix hasty earlier fix; and improve the code a bit.

HT: @tsdh.
2022-01-29 19:53:37 +02:00
Dirk-Jan C. Binnema b8e696000f mu4e-main: fix jump-to-maildir typo
Fixes: #2206
2022-01-29 15:55:51 +02:00
Dirk-Jan C. Binnema 20568cba70 mu4e-view: open tmp files read-only
When using the "open-in-emacs" handler, open the temp file as read-only. It's a
temp file, so editing isn't very useful.
2022-01-24 19:00:19 +02:00
Dirk-Jan C. Binnema de3c9a25e8 mu4e.texi: improve mu4e-mailing-list-patterns example 2022-01-23 14:27:00 +02:00
Dirk-Jan C. Binnema a4707afe12 mu4e: cleanups and flycheck fixes
- Remove some unused faces
- Fix some flycheck warnings
- Replace some `cl-` functions with `pcase` and `seq`
2022-01-23 14:27:00 +02:00
Marcelo Henrique Cerri 74437b6374 mu4e-headers: Add mu4e-headers-thread-mark-as-orphan option
To mark only the first message in the thread as orphan, allowing to
replicate the thread structure used by mutt and other clients.
2022-01-19 16:59:38 -03:00
Dirk-Jan C. Binnema a6b996d00e search: restore jump-to-message
Fixes: #2169.
2022-01-18 17:00:01 +02:00
Dirk-Jan C. Binnema e5ead56b2a mu4e-view: fix flycheck warnings
Let's make things clean.
2022-01-15 12:00:27 +02:00
Dirk-Jan C. Binnema a4e5e3adf5 mu4e: attempt to delete loading window upon mu4e-error
When there's a mu4e-error, opportunistically delete the 'Loading..' window.
2022-01-15 10:44:03 +02:00
Dirk-Jan C. Binnema 904214ba17 mu4e-view: double-check message file exists
So we can warn user early.
2022-01-15 10:20:32 +02:00
Dirk-Jan C. Binnema b072b4a57e mu4e-view: Add defcustom mu4e-view-open-program
When xdg-open is not enough.
2022-01-12 22:32:21 +02:00
Dirk-Jan C. Binnema 324b6f5022 mu4e-view: experiment xwidget support
Add experimental support for displaying html messages in an xwidget; this
doesn't work for all messages.
2022-01-10 22:07:06 +02:00
Dirk-Jan C. Binnema 42d5cde612 mu4e-view: catch epg error
Give a bit more user-feedback when e.g. EPG fails to decrypt a message.
2022-01-09 14:08:24 +02:00
Dirk-Jan C. Binnema bbf55256e5 mu4e-view: add massage toggle for text filling
For some mis-rendered messages, it can be useful to toggle filling, so add this
as an massage ('M') option.
2021-12-25 11:01:33 +02:00
Dirk-Jan C. Binnema 8704101afc mu4e-folders: fix typo in docstring 2021-12-19 23:15:42 +02:00
Dirk-Jan C. Binnema 8dcdd0a815 mu4e-view: add toggle to show all mime-parts
Add a toggle to show (links for) all top-level MIME-parts, so you can e.g.
perform actions on 'inline' images.
2021-12-19 23:15:42 +02:00
Tassilo Horn c14ffa2918 Add eldoc support in headers views
When using a side-by-side split layout, i.e., headers left of message view, it
easily can happen that parts of the headers (like a longer subject) are not
visible without horizontal scrolling.  So eldoc to the rescue, which can echo a
customizable message (see `mu4e-headers-eldoc-format`) containing stuff like
subject, from, to, date, etc. in the echo area.
2021-12-15 21:21:41 +01:00
Daniel Nagy e1022fe9b1
Assign `list-buffers-directory` to search query
for mu4e-header buffers, this displays the search query in
`M-x list-buffers` instead of showing an empty path column.
2021-12-02 11:17:53 +01:00
Yuri D'Elia 86f88299e7 Ignore existing compiled files when byte-compiling
Set load-prefer-newer to avoid loading old byte-compiled files when
rebuilding an existing tree.
2021-11-13 14:35:07 +01:00
Dirk-Jan C. Binnema 113a831641 mu4e: add (from|to)nameoraddress properties for links
I.e. use name but fall back to address if there's no name.
2021-11-12 23:05:08 +02:00
Dirk-Jan C. Binnema ef25637128 mu4e: use 'checked' instead of 'processed'
Update to the new name.
2021-11-10 22:32:28 +02:00
Dirk-Jan C. Binnema dd3efb0b8b mu4e: update mu4e-compose-context-switch
Update mu4e-compose-context-switch:
1) attempt to update the message signature as well
2) remove the (no longer working) code to try to move the underlying file (which
   was a bit too fragile) (see issue: #2140)
2021-11-10 22:32:28 +02:00
Dirk-Jan C. Binnema 0cbd18e7a5 mu4e: server: improve docstrings 2021-11-10 22:31:58 +02:00
Dirk-Jan C. Binnema 67b16acbb2 mu4e: support message-user-organization
Automatically include Organziation: if set and update when changing the context.

Fixes: issue #2112.
2021-11-07 12:50:16 +02:00
Dirk-Jan C. Binnema 90a748aba1 mu4e-compose: make undo work across compose saves
Hide the header-separator change from the user-visible undo.
2021-11-07 11:47:29 +02:00
Dirk-Jan C. Binnema 5e55ef7c79 mu4e: finalize mu4e-query-rewrite-function migration
There was one left.
2021-10-31 13:02:11 +02:00
Dirk-Jan C. Binnema aebec9714b mu4e-headers: save-excursion when updating message
Otherwise, the updated header may end up in the wrong buffer.

Fixes: #2172.
2021-10-31 11:42:50 +02:00
Dirk-Jan C. Binnema 6005cf1b6c mu4e: Update mu4e() docstring
Typos.
2021-10-31 11:27:55 +02:00
Dirk-Jan C. Binnema 5d155841a6 mu4e: Use mu4e-query-rewrite-function
The (new) mu4e-search-query-rewrite-function is a bit too long, let's keep the
old one.
2021-10-31 11:26:58 +02:00
Dirk-Jan C. Binnema 892b9ce1fa mu4e: add note about restarting to mu4e-mu-home 2021-10-30 15:46:03 +03:00
Dirk-Jan C. Binnema 81133c4022 mu4e: Fix typo 2021-10-28 09:16:44 +03:00
Yaman Qalieh f1570dafd4 Add contact completion in search 2021-10-27 14:47:08 -04:00
Dirk-Jan C. Binnema bd40ffa718 mu4e-headers: fix updated check (for auto-update)
The check for # of updated messages was wrong; fix it.

Fixes: #2163.
2021-10-26 14:13:34 +03:00
Dirk-Jan C. Binnema 0303f5d931 mu4e: compose/draft: remove some mostly obsolete things
Avoid some compiler warnings.
2021-10-22 08:33:51 +03:00
Dirk-Jan C. Binnema c63acd14a4 mu4e: meson hack to appease emacs native compilation
It doesn't really support srcdir != builddir, so copy the sources to the
builddir and all are happy.
2021-10-22 08:33:51 +03:00
Dirk-Jan C. Binnema 8ad5fd49c9 mu4e: support batched query results
Support the new batched query results from the mu server; these are much faster
to render (2-3x it seems).

Rearrange the code a bit to avoid byte-compiler warnings.

Obsolete mu4e-header-func, to be replaced by mu4e-headers-append-func.
2021-10-22 08:33:51 +03:00
Dirk-Jan C. Binnema f3e3cc9ca2 mu4e: always run mu4e-index-updated-hook after index
Fire mu4e-index-updated-hook after any index operations, where anything changed
or not. Add a new variable `mu4e-index-update-status' which can be used to see
what changed (if anything) in the last indexing operation.

Keep mu4e-message-changed-hook in place; it only fires when a message
changed (and when it is update).

Remove the long-obsolete `mu4e-msg-changed-hook'.
2021-10-22 08:33:51 +03:00
Tassilo Horn aa59f9ce08 Re-enable maildir completion in search query
This has been commented out in 3cd127d8a for no apparent reason.
2021-10-21 22:13:10 +02:00
Dirk-Jan C. Binnema 701ca75536 mu4e/server: split message / metadata
Split message and metadata, so we can use pristine (possibly pre-cached)
messages. Update dependencies.
2021-10-20 22:41:48 +03:00
Dirk-Jan C. Binnema 7156ff7fac mu4e: fix some compiler warnings 2021-10-18 21:52:37 +03:00
Dirk-Jan C. Binnema 4a0490acbf
Merge pull request #2152 from progfolio/fix/osbolete-fn
mu4e-search-edit: Fix obsolete alias; update documentation
2021-10-13 14:47:48 +03:00
Dirk-Jan C. Binnema 5db8fdc49d mu4e: Do not defvar abbrev tables
I'm not quite sure why it was done in the first place, and it seems to have
unwanted side-effects. So let's turn it off and see if anything breaks.

Fixes: #2146.
2021-10-06 08:11:30 +03:00
Nicholas Vollmer baae737674 mu4e-search-edit: Fix obsolete alias; update documentation
Replace obsolete variable alias with obsolete function alias for mu4e-headers-search-edit.
Update docstring for mu4e-view-search-edit to reference the new function.
2021-10-03 10:33:49 -04:00
Thierry Volpiatto a6207d6d08
Reset `gnus-article-buffer` in mu4e-view
This is needed when gnus is used along mu4e for other purpose like
reading News, in this case gnus rename `gnus-article-buffer` and we
end up with an unrelated buffer-name in mu4e.
2021-09-30 16:56:46 +02:00
Dirk-Jan C. Binnema 4dc15334a6 mu4e-compose: fix some overly long lines 2021-09-30 15:41:38 +03:00
Dirk-Jan C. Binnema a8ddc1728d
Merge pull request #2147 from tsdh/mu4e--update-buffer-fix
Fix refs to mu4e~update-buffer which has been renamed to mu4e--update-buffer
2021-09-30 15:39:17 +03:00
Dirk-Jan C. Binnema 4ecb59aed5
Merge pull request #2142 from tsdh/function-valued-mu4e-split-view
Allow a function as mu4e-split-view value
2021-09-30 15:38:43 +03:00
Dirk-Jan C. Binnema 3e27a613be
Merge pull request #2137 from thierryvolpiatto/fix_mu4e_get_view_buffer
Fix `mu4e-get-view-buffer` (#2132)
2021-09-30 15:35:22 +03:00
Dirk-Jan C. Binnema 6f3c085490
Merge pull request #2129 from Chris00/master
mu4e-headers: Avoid the obsolete command warning
2021-09-30 15:34:27 +03:00
Tassilo Horn 1bf3054167 Fix refs to mu4e~update-buffer which has been renamed to mu4e--update-buffer 2021-09-29 21:21:35 +02:00
Tassilo Horn f7985103e0 Allow a function as mu4e-split-view value
This allows to have a function returning a window as value of
`mu4e-split-view`.  I'm using this patch since quite some time locally with the
following function.

```el
(defun th/mu4e-split-view ()
  (let* ((headers (mu4e-get-headers-buffer))
         (headers-win (and headers (get-buffer-window headers)))
         (view (mu4e-get-view-buffer))
         (view-win (and view (get-buffer-window view))))
    (cond
     ;; There's a view window, just use it.
     (view-win view-win)
     ;; Just one window, split sensibly, i.e., horizontally or
     ;; vertically depending on geometry.
     ((one-window-p) (split-window-sensibly))
     ;; Otherwise, use the tallest window.
     (t (car (sort (delq headers-win (window-list))
                   (lambda (a b)
                     (> (window-height a) (window-height b)))))))))

(setq mu4e-split-view #'th/mu4e-split-view)
```
2021-09-25 13:51:44 +02:00
Tassilo Horn 731c58df16 Fix declare-function statements referencing gone mu4e-utils 2021-09-25 10:23:20 +02:00
Thierry Volpiatto 20de2c8659
Fix `mu4e-get-view-buffer` (#2132)
It actually returns a buffer-name whereas it should return a buffer
object which make `mu4e~switch-back-to-mu4e-buffer` fail because
`buffer-live-p` expects a buffer object.
2021-09-23 07:43:14 +02:00
Christophe Troestler a12b44f3a3 mu4e-headers: Avoid the obsolete command warning 2021-09-08 09:24:14 +02:00
Christophe Troestler 76e0a79d87 mu4e-list: fix typo 2021-09-07 11:54:04 +02:00
Dirk-Jan C. Binnema f7e0bce67d mu4e.texi: remove docs on old message view 2021-09-05 10:57:41 +03:00
Dirk-Jan C. Binnema 964ab0e2c7 build: Extend makefile targets
Add a target for build mu4e-docs, add CSS file for that, too.
2021-09-04 10:41:07 +03:00
Dirk-Jan C. Binnema 5303b8cdc8 mu4e.texi: improve regexp example 2021-09-04 08:42:18 +03:00
Dirk-Jan C. Binnema ecea966169 mu int: improve docs for regexp addresses 2021-09-04 08:34:17 +03:00
Dirk-Jan C. Binnema 1c076e6c43 mu4e.texi: Add regexp --my-address example 2021-09-04 08:25:29 +03:00
Dirk-Jan C. Binnema a53ca7da5e mu4e.texi: Update build instructions
Update the meson instructions.
2021-09-01 23:25:45 +03:00
Dirk-Jan C. Binnema 3a39eff1df mu4e-(actions|control|org|update).el: tidy up
Fix flycheck warnings, and use '--' instead of '~' for private
variables/functions.
2021-08-31 08:46:27 +03:00
Dirk-Jan C. Binnema 162f5896ae mu4e-view: port of save-attachment fix
Port of #b349b24 (courtesy of danielfleischer) to not fail to detect attachments
in certain messages.
2021-08-30 18:35:35 +03:00
Dirk-Jan C. Binnema 128bc731a6 mu4e: avoid some compiler warnings in search, contacts 2021-08-30 18:28:52 +03:00
Dirk-Jan C. Binnema 9b02d56c05 build: build mu4e-{contacts,search}.el(c) too
Fixes: #2119
2021-08-30 18:27:04 +03:00
Dirk-Jan C. Binnema ab5d306c85 mu4e/mu4e.el: add mu4e--default-handler
It was missing.
2021-08-30 14:47:45 +03:00
Dirk-Jan C. Binnema f797acca6b mu4e-headers: support mailings lists
Need to require mu4e-lists.
2021-08-30 08:39:25 +03:00
Dirk-Jan C. Binnema dc14f93c06 mu4e: remove mu4e-utils
No longer needed; remove all traces.
2021-08-30 08:36:41 +03:00
Dirk-Jan C. Binnema 7ee30ed543 mu4e/search: use mu4e-search
mu4e-headers-search is gone
2021-08-30 08:19:45 +03:00
Dirk-Jan C. Binnema 42f2e73025 mu4e-view: remove overlays when erasing
erase-buffer is not enough (you'd see '[1][2]' etc. in the buffer beginning)
2021-08-29 21:40:42 +03:00
Dirk-Jan C. Binnema a6514fd683 mu4e-server: rename from mu4e-proc
Rename mu4e-proc.el into mu4e-server.el

Rename mu4e~proc... into mu4e--server...

Update users, too.
2021-08-29 21:40:42 +03:00
Dirk-Jan C. Binnema 6ea39f886c build: update for changed mu4e files 2021-08-29 21:40:42 +03:00
Dirk-Jan C. Binnema 9157d9102d mu4e-utils: refactor into mu4e-helpers, separate files
Usurp more of the utils code than can be re-used without further dependencies in
helpers.

Split off specific parts in their own file.

After the helper/utils changes, update the rest of mu4e to take the changes into
account.
2021-08-29 21:40:42 +03:00
Dirk-Jan C. Binnema e6be09e626 mu4e-view: remove old view
Remove the pre-Gnus view, and remove the infrastructure to handle both the new
and old views.
2021-08-29 20:30:29 +03:00
Dirk-Jan C. Binnema 411b95acd7 vars: refactor variables
Remove some variables from mu4e-vars, and move them to where they are used.

Move some more items to mu4e-helpers.
2021-08-29 20:30:29 +03:00
Dirk-Jan C. Binnema 3cd127d8ae mu4e-search: split off search functionality in minor-mode
Split off the search functionality from mu4e-headers.el into a new
mu4e-search.el.

Clean up things a bit and create a minor mode in which to add the keybindings.

Enable this in main/headers/view.
2021-08-29 20:30:29 +03:00
Dirk-Jan C. Binnema 035977a89a mu4e-context: make it a minor-mode
Add mu4e-context-minor-mode, for re-use in other parts of mu4e.

Update those parts + documentation.
2021-08-29 20:30:29 +03:00
Dirk-Jan C. Binnema bfd0618e58 mu4e-context: fix some flycheck warnings 2021-08-29 20:30:29 +03:00
Dirk-Jan C. Binnema d7055b7ed8 mu4e-helpers: split off from mu4e-utils
Create a new mu4e-helpers, which will usurp some of the parts mu4e-utils that do
not depend on other parts of mu4e.
2021-08-29 20:30:29 +03:00
Dirk-Jan C. Binnema 975604d3ee build: make meson the default build system
We still support autotools for now, but it is no longer the default.
2021-08-28 11:25:05 +03:00
Dirk-Jan C. Binnema faed25f2e5 view-gnus: Add S-SPC to scroll-down binding
The manual promises it's there.

Fixes: #2114.
2021-08-26 22:02:41 +03:00
Dirk-Jan C. Binnema e6bfdda2fe mu4e-headers: restore mark after update
Works-around, fixes: #2076.
2021-08-25 22:57:12 +03:00
Jakub Darul 167bb83d22
fix: mu4e-view-save-attachments void variable
This `_` looks like typo (correct me if I'm mistaken).
`_arg` instead of `arg` here caused `Symbol’s value as variable is void: arg`.
2021-08-25 15:00:15 +02:00
Dirk-Jan C. Binnema 372726cb9e
Merge branch 'master' into fix_dups_when_saving_attachments 2021-08-21 16:16:58 +03:00
Dirk-Jan C. Binnema b62f70f9d0 mu4e-compose: regenerate Date: when user removes it
However, we do not update the date if user does not do so.
2021-08-19 10:56:56 +03:00
Thierry Volpiatto 7929b9a852
Use and instead of progn and fix some long lines 2021-08-17 16:11:21 +02:00
Thierry Volpiatto 58cff913fe
Create numbered backup of attached file when already exists #2090 2021-08-16 13:29:07 +02:00
Dirk-Jan C. Binnema e6e2568178 mu4e-view-gnus: Fix some flycheck warnings (doc)
Update docstring to please flycheck.
2021-08-16 09:05:37 +03:00
Dirk-Jan C. Binnema 2c99cb3374 mu4e: toggle-html: use if-let/seq-find
Slightly update the algo.
2021-08-15 20:53:52 +03:00
Étienne Deparis 1f98060ef3 mu4e: Add back the `h' keybinding to toggle HTML view in a gnus article
Fixes: https://github.com/djcb/mu/issues/2013
2021-08-14 17:42:25 +02:00
Dirk-Jan C. Binnema 17ae356e35 mu4e: Fix up documentation
And remove some unncessary message
2021-08-12 20:34:26 +03:00
Dirk-Jan C. Binnema 6537de1116 mu4e: better feedback for lazy indexing
Add `mu4e-update-index-nonlazy`, point users towards it.
2021-08-12 13:08:52 +03:00
Dirk-Jan C. Binnema c29368af93
Merge pull request #2081 from danielfleischer/link-description
Customize the mu4e org link description
2021-08-09 07:58:31 +03:00
Dirk-Jan C. Binnema aa75487ae6 mu4e-view: Enable mu4e-action-view-in-browser by default
It's useful enough to enable by default.
2021-08-08 18:18:40 +03:00
Daniel Fleischer f6230467dc Customize the mu4e org link description
There's a default function that extracts the subject but users can
define their own function. Feature existed in @1.4.15.
2021-08-08 17:43:42 +03:00