Commit Graph

266 Commits

Author SHA1 Message Date
Jonas Bernoulli 564d892701 Fix typos 2020-05-12 23:56:55 +02:00
Derek Upham d17abfc324 Make mu4e~view-message available to mu4e-view-mode-hooks.
This requires setting the buffer-local variable before calling the
major mode function, and protecting the variable from the standard
mode-change cleanup.
2020-05-06 20:23:29 -07:00
Dirk-Jan C. Binnema 1919146b94 mu4e: centralize mode-line context setting code
Add mu4e-context-in-modeline to handle all setting of context in the
mode-line, to address some corner-cases with the current setup.
2020-05-01 22:44:45 +03:00
Dirk-Jan C. Binnema b37569964a mu4e-view: fix gnus-button click for emacs 26
There are some behavioral differences causing the RET binding in emacs
26.3 (an possibly others) to be active even in gnus mode; this breaks
clicking URLs.

Attempt to work around that.
2020-04-21 00:09:45 +03:00
Alex Murray 43dd60e523
Fix displaying ical attachments after PR #1633 2020-04-08 13:29:16 +09:30
Christophe Troestler ed123431db Fix displaying ical attachments with no charset
Fixes https://github.com/djcb/mu/issues/1625
2020-04-05 22:58:20 +02:00
Dirk-Jan C. Binnema f8774ff98c mu4e: support prefix arguments with mu4e~native-def
Fixes #1611.
2020-03-11 20:47:25 +02:00
Dirk-Jan C. Binnema 59fb743851
Merge pull request #1607 from yellowmoneybank/typo
Fix Gnus typos
2020-03-06 21:16:19 +02:00
Philip K d4b40ac202 Unquoted mu4e-view-use-gnus in unless form 2020-03-06 15:31:20 +01:00
Philip K 5b570cee20 Fix Gnus typos 2020-03-06 15:30:36 +01:00
Dirk-Jan C. Binnema c3771cba3e Merge branch 'gpg' 2020-03-05 22:40:16 +02:00
Moritz Müller 090ff42c50 mu4e: Add a mime-type-check when importing a pgp-key from an attachment 2020-03-05 22:39:45 +02:00
Moritz Müller 81e0c49084 mu4e: Add option to attachment-options to import gpg public key
This pull request adds an option to the attachment-options that allows
to import pgp-public-keys.
2020-03-05 22:39:33 +02:00
Dirk-Jan C. Binnema d31dc8e69c mu4e: update menus
Avoid some gnus things we do not support. Rename View/Headers menu into Mu4e.
2020-03-05 20:50:51 +02:00
Dirk-Jan C. Binnema 5ffe878d30
Merge pull request #1605 from yellowmoneybank/mm
mu4e: Fix of the attachment actions
2020-03-04 21:18:25 +02:00
Moritz Müller 4cc057ee0a Fix of the attachment actions
With the current version of the mu server, it is not possible open
attachments, because the server expects symbols as parameters, but
mu4e sends strings.
This change fixes this.
2020-03-04 10:55:35 +01:00
Dirk-Jan C. Binnema 58b462d4c3 mu4e-view: fix typo 2020-03-02 23:20:12 +02:00
Dirk-Jan C. Binnema 0465b273d3 mu4e: avoid mu-side crypto in gnus-mode
No need to decrypt/verify when we don't use the results.
2020-02-28 00:43:08 +02:00
Dirk-Jan C. Binnema 6b2bdf4f6d mu4e: avoid some errors when flipping through messages
Use special-mode for the loading buffer, and explicitly ignore n/p.

Fixes #1443.
Fixes #1217.
2020-02-27 23:15:04 +02:00
Dirk-Jan C. Binnema 81d47bf21f mu4e-view/gnus: do not load external images
Avoid tracking. Fixes #1434.
2020-02-27 00:44:49 +02:00
Hans-Peter Deifel 333067d47b mu4e: Fix quoting in M-q keybinding definition
In the keybinding defintions for mu4e-view-mode-map, the variable
mu4e-view-use-gnus was used quoted in an if condition, which means that the
condition always evaluated to true. Therefore, M-q would always be bound to
article-fill-long lines and never to mu4e-view-fill-long-lines.
2020-02-22 10:50:22 +01:00
Christophe Troestler e1db731f7d mu4e-view: (gnus) Remove duplicate bound variable
Fixes https://github.com/djcb/mu/issues/1269
2020-02-21 08:28:01 +01:00
Christophe Troestler a132f5c21f mu4e-view: (gnus) enable displaying custom headers
insert custom headers / mu4e specific headers when in gnus mode
2020-02-19 20:55:22 +02:00
Dirk-Jan C. Binnema e10fc21a9b mu4e: Rename 'Unnamed' sections 2020-02-18 23:49:50 +02:00
Jonas Bernoulli fe7a0e4da2 mu4e: Move various definitions into a better location 2020-02-18 23:49:50 +02:00
Jonas Bernoulli 74332947a0 mu4e: Split libraries into outline sections 2020-02-18 23:49:50 +02:00
Jonas Bernoulli 040c6578be mu4e: Place provide forms in their own sections
Use "_" as the title of that section so that it is less distracting
when sections are collapsed to get an overview of the library.

Using a separate section is useful because it reduces the risk of
accidentally into the middle of a library.
2020-02-18 23:49:50 +02:00
Jonas Bernoulli 6c58a311d1 mu4e: Add missing mandatory "FILE ends here" library footer 2020-02-18 23:49:50 +02:00
Jonas Bernoulli 83f0c9cea9 mu4e: Remove excess semicolons from library headers
Placing two semicolons on an otherwise empty line helps to logically
"connect" the surrounding "paragraphs", which in (only) some cases
makes sense.

Previously the three paragraphs of the permission statement were not
connected to each other like this, which is perfectly fine.  However
the preceding "This file is not part of GNU Emacs." line was connected
to the first paragraph, which does not make sense considering that the
latter is not connected two the second paragraph, which it relates to
more.

Once those two semicolons are gone, it also makes sense to remove
those from the second line.
2020-02-18 23:49:50 +02:00
Jonas Bernoulli 6d581c4ca0 mu4e~view-define-mode: Place doc-string in correct position 2020-02-17 14:28:00 +01:00
Jonas Bernoulli 9f26819efb mu4e: Demote a few broken commands to functions
It would was not possible to interactively invoke these functions
because their `interactive' form does not provide all the mandatory
arguments.
2020-02-17 14:28:00 +01:00
Jonas Bernoulli 6790c0d015 mu4e: Fix indentation 2020-02-17 14:28:00 +01:00
Dirk-Jan C. Binnema e1e26d1da2 mu4e: update to use server maildir/database/addresses
Mkae mu4e-maildir and mu4e-personal-addresses obsolete, we get those
from the server.
2020-02-09 00:15:49 +02:00
Christophe Troestler 8e3f7ba64a Load gnus-art when compiling
Commit edce635416 only loads it
dynamically when executing the function mu4e~view-gnus but as a
consequence many variables are undefined at compile time and, more
importantly, it is no longer possible to override the variable
gnus-display-mime-function with a let binding before calling
gnus-article-prepare-display
2020-01-27 15:24:39 +01:00
Thierry Volpiatto edce635416
Avoid loading all gnus package
when not necessary.

* mu4e/mu4e-view.el (mu4e~view-gnus): Require gnus-art here instead on
top of file.
2020-01-21 09:49:40 +01:00
Pedro Ribeiro Mendes Júnior 7b5195da89 mu4e: define mu4e-view-actions with defcustom instead of defvar
It allows the customization directly from Emacs Custom mode.  It is
done in a similar way as for `mu4e-view-attachment-actions'.
2019-12-31 13:20:15 -03:00
Jonas Bernoulli f31d1b065d Fix typos 2019-11-06 16:13:39 +01:00
Dirk-Jan C. Binnema 3a8ceeea92 mu4e: disable K bindings in view
We don't support the K- bindings in the gnus-view, so let's avoid the
error.
2019-10-14 20:39:23 +03:00
Dirk-Jan C. Binnema 581785abe9 mu4e: view: disable some bindings for the gnus-based view
Disable some of the key-binding that don't quite work for the gnus-based
view. We'll probably want a gnus-view specific set of bindings, but at
least for now avoid the errors.
2019-09-16 22:02:16 +03:00
Thierry Volpiatto 9ddd035a1e
Completely use cl-lib and lexical-binding
Previously both cl-lib.el and cl.el were used, now use only cl-lib.el.
Use lexical-binding where needed instead of requiring cl just for
`lexical-let`.
Replace some add-to-list with cl-pushnew as add-to-list is not
recommended in lisp program and anyway doesn't work properly with
lexical binding.
2019-09-14 12:39:51 +02:00
Christophe Troestler 121bb00278 mu4e (ical): Make sure all user emails known to mu4e are used for ical events 2019-07-13 14:07:10 +02:00
Christophe Troestler 1078fee2c5 mu4e (ical): Allow to reply to icalendar invitations
Fixes https://github.com/djcb/mu/issues/994
2019-07-13 14:07:03 +02:00
djcb a2c27c0c5a mu4e: construct attach map even when not showing header
This is a bit of hack, but solves the problem; even when not _showing_
the attachments-header, construct the corresponding map, so the
keybindings work.
2019-04-27 08:38:53 +03:00
Dirk-Jan C. Binnema d979efb9c5
Merge pull request #1374 from Chris00/prepare-display
mu4e: Increase `max-specpdl-size' when decoding messages
2019-04-27 08:21:10 +03:00
Pierre Neidhardt bbc055d75a mu4e: Implement mu4e-*-mark-or-move-to-trash (e.g. for Gmail) 2019-03-04 15:46:54 +01:00
djcb 31f73b32a7 mu4e: make mu4e~view-message buffer-local
So we don't leak it outside mu4e. `mu4e-message-at-point` should do the
right thing.
2019-02-25 21:49:41 +02:00
Christophe Troestler 4e7c2cd24f mu4e: properly display messages in the draft folder (with gnus) 2019-02-10 13:43:55 +01:00
Christophe Troestler 4b868e742f mu4e: Remove article-de-*-unreadable which prevent decoding 2019-02-10 13:10:44 +01:00
Christophe Troestler d9066d869a Increase `max-specpdl-size' when decoding messages
Some messages (e.g. Outlook automatic replies) need a greater value
than the default one of `max-specpdl-size' to be displayed properly.
2019-02-02 15:47:22 +01:00
djcb 156c421113 mu4e: fix some gnus body decoding issues
Hat-tip: Chris00
2019-02-02 13:44:49 +02:00