1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-22 07:06:48 +02:00
Commit Graph

1757 Commits

Author SHA1 Message Date
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
Dirk-Jan C. Binnema
3715bb0c5e mu4e-headers: optimize header writing a bit
Try to make writing out the headers in the headers buffer slightly
faster.
2020-06-26 19:24:40 +03:00
Dirk-Jan C. Binnema
7db921c69d
Merge pull request #1731 from cireu/require-desktop-on-use
mu4e: Delay the execution of workaround for desktop.el
2020-06-21 17:50:40 +03:00
Zhu Zihao
f239616fb8 mu4e: Delay the execution of workaround for desktop.el
Some Emacs user may never use desktop.el, We don't need to require desktop.el
for them.
2020-06-20 13:45:33 +08:00
Christophe Troestler
d49634245d ical: Don't insert a multipart/alternative with textual event
It seems that tha multipart/alternative confuses Outlook.

Fixes https://github.com/djcb/mu/issues/1729
2020-06-18 23:21:51 +02:00
Christophe Troestler
6ced62685a ical: save the citation in the kill-ring 2020-06-18 23:21:51 +02:00
Christophe Troestler
75bd856f50 ical: Add instructions to add events to a diary file 2020-06-18 23:21:51 +02:00
Christophe Troestler
c8f91d365f ical: respect the 80 chars width limit 2020-06-18 23:21:51 +02: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
2ee65f5b1a mu4e: add mu4e-mu-debug for verbosely logging the server
With mu4e-mu-debug set to t, the mu server will be more verbose in its
logging (mu.log or the journal)
2020-06-13 16:56:41 +03:00
Dirk-Jan C. Binnema
e37486fb5a mu4e: auto-enable logging when pressing '$' 2020-06-13 16:56:41 +03:00
Dirk-Jan C. Binnema
ee99176fce mu4e: mu4e-info is not interactive 2020-06-08 19:52:19 +03:00
Dirk-Jan C. Binnema
b8a2d1fd6c mu4e-headers: require mule-util for truncate-string-ellipsis
Seems this is needed in some setups. Not fully clear why, but harmless.

Fixes #1717.
2020-06-07 18:40:48 +03:00
Dirk-Jan C. Binnema
5fdb205b8b mu4e: Update for sexp format changes 2020-06-06 14:27:25 +03:00
Dirk-Jan C. Binnema
b672f6bc1d mu4e: avoid trouble with truncate-string-to-width
Treatment of the 'ellipsis' parameter is a bit unclear, gave errors in
some cases.

Fixes #1716
2020-06-03 21:24:14 +03:00
Dirk-Jan C. Binnema
cfb59e36b0 mu4e-org: add missing defs when linking query
Fixes: #1714.
2020-06-01 09:55:24 +03:00
Dirk-Jan C. Binnema
73be015cd0 fixup: mu4e: some cleanups / bytecomp warning fixes 2020-05-28 10:21:16 +03:00
Philip K
29ad71fdf2 Marked mu4e-compose-context-policy type as greedy 2020-05-27 22:54:15 +03:00
Philip K
bd87dcfd9b Removed default case in mu4e-compose-crypto-message 2020-05-27 22:54:15 +03:00
Dirk-Jan C. Binnema
336cad35e6 Merged crypto-policy configuration into one variable 2020-05-27 22:53:41 +03:00
Dirk-Jan C. Binnema
c9a9d4be95 mu4e: handle compose-mail when mu4e is not yet running
We were trying to start mu4e asynchronously, then compose the mail but
this doesn't quite work the way some external packages expected, and
this would fail.

Fixes #1710
Fixes #1698
2020-05-27 22:34:43 +03:00
Dirk-Jan C. Binnema
454e8d9a3a mu4e: allow for hiding fully read maildirs/bookmarks
Add a variable mu4e-main-hide-fully-read to control whether to _not_ show
maildir / bookmark links if they're fully read.
2020-05-27 18:56:23 +03:00
Dirk-Jan C. Binnema
7900a4d050 mu4e-vars: update mu4e-maildir-shortcuts docs
Document :hide / :hide-unread
2020-05-26 23:12:26 +03:00
Sean Farley
3ea1784aad mu4e-main: use string-width' over length'
Better for utf-8 but still difficult to align due to non-monospaced
characters.
2020-05-26 23:12:26 +03:00
Sean Farley
d68c0fd5b5 mu4e-main: decode strings as utf-8
This fixes both bookmarks and maildirs with non-ASCII names. Thanks to
@scturtle for pointing this out!
2020-05-26 23:12:26 +03:00
Sean Farley
9f1e231824 mu4e-main: fix off-by-one error in `mu4e~main-action-str'
For bookmarks, which specify the key combo instead of using the first
character of the string had an off-by-one error in the mouse
highlighting since it wasn't consuming that first letter.
2020-05-26 23:12:26 +03:00
Sean Farley
5110b02349 mu4e-main: use longest bookmark/mailder count in bookmarks section 2020-05-26 23:12:26 +03:00
Sean Farley
a070cca79d mu4e-main: add new method for constructing the maildir list
This method is exactly like `mu4e~main-bookmarks' but for maildirs
instead of bookmarks.
2020-05-26 23:12:26 +03:00
Sean Farley
41f0c5a92a mu4e-utils: add method to count the longest name
Consolidates the logic for looping over bookmarks and maildirs so that
we can compute the longest name.
2020-05-26 23:12:26 +03:00
Sean Farley
c2b0d2db6e mu4e-utils: send maildir queries along with bookmarks
When `mu4e-main-show-maildirs' is non-nil, we append the list of maildir
queries to the mu server.
2020-05-26 23:12:26 +03:00
Sean Farley
a899dd04f7 mu4e-utils: add new method to transform `mu4e-maildir-shortcuts'
This will allow iterating over `mu4e-maildir-shortcuts' the same way as
`mu4e-bookmarks' (i.e. adding :name and :query to the plist).
2020-05-26 20:57:40 +03:00
Dirk-Jan C. Binnema
7ed8d509ee mu4e-org: support more attributes for capturing
item                                                  description
-----------------------------------------------------+------------------------
%:date, %:date-timestamp, %d:date-timestamp-inactive | date, org timestamps
%:from, %:fromname, %:fromaddress                    | sender, name/address
%:to, %:toname, %:toaddress                          | recipient, name/address
%:maildir                                            | maildir for the message
%:message-id                                         | message-id
%:path                                               | file system path
%:subject                                            | message subject

Fixes #1678
2020-05-26 20:17:50 +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
Dirk-Jan C. Binnema
d6e017c19f update documentation 2020-05-24 20:12:49 +03:00
Dirk-Jan C. Binnema
9030cfc657 mu4e-maildir-shortcuts: update for today's functionality
The text:

  Optionally, you can add the following:
  `:hide'  - if t, maildir is hdden from the main-view and speedbar.
  `:hide-unread' - do not show the counts of unread/total number
  of messages for the maildir in the main-view.

is not true for the current version, so let's remove it.

*
2020-05-20 07:12:04 +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
Dirk-Jan C. Binnema
1c88651f41 mu4e: remove easy-accounts / no-trash-providers for now
The code still has some problems, and the original author has moved
elsewhere (which is fine of course), but it's not ready enough for
1.4.... yet. So let's remove it for now and check again with 1.5+.
2020-05-18 18:56:15 +03:00
Dirk-Jan C. Binnema
5bc63119e1
Merge pull request #1700 from derek-upham/master
Strip properties from mu4e-completing-read-function results.
2020-05-18 18:55:37 +03:00
Derek Upham
bb865fd1af Strip properties from mu4e-completing-read-function results.
Some completion engines (like "flx") decorate the strings that they
return.  If MU4E passes such a string down to MU, the "format" call
preserves the text properties in the generated S-expression, producing
an invalid query.  MU4E itself has no interest in those decorations,
so strip them out as early as possible from all prompts that use
mu4e-completing-read-function.
2020-05-18 08:12:56 -07:00
Dirk-Jan C. Binnema
f016f257f9 mu4e: support 'no trash flag' for all mark-for-trash
Use a non-macro implementation for mu4e-(view|headers)-mark-for-trash,
and honor the no-trash flag.

Fixes #1687.
2020-05-16 12:43:23 +03:00
Dirk-Jan C. Binnema
a2d315df4c mu4e-compose: fix external use (`compose-mail')
Ensure compose-mail with mu works again, including passing various
parameters.

Fixes #1695.
2020-05-15 23:42:05 +03:00
Dirk-Jan C. Binnema
4855004161
Merge pull request #1691 from vqhuy/fix-make-context
Fix `make-mu4e-context-account()` set incorrect query for bookmarks
2020-05-13 23:59:43 +03:00
Jonas Bernoulli
564d892701 Fix typos 2020-05-12 23:56:55 +02:00
Vu Quoc Huy
1b0d06f706 Fix make-mu4e-context-account
set the correct query for bookmarks when no-trash-flag is used
2020-05-12 00:38:16 +02:00
Giuseppe Fierro
08318af76c Fix mu4e-headers-mark-or-move-to-trash()
Fix mu4e-headers-mark-or-move-to-trash() to pick right trash folder when
:no-trash-flag option is used in a context.
2020-05-10 08:25:41 +02:00
Dirk-Jan C. Binnema
2b105009aa mu4e.texi: Add note about s/mime 2020-05-09 23:14:01 +03:00
Dirk-Jan C. Binnema
30bad6a6ff
Merge pull request #1683 from manuel-arguelles/change-info-spacing
mu4e: change spacing in main view for info section
2020-05-09 23:13:31 +03:00
Dirk-Jan C. Binnema
f4ac9d2538
Merge pull request #1685 from derek-upham/mu4e-view-hook-fix
Make mu4e~view-message available to mu4e-view-mode-hooks.
2020-05-09 23:12:20 +03:00
Manuel Argüelles
36701c9336 mu4e: change spacing in main view for info section
Change the spaces to tab to be consistent with the other entries in the
main view.
2020-05-08 11:24:31 -05: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
05dc6333c3 mu4e-format: decode strings to utf8
Thanks to thierryvolpiatto

Fixes #1676.
2020-05-05 22:14:53 +03:00
Dirk-Jan C. Binnema
75c8262a01 mu4e-bookmarks: improve documentation 2020-05-05 21:45:48 +03:00
Dirk-Jan C. Binnema
7ddcc2159f mu4e: better error when mu4e-mu-binary is not set 2020-05-05 21:22:35 +03:00
Dirk-Jan C. Binnema
935232c94d mu4e: Update documentation, vars
Fixes #1675.
2020-05-04 21:03:44 +03:00
Dirk-Jan C. Binnema
0e69ac0f83 mu4e: use :hide-unread in doc 2020-05-04 20:53:12 +03:00
Stephen Eglen
a2a201eef6
Is it :hide-unread or :show-unread
I think the docstring is correct and the variable setting is wrong -- the code elsewhere  (mu4e~start) seems to check hide-unread property.
2020-05-04 09:27:14 +01:00
Dirk-Jan C. Binnema
59ed21b01a mu4e: start mu4e in compose-handler, when necessary 2020-05-01 22:44:45 +03:00
Dirk-Jan C. Binnema
4f113544f7 mu4e: update documentation 2020-05-01 22:44:45 +03: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
Stephen Eglen
42f6edb2bf
typo in mu4e.texi
typo
2020-05-01 11:29:51 +01:00
Dirk-Jan C. Binnema
7a47784d78 mu4e-proc: only rename when maildir is set
The restores the old behavior (but with the fix for non-boolean
mu4e-change-filename-when-moving)

And some cleanups as suggested by Jonas Bernoulli.
2020-04-30 11:34:59 +03:00
Dirk-Jan C. Binnema
0f5f6c4e13 mu4e: ask for context in mu4e~start
This is a little risky, but it avoids the case where the
context-question is hidden by the response from the server ("blabla
contacts" etc.)
2020-04-27 21:51:23 +03:00
Dirk-Jan C. Binnema
a5dccffcdf mu4e-proc: ensure some booleans are nil/t
Some are described as 'non-nil', but the backend only accepts symbols,
not e.g. a literal '1'.
2020-04-27 20:51:09 +03:00
Dirk-Jan C. Binnema
4fcef3c2eb update documentation 2020-04-27 11:56:35 +03:00
Dennis Ogbe
a153e08edb fix `mu4e-main-buffer-hide-personal-addresses' 2020-04-22 16:55:27 -04:00
Dirk-Jan C. Binnema
263e5a160d mu4e: Don't use (mu4e-root-maildir) with easy-accounts
Use an older version, and update the docs.
2020-04-22 09:53:49 +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
Dominik Schrempf
ccbd81f6ef ~/.mu -> ~/.cache/mu 2020-04-19 13:02:48 +02:00
Dirk-Jan C. Binnema
7ac7e746cf mu4e: allow for build fancy html docs
This is for local use only, for now.
2020-04-18 13:27:00 +03:00
Dirk-Jan C. Binnema
70d1c05ecf mu4e: update docstring
mu4e-personal-addresses
2020-04-13 11:34:31 +03:00
Dirk-Jan C. Binnema
e9fb70e50c mu4e: update documentation
Remove mentions of mu4e-user-mail-address-list.
2020-04-11 22:21:48 +03:00
Dirk-Jan C. Binnema
86bfa8fc88 mu4e: update documentation 2020-04-09 22:07:58 +03:00
Dirk-Jan C. Binnema
4584b61ea1 mu4e.texi: minor update 2020-04-08 11:26:12 +03:00
Dirk-Jan C. Binnema
26fb011026 mu4e: main: don't use string-join, it's too new
Fixes #1636
2020-04-08 11:26:12 +03:00
Alex Murray
43dd60e523
Fix displaying ical attachments after PR #1633 2020-04-08 13:29:16 +09:30
Dirk-Jan C. Binnema
abafd658d4 mu4e: show mu4e-personal-addresses, add check
Show the personal addresses in the main screen (allow hiding them with
mu4e-main-view-hide-addresses), as well as a check for the case where
user's user-email-address is not part of the personal addresses.
2020-04-06 20:52:24 +03:00
Dirk-Jan C. Binnema
edd47ced71 mu4e: use mu4e-attachment-dir for attaching, too
Use mu4e-attachment-dir also for attaching (and not just for extracting)
attachments; the default (current draft message dir) is not very useful.
2020-04-06 20:52:24 +03:00
Dirk-Jan C. Binnema
51f5ee829d
Merge pull request #1633 from Chris00/master
mu4e: Fix displaying ical attachments with no charset
2020-04-06 00:09:01 +03:00