Commit Graph

2330 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 3756938b82
Merge pull request #2488 from RuijieYu/fix-docstring-mu4e-personal-address-p
Updates to mu4e-contacts.el
2023-05-10 19:07:04 +03:00
Dirk-Jan C. Binnema fbb68b80ee mu4e: add actions for archive-url in view/headers 2023-05-10 18:52:15 +03:00
Dirk-Jan C. Binnema d07247b2dd mu4e: add function to get archive-url for mailing list
This is a bit simplified version of the one in mu4e-list-archives.el.
2023-05-10 18:52:15 +03:00
Dirk-Jan C. Binnema 624458caa4 mu4e: add mu4e-fetch-field 2023-05-10 18:52:15 +03:00
Dirk-Jan C. Binnema 0e26634c56 mu4e: remove mu4e-list-archives.el for now
We don't need it (yet)
2023-05-10 18:48:15 +03:00
Ruijie Yu 1ed1e486d4 Updates to mu4e-contacts.el
* mu4e/mu4e-contacts.el (mu4e-personal-address-p): Fix docstring
error (return nil *only if* the address does not match any of the
personal addresses, not the other way around).  Unwrap
unnecessary (if COND t nil) to just COND because its caller
`seq-find' only distinguishes between nil and non-nil.
(mu4e-personal-address): Add space in defun between name and args.
Ensure double space after a sentence ends.  Convert a duplicated
call of (mu4e-server-properties) into using when-let and reusing
its result.
2023-05-10 12:10:13 +08:00
Dirk-Jan C. Binnema 91fea8e16e Merge branch 'view-list-archives' 2023-05-07 11:42:46 +03:00
Dirk-Jan C. Binnema 581f8d7e92 mu4e-lists: doc updates 2023-05-06 09:53:56 +03:00
Dirk-Jan C. Binnema 8e724e73e9 mu4e-lists: remove some debugging
surgeon left some instruments in patient; let's remove.
2023-05-06 09:46:32 +03:00
Ruijie Yu 3018ceeb86 Add actions to browse online archive for a mailing list message
* mu4e/mu4e-headers.el (defcustom mu4e-header-actions): Convert
from defvar.  Add action for browsing online archive.
* mu4e/mu4e-view.el (defcustom mu4e-view-actions): Change use of
`seq-filter' to `delq'.  Add action for browsing online archive.
2023-05-05 23:10:21 +08:00
Ruijie Yu da41f5060d Add functionality for finding an online archive for a ML message
* mu4e/mu4e-lists.el (defgroup mu4e-lists): New group.

* mu4e/mu4e-list-archives.el: New file.
(defgroup mu4e-list-archives): New group.
(defcustom mu4e-list-archives-user-actions): New customizable
variable for locating online archive.
(mu4e-list-archives--get-recipients): New helper function for
getting all recipients of a mail.
(mu4e-list-archives-resolve-debbug): New function for resolving
archive url on debbug systems.
(mu4e-list-archives--resolve-namazu): New helper function for
resolving real archive url from namazu search page.
(defcustom mu4e-list-archives-resolve-namazu-search): New
customizable variable for disabling namazu resolution because it
incurs a url fetch.
(mu4e-list-archives-resolve-mailman-namazu): New function for
getting the namazu search url for mailman systems.  This is as
close as possible without fetching any url.
(defconst mu4e-list-archives-actions): New constant for builtin
supported mailing lists.
(mu4e-list-archives-resolve): New function to resolve the concrete
url to the mailing list archive.

* mu4e/mu4e-actions.el (mu4e-actions-browse-list-archive): New
command for browsing the online archive of a mailing list.
(mu4e-actions-kill-list-archive): New command for putting the url
to the online archive of a mailing list onto the kill ring.
2023-05-05 23:09:33 +08:00
Dirk-Jan C. Binnema 88ec2b86ce mu4e-lists: modernize
Remove some obsolete mailing lists form the "built-in" ones.

Make the mailing list blob plists, so we can more easily add new ones.

Update the handler functions for this.
2023-05-04 20:47:42 +03:00
Dirk-Jan C. Binnema ada6ff6260 mu4e/thread: only when available
Fixes #2479.
2023-05-04 01:13:29 +03:00
Dirk-Jan C. Binnema c01ea37abf mu4e/thread: don't eat next thread when folding
For #2478.
2023-05-04 01:13:29 +03:00
Dirk-Jan C. Binnema f02f1c282c mu4e-headers: mu4e~headers-move: consider folded headers
Ensure going backwards over folded headers works.
2023-04-30 12:38:16 +03:00
Dirk-Jan C. Binnema 2c69a6d84b mu4e: tweak threading for thread-end 2023-04-24 22:19:19 +03:00
Dirk-Jan C. Binnema 5290d64d66 mu4e-headers: make mu4e~headers-prev-or-next-thread return (point)
Or nil if not found.
2023-04-24 21:52:25 +03:00
Dirk-Jan C. Binnema e2947f181d mu4e: add thread support to message-view
No keybindings yet, since TAB etc. conflict.
2023-04-24 21:52:25 +03:00
Dirk-Jan C. Binnema 1acf00bdd5 mu4e: fix errors/warning in mu4e.texi 2023-04-23 16:07:12 +03:00
Dirk-Jan C. Binnema 50d559deb4 mu4e: do not allow marking folded message
Safety first!
2023-04-23 12:07:08 +03:00
Dirk-Jan C. Binnema 0fdc64ad1a mu4e-thread: add mu4e-thread-fold-single-children
Allow for customizing the folding of single children.
2023-04-23 12:07:08 +03:00
Dirk-Jan C. Binnema a81b540f66 mu4e-thread: use mu4e-headers-(prev|next)-thread
Use the existing implementation.
2023-04-23 12:07:08 +03:00
Dirk-Jan C. Binnema b73e075c7b mu4e-thread: share mu4e-headers-thread-root-p with threads
Add mu4e-headers-thread-rootp which follows the mu4e-threads definition;
and use it in both mu4e-headers and mu4e-threads
2023-04-23 12:07:08 +03:00
Dirk-Jan C. Binnema d8817c1b74 mu4e-thread: integrate in mu4e-headers / build 2023-04-23 12:06:59 +03:00
Dirk-Jan C. Binnema 4181f6ad07 mu4e-thread: update documentation 2023-04-23 12:03:01 +03:00
Dirk-Jan C. Binnema b28a591077 mu4e-thread: fix byte-compiler & flycheck warnings 2023-04-20 14:32:11 +03:00
Nicolas P. Rougier 1012cb7232 Added mu4e-thread.el 2023-04-19 18:36:29 +02:00
Dirk-Jan C. Binnema 3885ae9a82 mu4e: add defvar mu4e-headers-open-after-move
Allow customizing whether to open the message after moving around in the
headers buffer. This meant for let-binding when scripting, e.g.,

(defun mark-and-quit ()
  (interactive)
  (let ((mu4e-headers-open-after-move nil))
    (mu4e-view-mark-for-refile)
    (mu4e-view-quit)))

in the view marks the current messages, then moves point to next message
without opening it.
2023-04-16 11:09:55 +03:00
Dirk-Jan C. Binnema fc1f9b5b0a mu4e-query-item: reset mu4e--last-delta-unread
Fixes #2447.
2023-04-11 09:49:26 +03:00
Dirk-Jan C. Binnema 2285355374 mu4e: remove obsolete TODO 2023-04-08 13:29:48 +03:00
Dirk-Jan C. Binnema c5c9531c37 mu4e: Add display-buffer-list example
To fine-tune the main-buffer display.
2023-04-06 23:48:15 +03:00
Dirk-Jan C. Binnema 1185a5380c
Merge pull request #2464 from malb/display-buffer-mu4e-compose
don't use display-buffer-reuse-window when composing in frame
2023-04-06 07:23:58 +03:00
Dirk-Jan C. Binnema d43f3c58c1
Merge pull request #2468 from nbarrientos/issue2463
mu4e: allow to disable the global mode-line items
2023-04-06 07:22:48 +03:00
Dirk-Jan C. Binnema baac02c5af mu4e: mention mu4e-maildir-shortcuts in main-view section 2023-04-06 07:19:26 +03:00
Dirk-Jan C. Binnema f2a193b4fd
Merge pull request #2449 from seanfarley/detach-rename
[ux bug] mu4e: create random name for newly detached views
2023-04-05 23:20:00 +03:00
Nacho Barrientos 552d65e61c mu4e: allow to disable the global mode-line items
Fixes #2463
2023-04-05 11:36:37 +02:00
Martin R. Albrecht 840d02b848 don't use display-buffer-reuse-window when composing in frame 2023-04-03 17:08:54 +01:00
Dirk-Jan C. Binnema 6e0135da0a
Merge pull request #2459 from rdiaz02/documentation
documentation typo: C-x w ^f places in new frame, not new tab
2023-04-03 16:06:58 +03:00
Nacho Barrientos 3132ceaaff mu4e: correct variable name in manual 2023-04-03 14:44:07 +02:00
ramon diaz-uriarte (at Phelsuma) 7a33fd19a7 documentation typo: C-x w ^f places in new frame, not new tab 2023-04-02 12:28:19 +02:00
Dirk-Jan C. Binnema 5bda666dbc
Merge pull request #2457 from RuijieYu/fix-defcustom-warnings
Fix defcustom type definitions
2023-04-01 19:14:46 +03:00
Ruijie Yu e5b33c29d1 Fix defcustom type definitions
So that the type definitions reflects the docstrings more closely.  In additon,
fixed warnings from flymake about docstring.

* mu4e/mu4e-draft.el
mu4e-compose-keep-self-cc: should be a comma

* mu4e/mu4e-folders.el
mu4e-maildir-shortcuts: recognize new (plist) format

* mu4e/mu4e-helpers.el
mu4e-debug: removed unnecessary double space in docstring

* mu4e/mu4e-query-items.el
mu4e-query-rewrite-function: prepend "\\=" before column 0 "(" in docstring

* mu4e/mu4e-search.el
mu4e-search-sort-field mu4e-search-sort-direction: used radio in types

* mu4e/mu4e-server.el
mu4e-mu-binary: "mu" executable must exist

* mu4e/mu4e-view.el
mu4e-view-fields: fixed type
mu4e-view-actions: for function refs, prefer "#'" rather than "'"
2023-04-01 15:59:16 +08:00
Sean Farley ba6c164ac0 mu4e: create random name for newly detached views
Without creating some kind of a temporary name (which could then be
trivially renamed by the user as the current instructions say) a new
user trying to learn how to detach a view will run into this error when
switching to a new message after detaching:

[mu4e] Detached view buffer from *mu4e-headers*
funcall-interactively: No buffer named *mu4e-article*<2>

It seems like a good default and less friction to create a random name
automatically when detaching.
2023-03-31 09:49:26 -07:00
Dirk-Jan C. Binnema 881c3cb4c1 mu4e: fix mu4e--main-action alt
As per #2439.
2023-03-30 23:58:45 +03:00
Dirk-Jan C. Binnema 189838b030 mu4e: make mu4e-dim-when-loading nil also hide "Loading"
Not the best name, but it's easy. So
  (setq mu4e-dim-when-loading nil)
to complete remove the loading-effect.

Fixes #2451.
2023-03-30 18:45:35 +03:00
Dirk-Jan C. Binnema 5d38ec0c08 mu4e-window: add mu4e--buffer-local-boundp
buffer-local-boundp was introduced in emacs 28.

Fixes #2456.
2023-03-30 18:12:33 +03:00
Dirk-Jan C. Binnema fdc0834951 mu4e-server: attempt to avoid tramp error
Try to ensure default-directory is local; it seems tramp can screw up
shell-command-to-string.
2023-03-29 09:07:33 +03:00
Dirk-Jan C. Binnema e6d6f5014d mu4e: handle functionp queries in mu4e--make-query-items 2023-03-29 09:07:33 +03:00
Dirk-Jan C. Binnema f504327ac4 mu4e: restore support for function bookmarks
Fixes 2446.
2023-03-28 20:57:07 +03:00
Dirk-Jan C. Binnema 318aa40f75 mu4e: tweaks to manual 2023-03-26 10:14:59 +03:00
Dirk-Jan C. Binnema f94a95b36b Merge branch 'pr-2443' 2023-03-25 13:31:00 +02:00
Dirk-Jan C. Binnema e35f477009 mu4e: use 'l' for the list mark
Small updates to the PR.
2023-03-25 13:22:37 +02:00
Dirk-Jan C. Binnema 001eb114cb mu4e-view: support gnus message-id links
When clicking the button, find the message in mu4e.

Fixes #2441
2023-03-25 10:35:27 +02:00
Dirk-Jan C. Binnema 93336ae171 mu4e: remove example with internal function
Shouldn't promote their use.
2023-03-25 09:52:58 +02:00
Babak Farrokhi 6facec5bfa
Update documents to reflect List flag change 2023-03-15 11:47:21 +01:00
Babak Farrokhi adea4a5612
Change letter mark for mailing-list messages to L
Fixed an issue where messages from mailing-list ("list" flag) were shown using
"s" in header view, which is also used for "signed" messages. Therefore changing
it to "L".
2023-03-15 11:14:36 +01:00
Sean Allred 7f2225ccfc Don't die if the headers buffer isn't in a window
If the headers buffer isn't in a live window (e.g., mu4e-split-view
is 'single-window), get-buffer-window will return nil. In turn,
with-selected-window will die if fed a nil window, so default to using the
current window in this case.

This fixes a regression from c23dad7058 that
prevented using n/p from a view buffer.
2023-03-15 02:20:16 -05:00
John Hamelink 26ff8e539a
mu4e: Add optional message plist arg to mu4e--org-store-link-message
This change makes it possible to use the function in an mu4e action.
2023-03-07 00:58:12 +00:00
Dirk-Jan C. Binnema 412256d26f mu4e: doc: fix mu4e-search-toggle-property binding 2023-02-24 07:25:39 +02:00
Nicholas Vollmer 45ecfebce5 mu4e--main-action: guard against nil ALT argument
Otherwise, if ALT is not provided the initial binding of bindstr can fail with:
Wrong type argument: characterp, nil
2023-02-23 09:13:38 -05:00
Dirk-Jan C. Binnema 558745bf00 mu4e-main: attempt to handle overridden bindings gracefully
Rebinding existing functions to different keys works fine, *but* it seems
some 3rd party code rebinds existing keys to different functions; that's
not really supported but use to half-work. Attempt to make it half-work
again, and document.
2023-02-18 20:08:56 +02:00
Dirk-Jan C. Binnema 4b0a6c763c mu4e-helpers: improve completion docstrings 2023-02-18 11:56:58 +02:00
Dirk-Jan C. Binnema 08ea3ca681 mu4e-server: factor out version check, use for repl too 2023-02-18 09:04:57 +02:00
Dirk-Jan C. Binnema 9feb53a766 mu4e.texi: fix typo 2023-02-18 09:04:46 +02:00
Anton Tetov f444439b5b
typo in mu4e docs Org-mode links
s/%d:date-timestamp-inactive/ %date-timestamp-inactive
2023-02-17 22:27:03 +01:00
Dirk-Jan C. Binnema 360cf62ba6 mu4e-view: better error message when we cannot switch text/html
"This is a pseudo article" isn't very helpful.
2023-02-17 16:03:34 +02:00
Dirk-Jan C. Binnema 8b16e5a449 mu4e: add command mu4e-server-repl
This for testing the mu4e server.
2023-02-17 10:32:21 +02:00
Dirk-Jan C. Binnema 9a1733e29d mu4e-folder: make mu4e-cache-maildir-list a defcustom, t
turn it on by default; and let mu4e-create-maildir-maybe clear the
cache when a new dir is created.
2023-02-16 21:22:37 +02:00
Dirk-Jan C. Binnema 47f8f8c382 mu4e-search: cosmetic 2023-02-16 21:22:37 +02:00
Dirk-Jan C. Binnema 0c04300f61 mu4e-helpers: support completing-read for mu4e-read-option
Instead of using mu4e's tradional completion UI, allow for delegating to
some implementation of completing-read.

Default
  mu4e-read-option-use-builtin t

means that things work more-or-less as before.
2023-02-16 21:22:37 +02:00
Al Haji-Ali 51ba56cf6e mu4e-helpers: import new/mu4e--read-char-choice
Starting point; see issue #2157.
2023-02-16 21:22:37 +02:00
Dirk-Jan C. Binnema a8c0bbd390 mu4e-folders: use mu4e-read-option 2023-02-16 21:22:37 +02:00
Dirk-Jan C. Binnema edb8cf17a9 mu4e-bookmarks: use mu4e-read-option
Use the generic function.
2023-02-16 21:22:37 +02:00
Dirk-Jan C. Binnema 0354fa4fac mu4e-helpers: rework mu4e-read-option
Rework the mu4e-read-option code to be a bit easier to (re)use.
2023-02-16 21:22:37 +02:00
Dirk-Jan C. Binnema d55cba7237 mu4e: fix quotes in some docstrings
Escape correctly.
2023-02-15 12:29:24 +02:00
Dirk-Jan C. Binnema e4cf881c91 mu4e: install el copies a read-only
To avoid changing the build/ copies rather than the sources.
2023-02-15 12:29:24 +02:00
Dirk-Jan C. Binnema 92ac6de09c mu4e: support jumping to previous/next thread
in headers view, message view with '{' and '}.
Also update documentation.

Fixes #1523
2023-02-12 12:58:05 +02:00
Dirk-Jan C. Binnema 88cb22d178 mu4e: integrate mkdir better into mu4e
When moving to a non-existent folder, offer to create it and proceed from
there (that _almost_ worked earlier).

Fixes #628
Fixes #477
2023-02-12 11:17:59 +02:00
Dirk-Jan C. Binnema c70d4b70d2 mu4e-main: better handle :name workaround for maildirs
Distinguish between the lambda and normal activation functions.
2023-02-12 11:07:42 +02:00
Dirk-Jan C. Binnema e1a160a8e5 mu4e-main: just mu4e-search for maildir query
When activated.
2023-02-12 00:34:06 +02:00
Dirk-Jan C. Binnema 6559f0f86e mu4e: show actual keybindings in main-view
Let the main-screen show a representation of the *actual* keybindings
rather than assuming the defaults.

For that to work, we need to invoke mu4e-main-mode earlier; add a new
hook mu4e-main-mode-rendered-hook which is invoked after rendering is
complete.

Add a few helpers for this to mu4e-helpers.
2023-02-11 17:50:58 +02:00
Dirk-Jan C. Binnema 5df98d57cb
Merge pull request #2428 from leotaku/bug-reference-no-override
Only add bug-reference setup function after the feature was loaded
2023-02-03 19:07:47 +02:00
Leo Gaskin d4cb318bc1 Only add bug-reference setup function after the feature was loaded
This is done so that we do not override the default defvar value of
bug-reference-auto-setup-functions but instead add our own hook to it.
2023-02-03 13:32:34 +01:00
Dirk-Jan C. Binnema 137e800fd0 mu4e-query-items: clear cached bookmarks/maildirs
When refreshing, so they get properly updated.
2023-02-02 23:48:44 +02:00
Dirk-Jan C. Binnema 66d20d04f5 mu4e-main: small cleanups 2023-02-02 23:48:16 +02:00
Dirk-Jan C. Binnema bbea9e5374 mu4e-bookmarks: whitespace fixes 2023-02-02 23:47:18 +02:00
Dirk-Jan C. Binnema ea08378ce6 mu4e-server: sync up error code with backend 2023-01-31 23:41:57 +02:00
Dirk-Jan C. Binnema 7610e86e97 mu4e: move some defcustoms to mu4e-vars.el 2023-01-31 19:50:07 +02:00
Dirk-Jan C. Binnema 0ee86ac923 mu4e: make eldoc support configurable
Add new defcustom, mu4e-eldoc-support, turn it off by default.
2023-01-31 19:50:07 +02:00
Andreas Hindborg b3614fd3c2 mu4e: Allow completion for symbolic links in maildir
This patch allows mu4e to autocomplete when `mu4e-root-maildor` contains
symbolic links to other maildirs. Without this patch mu4e can still work when
directories under `mu4e-root-maildor` are symlinks, but it will not autocomplete
properly when using `mu4e-search-maildir`.

Signed-off-by: Andreas Hindborg <nmi@metaspace.dk>
2023-01-31 16:02:30 +01:00
Dirk-Jan C. Binnema 86edc7d5fc mu4e: improve server error display
Fixes #2328
2023-01-29 16:37:08 +02:00
Dirk-Jan C. Binnema 29e6c21ed8 mu4e: use mu4e-join-paths 2023-01-27 09:25:40 +02:00
Dirk-Jan C. Binnema 491f9e91ff mu4e: rework mu4e--file-name-concat into mu4e-join-paths
We also need to handle slashes at the *start*.
2023-01-27 09:25:19 +02:00
Dirk-Jan C. Binnema d3966926a9 mu4e-notifications: show notifications for new messages
Filter out the _same_ new messages.
2023-01-26 21:35:42 +02:00
Dirk-Jan C. Binnema abf0e259a2 mu4e: implement mu4e--file-name-concat 2023-01-26 21:35:18 +02:00
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