Commit Graph

2335 Commits

Author SHA1 Message Date
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
Dirk-Jan C. Binnema 6a4eb68428 mu4e-vars: Update docs for mu4e-index-lazy-check
Explicitly mention the limitation with sub-dirs, as discussed in issue
2021-08-07 17:18:15 +03:00
Dirk-Jan C. Binnema 907db013c0 mu4e-view-gnus: Manipulate gnus so it blocks remote images
mu4e reuses the default gnus-blocked-images, but sadly in the mu4e
context, the default (a function called gnus-block-private-groups) does
_not_ work (i.e., it never blocks).

Advise this function so it'll block for mu4e as well, and update the
docs.

Fixes: #2072.
2021-08-02 23:39:33 +03:00
Dirk-Jan C. Binnema 3ea20afe20
Merge pull request #2063 from nbarrientos/typo
Fix typo in docstring
2021-08-01 10:39:03 +03:00
Boris Glavic b4cf999802 replace carriage-return instead of line feed in mu4e-message-outlook-cleanup 2021-07-31 20:34:48 -05:00
Dirk-Jan C. Binnema b4ebd6c248 mu4e-utils: make schema warning/error a bit clearer
Show in the warning buffer.
2021-07-31 01:49:23 +03:00
Dirk-Jan C. Binnema 26bd64f4c9 mu4e-header: mark mu4e-headers-field-properties-function obsolete
The variable is an unused leftover.

Fixes: #2067.
2021-07-30 14:25:54 +03:00
Nacho Barrientos 02f3424280 Fix typo in docstring 2021-07-30 09:21:28 +02:00
Dirk-Jan C. Binnema f69214b4df mu4e-main: refresh after context-switch
Fixes: #2062.
2021-07-29 23:24:13 +03:00
Dirk-Jan C. Binnema 10c1aafa4c mu4e: Update mu4e-view-show-images doc string
Make clear it only applies to the old view.
2021-07-17 15:01:23 +03:00
Dirk-Jan C. Binnema d30f85934d mu4e.texi: Move docs for old view to appendix
Hopefully that makes it less confusing.
2021-07-17 15:01:23 +03:00
Thierry Volpiatto 617e8023f6
Fix mu4e-headers-prev with invisible lines
Skip invisible text at BOL possibly hidden by
the end of another invisible overlay covering
previous EOL.

This patch affects people using mu4e-thread-folding-mode but change nothing
when using mu4e as it is.
2021-07-12 06:47:36 +02:00
DiGitHubCap d394295fe7 Fix #2044: broken header movement with visual-line-mode
This fixes the issue introduced by 50f6f539 where header navigation
would break when `visual-line-mode' was enabled. Previously,
`forward-line' was used in `mu4e-view-headers-next', which disregarded
visual lines and moved by logical lines, but this was changed to
`line-move', which moves by visual lines when `line-move-visual' is
non-nil (the default when `visual-line-mode' is enabled). Thus, when
the current header line was wrapped and a message was open in the
split view, `mu4e-view-headers-next' would move to the next visual
line in the headers buffer (the same message), and then jump back to
the start of the previous line, preventing switching to the next
message.

This would also throw off navigation when `mu4e-view-headers-next' was
used with a prefix argument, since it would move by visual lines and
not headers.

`line-move-visual' is therefore set to nil before using `line-move' to
prevent these issues.
2021-07-05 22:39:31 -04:00
Dirk-Jan C. Binnema 7034556ab4
Merge pull request #2034 from thierryvolpiatto/remove_marked_overlays
Only remove mark overlays in `mu4e-mark-at-point`
2021-06-17 22:22:00 +03:00
Thierry Volpiatto 2f251209e3
Rename mmark overlay to mu4e-mark 2021-06-17 21:11:38 +02:00
Dirk-Jan C. Binnema 6ddfc61c8d mu4e: Update documentation for mu4e-view-fields
Fixes: #2041
2021-06-17 20:54:59 +03:00
Thierry Volpiatto 50f6f539f5
Ensure mu4e~headers-move honor line-move-ignore-invisible
This change is needed because forward-line doesn't honor this variable, more
generally visual lines.

Using `next-line` instead of `forward-line` allows this but it is more focused
on interactive use, so use `line-move` which handles visual lines without
warnings and return 0 or 1 just like `forward-line`.
2021-06-11 19:56:15 +02:00
Thierry Volpiatto 89538ef4fc
Only remove mark overlays in `mu4e-mark-at-point`
This prevent deleting overlays added by third party packages working as well
with overlays in mu4e-headers e.g. thread-folding , and probably in mu4e
itself as well with future features.  Also having a named overlay allows in
future features to modify any other overlays but these one.

As it is this patch doesn't modify the actual behavior.
2021-06-10 14:19:22 +02:00
Anders Johansson c090e36485 Fix bug with helm completing-read when saving attachments
Previously helm-comp-read-use-marked was bound also when completing on
a directory for saving attachments (when using a prefix argument). This
returned a list with the selected directory, which caused an error.
2021-06-02 18:03:39 +02:00
Salman Mohammadi 539a946aa4
mu4e/*: fix license notice at the start of source files
At the start of mu4e/* files, the license has been wrongly attributed
to GNU Emacs instead of mu4e.

Fixes https://github.com/djcb/mu/issues/2019
2021-05-29 23:45:10 +02:00
Dirk-Jan C. Binnema 0bb8ad6e4c
Merge pull request #2016 from Profpatsch/mu4e-view-dont-overwrite-home-and-end
mu4e-view: remove <home> and <end> bindings
2021-05-29 15:31:52 +03:00
Tassilo Horn b7fb722df6 Add support for bug-reference auto-setup in mu4e-view-mode
The bug-reference mode in Emacs 28 has support for several kinds of auto-setup,
one of them being for mail customizable by the variable
`bug-reference-setup-from-mail-alist`.  Add mu4e support for that so that users
can simply do

    (add-hook 'mu4e-view-mode-hook #'bug-reference-mode)

and have it working.

Also squash one byte-compiler warning about the (at compile-time) undefined
variable `gnus-article-buffer`.

* mu4e/mu4e-utils.el (mu4e-view--try-setup-bug-reference-mode): New function.
2021-05-28 23:33:08 +02:00
Profpatsch d106237c5a mu4e-view: remove <home> and <end> bindings
Users usually have `<home>` and `<end>` bound in their configuration,
for Spacemacs the default is “move-beginning-of-line” and “move-end-of-line”.

The mu4e view mode should not rebind basic navigation keys like these.
2021-05-20 14:16:37 +02:00
Dirk-Jan C. Binnema cefd66159a mu4e-headers: use the mu engine thread-subject
Instead of handling in the headers (which were broken).  The messages
that are hidden are _slightly_ different than before.
2021-05-04 17:36:24 +03:00
Dirk-Jan C. Binnema 2574071ac8 mu4e-view-gnus: use default for gnus-unbuttonized-mime-types
Changing it (e.g., to nil) doesn't work well with clickable URLs.
2021-05-02 23:48:30 +03:00
Dirk-Jan C. Binnema fa8505fa5a mu4e-vars: add thread-path/-date custom headers
Useful for debugging.
2021-05-02 23:33:06 +03:00
Dirk-Jan C. Binnema d0d305b48f mu-headers: Tweak thread prefix
Avoids some confusion.
Fixes: #1994.
Fixes: #1933.
2021-05-02 23:30:32 +03:00
Thierry Volpiatto b5656a7991
Fix #2006 by using cl-loop in mu4e-action-view-in-browser instead of seq
Using cl-loop is much simpler and readable, than using mapconcat+seq+seq.
Also it avoids requiring seq (which is not done actually).
2021-05-02 18:32:07 +02:00
Thierry Volpiatto 008f9fe443
Insert text without its text properties when replying 2021-05-01 20:28:55 +02:00
Dirk-Jan C. Binnema a11008deab Revert "mu4e-view-gnus: use the gnus mech to identify urls"
This reverts commit 6d9bd548f1.

Changes breaks article treatment.
2021-04-28 15:02:29 +03:00
Dirk-Jan C. Binnema 6d9bd548f1 mu4e-view-gnus: use the gnus mech to identify urls
Add mu4e~view-urlify, which replaces mu4e~view-activate-urls, and let
gnus determine where the URLs are.
2021-04-28 07:14:20 +03:00
Dirk-Jan C. Binnema 453c7f84e8 mu4e-view-gnus: don't render in invisible buffer
It seems that prevents image resizing from working.

Should help for issue #1998.
2021-04-27 00:10:11 +03:00
Dirk-Jan C. Binnema 5103f4614e mu4e-view-gnus: show URL links
Fixes: #1990.
2021-04-26 21:22:54 +03:00
Christophe Troestler 163fa1ee87 mu4e: Decode headers before viewing in browser 2021-04-26 01:50:23 +02:00
Christophe Troestler a9a874937e mu4e: Minor fixes to texinfo documentation 2021-04-26 01:40:11 +02:00
Dirk-Jan C. Binnema 3799975714 mu4e-view: only kill existing buffer 2021-04-25 14:05:27 +03:00
Dirk-Jan C. Binnema 15ab2c8d3a mu4e-view-gnus: better cleanup buffer
avoid seeing leftover MIME-parts of older buffers.
2021-04-25 13:44:57 +03:00
Dirk-Jan C. Binnema 704e631e8d mu4e/doc: document gnus rich-text handling 2021-04-25 11:41:24 +03:00
Dirk-Jan C. Binnema 6f206f0f7e mu4e-view-gnus: use gnus image variables directly
Let's avoid some wrapper code and use the gnus variables directly.
And some documentation updates.
2021-04-25 11:41:09 +03:00
Dirk-Jan C. Binnema f377483c16 mu4e-view-gnus: activate URLs
So we can follow them using 'g'
2021-04-25 09:08:59 +03:00
Dirk-Jan C. Binnema 71e0223d86 mu4e-view-gnus: implement mu4e-action-view-in-browser
Reimplement the browser view code for the gnus-based viewer; and let
gnus handle it too.

On change is that we currently only support showing html-messages.
2021-04-24 22:37:03 +03:00
Dirk-Jan C. Binnema 11bea28dad mu4e-view-gnus: cleanup message rendering
Refactor the way we view messages (using gnus) to reduce duplicate code.
Overall, cleanup the rendering part a bit.
2021-04-24 22:34:40 +03:00
Dirk-Jan C. Binnema 0218ed9a68 mu4e/meson.build: ensure builddir is checked first
Used for mu4e-meta.el. Not having this seems to break some users
meson-build.

HT: derek-zhou
2021-04-23 09:56:51 +03:00
Dirk-Jan C. Binnema 3a418745e1 mu4e-speedbar: fix compiler warning 2021-04-23 09:56:27 +03:00
Thierry Volpiatto bce31241a5
Remove unneeded or clause in mu4e-view-save-attachments 2021-04-22 19:30:23 +02:00
Dirk-Jan C. Binnema c6f2bf5333 Revert "mu4e-view-gnus: refactor message rendering code a bit"
This reverts commit 515af3e3d2, since it
broke the attachments display.
2021-04-20 10:54:41 +03:00
Dirk-Jan C. Binnema 515af3e3d2 mu4e-view-gnus: refactor message rendering code a bit
Split out the shared parts from mu4e~view-gnus and
mu4e~view-message-text.
2021-04-14 00:23:11 +03:00
Stephen J. Eglen f80123bb3e Simplify the code for using dired to attach messages
I originally sent some code to the mailing list in 2012 to use dired
for marking attachments.

https://groups.google.com/g/mu-discuss/c/OPwdNZbB5GE/m/hnjNlNoLIu8J

As the function in gnus.el has since been fixed, the version of
gnus-dired-mail-buffers now works fine with mu4e (and has done for
many years).  I suggest deleting the old code to make the
documentation simpler assuming that people are no longer on Emacs from
9 years ago.
2021-04-13 17:29:18 +01:00
Stephen J. Eglen 8a4a0e9a1c Spelling fixes and simplifying some code 2021-04-13 17:15:40 +01:00
Christophe Troestler e00faf6cd3 mu4e-headers: Set the point in the correct frame after search
Fixes https://github.com/djcb/mu/issues/1977
2021-04-12 23:54:13 +02:00
Christophe Troestler 561079d868 mu4e-mark: Allow executing marks without passing a prefix argument 2021-04-12 21:59:52 +02:00
Dirk-Jan C. Binnema 55d8d20771 mu4e-view-gnus: Don't special-case Ivy
Unlike helm, it's not good for multi-selections.
2021-04-12 22:12:23 +03:00
Dirk-Jan C. Binnema b68a12692f mu4e-mark: don't be too eager to avoid confirmation
Fixes: #1974.
2021-04-12 18:01:38 +03:00
Philip "Galli" Rentschler b8fe2ba682
skip confirmation when executing marks
When running `u4e-mark-execute-all` with any prefix-arg you can skip the confirmation-prompt. The potential for accidentally hitting this is quite low.
2021-04-09 16:53:48 +02:00
Dirk-Jan C. Binnema 5d414cffc9
Merge pull request #1967 from Chris00/ical
mu4e/ical: Compose the response attaching the calendar
2021-04-08 19:51:38 +03:00
Christophe Troestler 1dbe818378 mu4e/ical: Set `mu4e~view-rendering' to t as a buffer local variable
When an ics file is attached but not visualized by default, this is
necessary in order trigger the bug workaround in the advice attached
to `gnus-icalendar-event-from-handle'.
2021-04-06 15:29:56 +02:00
Christophe Troestler f673911277 mu4e/ical: Compose the response attaching the calendar
This composes the response before any hook is run which is important
so that, if those hooks modify the message, they are aware that some
MML is present.  In particular, this is needed to have the
compatibility with the org-msg package; see
https://github.com/djcb/mu/issues/1956
2021-04-06 15:29:20 +02:00
Christophe Troestler a9dd573c47 mu4e/doc: Describe `mu4e-view-blocked-images' 2021-04-06 10:19:20 +02:00
Dirk-Jan C. Binnema 0f03a03d64
Merge pull request #1962 from Chris00/attach-buffer
mu4e/compose: attach buffers & files setting any property
2021-04-06 00:14:47 +03:00
Christophe Troestler b2b8f562f7 mu4e/compose: attach buffers & files setting any property 2021-04-05 22:35:58 +02:00
Christophe Troestler afaf613a92 Enable the user to control which external images not to display 2021-04-05 11:39:44 +02:00
Stephen J. Eglen 5d859d005f Respect switch-function in compose-mail.
Emacs has several standard keybindings

C-x m   compose-mail
C-x 4 m compose-mail-other-window
C-x 5 m compose-mail-other-frame

This patch fixes the creation of new mail buffers to respect the
latter two keybindings, C-x 4 m and C-x 5 m.

Note that there is already the variable mu4e-compose-in-new-frame
which if true opens in a new frame.  That will still work for C-x m
and C-x 5 m, but if the user runs C-x 4 m, it switches to other-window
as it assumes the keybinding takes precedence.  This behaviour can be
changed within mu4e~draft-open-file.
2021-04-03 22:23:21 +01:00
Nacho Barrientos ecc96e93f7 Fix typo 2021-04-01 16:06:52 +02:00
Alex Bennée 285fdc5d5d mu4e/mu4e-headers: remove excess message output
When marking threads as read things are slowed down by echoing the
thread path to the mini-buffer. I assume this is left over debug but
if needed for something else should probably be a log call.
2021-03-31 10:04:03 +01:00
Dirk-Jan C. Binnema f3e13b5201 mu4e-view-gnus: Implement mu4e-view-massage
Expose some of the Gnus article treatment functions.
2021-03-23 17:39:12 +02:00
Dirk-Jan C. Binnema c44b855d78 mu4e-view-gnus: Update keybindings 2021-03-23 17:39:12 +02:00
Dirk-Jan C. Binnema bae7a198c5 mu4e.texi: Update documentation 2021-03-23 17:39:12 +02:00
Dirk-Jan C. Binnema 33fb6c58cf mu4e-actions/view: Reorganize example actions a bit
The ones that require the "old" view (now or in the near future) are
move to mu4e-view-old.el.
2021-03-23 17:39:12 +02:00
cog 3e38c9ec5f Add ivy completion when saving attachments 2021-03-23 10:03:14 +01:00
Dirk-Jan C. Binnema afedfc6708 mu4e-view: Implement actions for gnus-view MIME-parts
In the "old" view, we had `mu4e-view-mime-part-actions`, which describes
various actions on attachments; in the brave new gnus-based view, those
do not work, but we have added something better:
  mu4e-view-mime-part-actions

This needs some more documentation, but is useful already.
2021-03-21 00:14:54 +02:00
Christophe Troestler f311b9455c mu4e/view-gnus: Make Gnus email clickable links work 2021-03-18 19:26:00 +01:00
Dirk-Jan C. Binnema c04d9ceff0 mu4e-view-gnus: Set buffer name earlier
Seems some hooks might depend on the buffer being called *Article* in
hooks.
2021-03-18 00:50:30 +02:00
Christophe Troestler 76a904be26 mu4e/view: make URLs clickable again 2021-03-17 18:53:25 +01:00
Christophe Troestler b2877a237c mu4e/view-gnus: Gnus view is no longer experimental 2021-03-17 18:03:18 +01:00
Dirk-Jan C. Binnema 811ae26574 Merge branch 'draft-context' 2021-03-17 11:36:12 +02:00
Al Haji-Ali b094da8cd4 mu4e: Added mu4e-compose-context-switch for draft messages
Allow updating the context for the current draft message.
2021-03-17 11:35:09 +02:00
Christophe Troestler 1c9e1f4be1 mu4e/icalendar: Use a closure to trash the original message
This work around the fact that `defun' has an undefined return value.
2021-03-17 00:34:04 +01:00
Christophe Troestler 2d67b66506 mu4e/icalendar: Avoid unused lexical variable gnus-icalendar-find-if
This syncs the definition of mu4e-icalendar-reply with the one of
gnus-icalendar-reply and, in turn, avoids the compiler warning
“Unused lexical variable `gnus-icalendar-find-if'”.
2021-03-16 23:55:02 +01:00
Christophe Troestler 339a17852b mu4e/icalendar: Restore the deletion of the citation 2021-03-16 23:55:02 +01:00
Christophe Troestler 3621314ac2 mu4e/icalendar: fix free variable ‘original-msg’ 2021-03-16 23:55:02 +01:00
Dirk-Jan C. Binnema e6d92d4fef meson: Generate version.texi for guile, mu4e
So we can build from a clean git clone.
2021-03-17 00:16:49 +02:00
Dirk-Jan C. Binnema 2fac2bb602 mu4e/view-gnus: Don't allow gnus-button-reply
Since it will reply in *gnus* rather than in mu4e. Perhaps we can hook it
up with mu4e... but not now.

Fixes: #1949.
2021-03-16 23:09:21 +02:00
Dirk-Jan C. Binnema 2437dc27c9 mu4e: Replace mu4e-view-use-gnus with mu4e-view-use-old
Make mu4e-view-use-gnus obsolete (it's the default now), and add a
variable mu4e-view-use-old (which must be set before starting mu4e).

Update documentation / mentions.

Load the correct view when starting mu4e, so people can customize
e.g. the keymap.

Add some sanity checking.
2021-03-16 19:57:36 +02:00
Thierry Volpiatto 723081268d
Fix mu4e-view-common header line 2021-03-16 17:33:59 +01:00
Dirk-Jan C. Binnema 7f244ee454 mu4e/view: Restore URL activation, TAB
Make URL activation work again (with mouse, M-RET), and TAB in
gnus-view.

Fixes: #1946.
2021-03-16 17:13:36 +02:00
Dirk-Jan C. Binnema b7660ed33d mu4e-view: decrypt when replying
Let's decrypt a message before replying.

HT: Thierry Volpiato.
2021-03-16 08:58:43 +02:00
Dirk-Jan C. Binnema d0615a959f mu4e-vars: fix some defface declarations
use :weight, :slant rather than :bold, :italic.
2021-03-16 08:56:01 +02:00
Dirk-Jan C. Binnema 931cfe5d86 mu4e: clear up mu4e~view-message
Remove duplicate definition of mu4e~view-message in mu4e-view-old

Set it earlier in mu4e-view-gnus (so it can be used in mode-hooks).
2021-03-15 22:56:30 +02:00
Dirk-Jan C. Binnema 0153f7538e mu4e: update documentation
Add the beginning of some docs for the gnus-view.
2021-03-15 22:55:21 +02:00
Dirk-Jan C. Binnema b100c963fc mu4e-view-common: fix typo
its *actions*, not *action*.

Fixes: #1942.
2021-03-13 10:47:45 +02:00
Dirk-Jan C. Binnema 44d801e2b0 mu4e-view-gnus: cleanup keymap
Do not derive the keymap from gnus article mode, so we don't get the
unwanted menu entries, and don't need to disable things manually.
2021-03-12 22:28:51 +02:00
Dirk-Jan C. Binnema 9423212fa0 mu4e: improve mu4e-view-message-text
Attempt to take the Content-Type into consideration when decoding.
2021-03-12 22:26:26 +02:00
Dirk-Jan C. Binnema bcd728651f mu4e-view: move some settings from old->comon
To avoid user config errors when using the new view
2021-03-12 22:22:06 +02:00
Dirk-Jan C. Binnema d12d85e187 mu4e: work-around for format-flowed corner-case
Fixes: #1938
(fixes, eh, works around it)
2021-03-11 19:41:53 +02:00
Dirk-Jan C. Binnema 8d1175f511 mu4e: avoid some compiler warnings
(require) necessary things etc.

warnings for using "obsolete" code are still there since things should
work on emacs 25.3
2021-03-11 10:17:00 +02:00
Dirk-Jan C. Binnema e2655ba34b mu4e-view: re-enable the gnus/old split
re-enable the gnus/old split (the key was re-implementing
mu4e-view-message-text for gnus)

split helpers into mu4e-view-common

as a bonus 'go to url' now also works with gnus
2021-03-10 20:53:33 +02:00
Dirk-Jan C. Binnema 316633e1b2 mu4e: unsplit the gnus/old views
Was not quite working.
2021-03-07 23:27:45 +02:00
Dirk-Jan C. Binnema f002379a87 mu: move mu-view-fields to mu-view.el
We need it in both mu-view-old and mu-view-gnus.
2021-03-07 22:03:36 +02:00
Dirk-Jan C. Binnema ed2e0ed0c3 mu4e-view: make the gnus-based view the default one
Use
  (setq mu4e-view-use-gnus nil)
to use the old one.
2021-03-07 17:35:30 +02:00
Dirk-Jan C. Binnema c1f08e1683 mu4e-view: split in -gnus and -old
Split out the gnus-based and "old" view code into separate files, and
ensure only one of them is loaded.

Do some initial cleanups, more will follow.
2021-03-07 16:42:55 +02:00
Dirk-Jan C. Binnema 6af47e3a92 meson: sync with autotools re mu4e/obsolete 2021-03-07 16:42:55 +02:00
Dirk-Jan C. Binnema 0bfc4b7ca3 mu4e: move org-mu4e to obsolete/
It's really not supported anymore.
2021-03-04 22:03:23 +02:00
Dirk-Jan C. Binnema fcf5a27347 mu4e-headers: Fix subthread marking
Fixes: #1930.
2021-03-04 21:58:25 +02:00
Dirk-Jan C. Binnema ded1de96e6
Merge pull request #1937 from thierryvolpiatto/Fix_mu4e-view-gnus-save-mime-parts
Fix error in mu4e-view-gnus-save-mime-parts
2021-03-03 12:07:32 +02:00
Dirk-Jan C. Binnema c6d24164b2
Merge pull request #1913 from plantarum/ical-templates
Documented icalendar capture template
2021-03-03 12:06:40 +02:00
Thierry Volpiatto 117f438e10
Fix error in mu4e-view-gnus-save-mime-parts
where `handle' may not be a list (here a marker when I had error).

So ensure it is a list.
2021-02-23 21:24:44 +01:00
Tassilo Horn 7471536213 Read query with completion also when editing a bookmark
This wraps up some change that somehow didn't get applied when merging PR #1921
and also offers completion when editing a bookmark.

* mu4e/mu4e-headers.el (mu4e-headers-search): Read query with completion also
when editing a bookmark.
2021-02-17 16:26:47 +01:00
Dirk-Jan C. Binnema 9367a4dd95 mu4e-headers: sort threaded headers by date
In "threaded-mode", we only sort by date; reflect this in the UI.
2021-02-16 19:34:05 +02:00
Dirk-Jan C. Binnema 895f580b99 mu4e-headers: show search props in mode-line
I.e., whether a search is threaded/include-related/full.

There's high bike-shed potential, but let's not do that yet.
2021-02-12 20:39:49 +02:00
Dirk-Jan C. Binnema 2d91a9ab27 mu4e-headers: fix compiler warning
'free variable'

and use mu4e~ rather than mu4e--
2021-02-12 20:39:01 +02:00
Dirk-Jan C. Binnema 8405788f27 docs: update documentation
Update the mu-find man-page; update NEWS.org and mu4e.texi for the way
threading works.
2021-02-12 19:14:37 +02:00
Dirk-Jan C. Binnema bf5c93aab6
Merge pull request #1921 from tsdh/make-jump-maildir-query-editable-with-prefix-arg
mu4e-jump-to-maildir: offer editing the query when a prefix arg is given
2021-02-12 00:53:07 +02:00
Dirk-Jan C. Binnema 7a70942e67 build: experimental support for the meson build system 2021-02-12 00:49:35 +02:00
Tassilo Horn 6632e6c7f3 mu4e-jump-to-maildir: offer editing the query when a prefix arg is given
Also refactor the now two usages of the query completion feature into a
separate function `mu4e-read-query'.
2021-02-03 14:49:05 +01:00
Dirk-Jan C. Binnema 9802ae9dc8 mu4e-headers: jump to message _outside_ save-excursion
Fixes: #1889.
2021-01-30 12:40:00 +02:00
plantarum a440510cdd changed from before/setq to around/let to limit scope
let is better than setq, as it doesn't permanently alter the value of
org-overriding-default-time. The setq has knock-on impacts in future
captures that use the value of this variable, if it is set.
2021-01-26 13:52:43 -05:00
plantarum 51f0a6b739 Added doc for automatically setting the datetree location
Advice appears to be the cleanest way to do this.
2021-01-26 10:46:21 -05:00
plantarum a7ae9951fa Documented icalendar capture templates
It's not documented in gnus-icalendar, so the explanation comes straight
from my reading of the code.
2021-01-25 20:59:51 -05:00
Dirk-Jan C. Binnema 2b9732c669 mu4e: update documentation 2021-01-22 23:24:53 +02:00
Dirk-Jan C. Binnema 68a75c2c91 mu4e: make thread indicators a bit lighter
Make the symbols a bit less chunky
2021-01-22 23:24:53 +02:00
Dirk-Jan C. Binnema 362c53a7e7 mu4e: headers: fix some compiler warnings 2021-01-22 22:53:35 +02:00
Dirk-Jan C. Binnema 86e1515c71
Merge pull request #1900 from Chris00/master
Fix the decoding of accents in Gnus view
2021-01-18 08:22:30 +02:00
Dirk-Jan C. Binnema 53c9526871 mu4e: add org-mu4e-store-and-capture alias
Let it refer to the new function.

Fixes: #1905.
2021-01-18 08:12:42 +02:00
Christophe Troestler a1664d2189 Fix the decoding of accents in Gnus view
Followup on https://github.com/djcb/mu/issues/1823
Fixes https://github.com/djcb/mu/issues/1886
2021-01-16 12:38:41 +01:00
Dirk-Jan C. Binnema 55fd642b0c
Merge pull request #1868 from tsdh/search-query-completion
Completion for search query keywords and fixed or determinable values
2021-01-15 21:19:55 +02:00
Dirk-Jan C. Binnema 5ca25e9e89
Merge pull request #1898 from Chris00/describe-binding
Restore C-h b default behavior
2021-01-15 21:16:26 +02:00
Dirk-Jan C. Binnema bcd96d8a1e mu4e-view: use mm-insert-file-contents
Which should avoid some encoding troubles.
2021-01-15 21:07:38 +02:00
Dirk-Jan C. Binnema c1a5a690e4 mu4e-proc: update docstring for 'extract' 2021-01-15 21:07:07 +02:00
Christophe Troestler 4acfce6e2c Restore C-h b default behavior
Fixes https://github.com/djcb/mu/issues/1842
2021-01-13 11:49:32 +01:00
Tassilo Horn 03dc7c06fd Add paragraph for query completion to texinfo docs 2021-01-11 15:41:42 +01:00
Tassilo Horn 25beafbdd4 Implement completion for search query keywords and fixed values 2021-01-11 15:41:42 +01:00
Yuri D'Elia c311dc4d36 Fix 'mu4e-interrupt-update-mail alias definition 2021-01-11 10:23:55 +02:00
Dirk-Jan C. Binnema 5213adeb2c
Merge pull request #1875 from thierryvolpiatto/save_attachment
Fix #1790 by providing mu4e-view-gnus-save-mime-parts
2021-01-11 09:45:12 +02:00
Dirk-Jan C. Binnema 4dbc6ac399 mu4e-view: Use 'mu4e not "mu4e" when extracting
And param is a string.

Fixes: #1869.
Fixes: #1865.
2021-01-03 15:27:16 +02:00
Dirk-Jan C. Binnema b09b3cb2bb mu4e-main: fix hide-personal-addresses typo
Fixes #1879.
2021-01-03 14:58:28 +02:00
Tassilo Horn e76f894476 Fix Selecting deleted buffer when quitting mu4e 2021-01-03 12:54:13 +01:00
Thierry Volpiatto 00651acaab
Fix #1790 by providing mu4e-view-gnus-save-mime-parts
in replacement of mu4e-view-save-attachment-multi for gnus viewers.

The alias mu4e-view-save-attachment have been replaced by a wrapper function
that calls either mu4e-view-save-attachment-multi or
mu4e-view-gnus-save-mime-parts depending of the context.
2020-12-27 09:46:18 +01:00
Dirk-Jan C. Binnema 46bd705131
Merge pull request #1874 from thierryvolpiatto/Remove_null_byte
Remove null byte added probably by error
2020-12-26 13:54:01 +02:00
Thierry Volpiatto 4830e7de14
Remove null byte added probably by error 2020-12-26 08:49:19 +01:00
Tassilo Horn fe6cbf5949 Use mu4e-query-rewrite-function also for computing bookmark counts
Until now, the bookmark queries were sent to mu in their original form.  Thus,
if you have `mu4e-query-rewrite-function` set, the numbers shown next to the
bookmarks didn't reflect the actual number of query results you'd get when
opening a bookmark view.

With this commit, the `mu4e-query-rewrite-function` is applied and the result
is sent to mu for evaluation (in `mu4e~start`) and the likewise the rewritten
queries are used to find the matching one in the last query results (in
`mu4e~main-bookmarks`).

* mu4e/mu4e-utils.el (mu4e~start): Send the rewritten queries for evaluation to
mu.
* mu4e/mu4e-main.el (mu4e~main-bookmarks): Compare last mu query results with
rewritten queries.
2020-12-13 17:06:11 +01:00
Dirk-Jan C. Binnema 273eb822d5 mu4e: add mu4e-last-query-result[s]
This makes the most recent results from the queries (i.e. the numbers)
available using the supported 'mu4e-' API.

Fixes: #1845.
2020-12-06 14:48:46 +02:00
Dirk-Jan C. Binnema aba0ab3629 mu4e: cosmetics 2020-12-06 13:20:13 +02:00
Dirk-Jan C. Binnema 9cab1ae751 mu4e-compose: restrict to headers in before-save-hook-fn
Follow up to issue #1846.
2020-12-05 11:42:54 +02:00
Juan Jose Garcia-Ripoll 03d5640cee Do not use shell commands to extract version number
Avoid using 'head', 'sed' or other POSIX commands to extract the version number when Emacs can do it. This allows installing just 'mu', without the extra unix tools in a Windows environment.
2020-12-04 16:45:09 +01:00
Dirk-Jan C. Binnema 4eed85187f mu4e-compose: Don't auto-update Message-Id/Date
Fixes #1846
2020-12-02 08:51:35 +02:00
Dirk-Jan C. Binnema 946bf7571e mu4e-vars: remove unused face 2020-11-30 20:34:54 +02:00
Dirk-Jan C. Binnema 6bda2a12ff
Merge pull request #1777 from jesusbv/add-new-entry-org
mu4e: Add Org entry when accepting event
2020-11-28 10:45:16 +02:00
Dirk-Jan C. Binnema d7512b1259 mu4e-org: Use derived-mode-p correctly
Fixes: #1840
2020-11-24 00:17:17 +02:00
Thierry Volpiatto c62dbb250c
Avoid looping through buffer-list when not needed 2020-11-16 08:59:45 +01:00
Thierry Volpiatto 0fbe6edc4e
No need to call `read-only-mode` when buffer is already read-only
In mu4e~view-gnus, mu4e-view-mode derive from gnus-article-mode which derive
from gnus-mode which derive from special-mode:
(get 'mu4e-view-mode 'mode-class) => special.
2020-11-16 07:48:33 +01:00
Dirk-Jan C. Binnema d33d48665f
Merge pull request #1834 from plantarum/ical
Ical documentation
2020-11-15 20:00:15 +02:00
Dirk-Jan C. Binnema 13118ae173 mu4e-org: Don't trigger errors outside mu4e
The functions only work when in mu4e-view-mode/mu4e-headers-mode, which
implies that mu4e is already loaded. So no need to check.

Fixes #1829.
2020-11-15 17:20:52 +02:00
Dirk-Jan C. Binnema df0f78d891
Merge pull request #1836 from thierryvolpiatto/disable_mm-verify-option
Disable `mm-verify-option` let-bounded in `mu4e~view-gnus`
2020-11-15 17:20:23 +02:00
Dirk-Jan C. Binnema 8a96a1ef57
Merge pull request #1835 from thierryvolpiatto/no_lambdas_on_hooks
Use functions instead of lambdas in add-hook calls
2020-11-15 17:19:14 +02:00
Dirk-Jan C. Binnema c2e478381a
Merge pull request #1828 from Chris00/master
Add a section about iCalendar to the manual
2020-11-15 17:16:16 +02:00
Thierry Volpiatto 41682af7b1
Disable `mm-verify-option` let-bounded in `mu4e~view-gnus`
When this option is set to 'known and the needed key is not yet in the user's
keyring, mu4e may hangs forever unable to verify email so lets user set this
variable globally to 'never to prevent this issue.
2020-11-15 08:19:15 +01:00
Thierry Volpiatto 0109172ad4
Use functions instead of lambdas in add-hook calls 2020-11-13 11:38:50 +01:00
smithty d54729290d Fixing syntax errors in mu4e.texi 2020-11-12 09:24:24 -05:00
smithty faf11bcd2f Added notes about iCalendar integration to manual 2020-11-12 09:18:18 -05:00
Dirk-Jan C. Binnema 861194f9a1 mu4e-view: insert-file-contents (gnus mode)
It seems the earlier version (using insert-file-contents-literally, then
trying to fix it has some problems)

HT: thierryvolpiatto

Fixes: #1823.
2020-11-11 21:57:29 +02:00
Dirk-Jan C. Binnema 6b4770bc48 mu4e: avoid calendar charset error
Fixes #issue #1832.

HT: tpeacock19.
2020-11-11 21:47:23 +02:00
Christophe Troestler 156d3567c6 Add a section about iCalendar to the manual
Fixes https://github.com/djcb/mu/issues/1825
2020-11-09 13:36:25 +01:00
Danny O'Brien f4282d9535 guile: Update documentation for version 3.0. 2020-10-31 10:43:49 +02:00
Dirk-Jan C. Binnema 9a3ec0b649
Merge pull request #1812 from lockywolf/master
Add reference about read-mail-command to mu4e.texi.
2020-10-29 00:43:43 +02:00
Lockywolf d1964bd071 Add an example of filtering out spam. 2020-10-28 10:31:02 +08:00
Dirk-Jan C. Binnema f2e87ea2d4 mu4e: Add some timing info to mu4e-headers-precise-alignment
Add some time information. Things are a bit slower with the precise
alignment.
2020-10-26 11:23:09 +02:00
Dirk-Jan C. Binnema e3896de8a4 mu4e: add mu4e-headers-report-render-time
When mu4e-headers-report-render-time is set to non-nil, mu4e will report
on the time it took to render the headers view.
2020-10-24 14:51:04 +03:00
Dirk-Jan C. Binnema ad055bd52b mu4e.texi: update note about mbsync 2020-10-24 01:25:32 +03:00
Dirk-Jan C. Binnema 30cc9c2c6c mui4e: mu4e-icalendar: fix typo 2020-10-22 10:18:06 +03:00
Dirk-Jan C. Binnema 4985f5c959 mu4e: Improve personal-address handling
Make mu4e-personal-address-p safe for being called with nil.

Upgrade code that used mu4e-user-mail-address-p to
mu4e-personal-address-p.

Update docs.

Add some more helpers to mu4e-message, and avoid some byte-compiler
warnings.
2020-10-19 22:39:25 +03:00
Yuri D'Elia 2967c49f5a Check for nil before calling mu4e-user-mail-address-p 2020-10-19 15:35:08 +02:00
Dirk-Jan C. Binnema e2f57e328a mu4e: update mu4e-message-contact-field-matches for regexp addresses 2020-10-19 09:52:35 +03:00
Dirk-Jan C. Binnema ca97d8c026 mu4e: mu4e-contact-process-function: filter out no-reply addresses
Add a default mu4e-contact-process-function, filtering out various
no-reply addresses.
2020-10-18 12:54:52 +03:00
Dirk-Jan C. Binnema 3937b70f13 mu4e: use sorted list in mu4e-contacts-info
Sort by rank.
2020-10-18 12:53:43 +03:00
Dirk-Jan C. Binnema 1957bfa966 mu4e.texi: Remove mu4e-compose-complete-ignore-address-regexp mention
It's mu4e-contact-process-function instead these days.

Fixes #1801
Fixes #1799
2020-10-17 15:43:48 +03:00
Dirk-Jan C. Binnema 5379ab0c4b mu4e: do extra sanity check for mu version
One very common question / github issue. Hopefully this avoids some.
2020-10-17 15:38:24 +03:00
Dirk-Jan C. Binnema 5e069d9a6f mu4e: support regexp patterns for personal addresses 2020-10-17 15:38:24 +03:00
Dirk-Jan C. Binnema 9bf32e720b mu4e: add mu4e-headers-precise-alignment defcustom
Precise alignment is nice, but also noticeably slower than the
old (crude) alignment; so make it optional and turned off by default for
now.
2020-10-11 12:35:48 +03:00
Lockywolf ef6ce58551 Fix typo. 2020-10-10 23:09:37 +08:00
Lockywolf 6a7bc30b9a Adjust the improvised sauron-biff with better naming. 2020-10-10 22:59:59 +08:00
Lockywolf 9c8a366e81 Replace Marmalade reference with MELPA. 2020-10-10 15:47:23 +08:00
Lockywolf 961e83b4ca Add reference about read-mail-command to mu4e.texi. 2020-10-10 15:28:31 +08:00
Jeff Filipovits 8ce966778a Properly align variable-pitch faces in header view 2020-10-06 21:50:57 +03:00
Juan Jose Garcia-Ripoll 071c60d229 Allow use of Maildir FAT extension changing the Maildir info separator 2020-10-04 16:47:42 +02:00
Dirk-Jan C. Binnema f18044f5b7 mu4e: gnus-view: Make sure to clean up gnus mm buffers (typo)
Fix typo in previous.
2020-08-09 17:17:23 +03:00
Dirk-Jan C. Binnema 0d6bf906fe mu4e: gnus-view: Make sure to clean up gnus mm buffers
After leaving a gnus-view buffer, we should clean up the the mm-*
buffers it creates; we were leaking those.

Fixes issue #1781
2020-08-09 17:12:40 +03:00
Jesus Bermudez Velazquez a5fbf5af39
Add Org entry when accepting event
When clicking "Accept" event, if the entry is new
it is not added to the Org file, besides having
gnus-icalendar-org-enabled-p set to true.

This modification changes that, so that a new entry
is added or an existing one is modified.
2020-08-03 09:33:09 +01:00
Jerry Snitselaar 3a8fc95bfc mu4e-headers: allow pipe through shell from headers view
Being able to pipe through shell from the headers view is
convenient for some use cases, so wire it up to work.

Resolves #1752

Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
2020-07-29 10:52:17 -07:00
Jonas Bernoulli b711ad9151 Fix typos 2020-07-25 16:46:47 +02:00
Dirk-Jan C. Binnema 6d73ca8ec3 mu4e: fix mu4e~proc-view-path
Ensure parameters match.
2020-07-25 17:20:39 +03:00
Dirk-Jan C. Binnema 6b32794f0e mu4e-proc: ensure mu4e~call-mu does not truncate
For non-nil settings of print-length, print-level.

(and remove an unused defun).
2020-07-25 17:02:01 +03:00
Dirk-Jan C. Binnema 7aebefe005 mu4e.texi: remove obsolete crypto footnote.
Fixes #1761.
2020-07-25 11:32:15 +03:00
Dirk-Jan C. Binnema de8f1d3e6a mu4e: Fix issue with mu4e-display-image
We were getting an error when `identify` is nil.
2020-07-11 10:14:57 +03:00
Dirk-Jan C. Binnema 2b5a747fad
Merge pull request #1746 from mrvdb/mu4e-image-scale
Satisfy both max height and width for images in view
2020-07-07 00:14:51 +03:00
Alex Bennée 5040d52b46 mu4e/mu4e-utils: save-excursion before updating the log buffer
If the user is scrolling and searching through the log buffer to see
what went wrong it gets very annoying having an update change things.
To avoid this wrap all buffer updating code in a save-excursion so
point is preserved.
2020-07-06 20:32:27 +01:00
Alex Bennée 8bc622ff09 mu4e/mu4e-utils: refactor mu4e-log buffer creation
Move all the one time setup for mu4e-log into its own private section.
2020-07-06 20:27:13 +01:00
Dato Simó 7efdebce30 NEWS.org, mu4e-vars.e.: fix spelling mu4e-contact-rewrite-function
mu4e-contact-rewrite-function was obsoleted in 1.4, but the entry in
NEWS.org entry, and the make-obsolete-variable call, referred to it as
mu4e-contacts-rewrite-function. (Should be "contact", not "contacts".)
2020-07-03 19:21:18 -03:00
Marcel van der Boom c698bc3a40 Satisfy both max height and width for images in view
- introduce private function mu4e~image-width-scale:
    determine the width to use for proportional scaling based on the image width, height and the max
    restrictions.
- use it in mu4e-display-image
2020-07-03 16:02:09 +02:00
Alex Bennée c074e7ea3b mu4e/mu4e-utils: only set so-long-mode once
Ideally we should separate the log buffer creation code so this van be
done a bit more cleanly. For now however only set so-long-mode once
otherwise you end up spamming the messages with constant:

  Changed to so-long-mode (from fundamental-mode) on account of line length.  C-c C-c to revert. [36 times]

As the messages keep rolling in.
2020-06-29 10:26:34 +01:00
Asilata Bapat (ANU) 84c59cef5a Fix org-mode links section documentation 2020-06-27 15:54:48 +10:00
Dirk-Jan C. Binnema 5ca0b6e148 mu4e-utils: use so-long-mode for logs when available 2020-06-26 19:25:45 +03:00