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
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
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
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
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
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
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
dc14f93c06
mu4e: remove mu4e-utils
...
No longer needed; remove all traces.
2021-08-30 08:36:41 +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
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
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
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
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
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
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
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
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
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
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
Thierry Volpiatto
4830e7de14
Remove null byte added probably by error
2020-12-26 08:49:19 +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
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
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
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
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
Dirk-Jan C. Binnema
5e069d9a6f
mu4e: support regexp patterns for personal addresses
2020-10-17 15:38:24 +03: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
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
3dc4b93989
mu4e/server: implement mark-as-read for (view ...)
...
Instead of a multi-step process to display an unread message (ie. get
the original, notice it's unread, then update it, replace the message
with update one etc.), we now handle that in the (view /./..) command on
the server side.
Simplifies things, and is faster (which could be noticeable, esp. if
e.g. signature verification is part of the process)
2020-06-13 16:56:41 +03:00
Dirk-Jan C. Binnema
73be015cd0
fixup: mu4e: some cleanups / bytecomp warning fixes
2020-05-28 10:21:16 +03:00
Dirk-Jan C. Binnema
57d38aa707
mu4e: honor truncate-string-ellipsis
...
Use truncate-string-to-width and thus honor truncate-string-ellipsis; so
to get 'fancy' ellipsis, one can set:
(setq truncate-string-ellipsis "…")
2020-05-25 18:34:42 +03:00
Marcel van der Boom
fa5b181e25
Merge remote-tracking branch 'upstream/master'
2020-05-19 09:09:08 +02:00
Marcel van der Boom
01736c9a65
Add missing space between signature verification and signers
2020-05-19 09:08:30 +02:00