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

1470 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema
e18c86900c mu4e: remove debug message from -proc
Fixes #1514
2019-11-25 23:16:10 +02:00
Jonas Bernoulli
f31d1b065d Fix typos 2019-11-06 16:13:39 +01:00
Dirk-Jan C. Binnema
ed6842e5bd mu4e: inherit mu4e-header-highlight-face from hl-line
...instead of `region'.

Fixes: #1500.
2019-10-27 14:48:01 +02:00
Dirk-Jan C. Binnema
d7a5349a74 mu4e-comnpose: avoid jumping to headers when saving
Wrap the before-save-hook function in a save-excursion.

(HT: Joost Kremers)
2019-10-23 20:21:24 +03:00
Dirk-Jan C. Binnema
798aa12a34 mu4e-compose: Generate message-id for drafts
Ensure even drafts have a message-id, since the querying machinery wants
that.
2019-10-20 16:13:32 +03:00
Dirk-Jan C. Binnema
548dc16f67 mu4e-draft: Include a date in draft
Unconditionally include a date in draft messages; update it whenever
we're saving or sending.
2019-10-20 16:12:11 +03:00
Dirk-Jan C. Binnema
4cb3ca3585 mu4e-headers: Improve docstring for 'mu4e-headers-results-limit'
Add a few notes on how the limit is used.
2019-10-20 14:28:41 +03: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
30865c9d2c mu4e: add mu4e-contacts-info
Add an interactive function mu4e-contacts-info, to display some
information about the contacts cache.
2019-09-26 00:35:23 +03:00
Dirk-Jan C. Binnema
9457f2f591
Merge pull request #1486 from thierryvolpiatto/more_lexical-binding
Add lexical-binding to all files and fix warnings
2019-09-26 00:29:31 +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
e4f5576cfc
Add lexical-binding to all files and fix warnings
about free variables (declare) and unused lexical vars (prefix with "_").
2019-09-16 19:54:59 +02: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
Dirk-Jan C. Binnema
ca699324a3 mu4e: mu4e-compose: Fix configuration choices
End the choice group in the right place.
2019-08-10 10:53:52 +03:00
Paul W. Rankin
ca7449c575
Balance parens in mu4e-compose-context-policy
Fixes unbalanced parens in mu4e-compose-context-policy, which prevents Custom mode UI working.

Using standard indentation helps prevent missing these little issues.
2019-08-09 18:20:33 +10:00
Nathanael Gentry
b710e47d58
mu4e: fix make-mu4e-context-account to see name keyword arg 2019-07-30 16:47:09 -04:00
Dirk-Jan C. Binnema
5c5716d3f0 bump version to 1.3.4
plus some build tweaks.
2019-07-30 19:36:04 +03:00
Dirk-Jan C. Binnema
26dca831c6 mu4e: automatically rebuild database when possible 2019-07-30 08:51:04 +03:00
Dirk-Jan C. Binnema
632f383c38 mu: Default to XDG Base Directory Specification
Instead of using ~/.mu, use the XDG Base Directory Specification, typically:
  ~/.cache/xapian
  ~/.cache/mu.log
  ~/.cache/parts
  ~/.config/bookmarks

Update dependencies, documentation.
2019-07-13 16:00:28 +03:00
Christophe Troestler
5ca3254ef9 mu4e (ical): Run message deletion after mu4e-sent-handler 2019-07-13 14:11:54 +02:00
Christophe Troestler
a6efefb622 mu4e (ical): Mention mu4e-icalendar-trash-after-reply in the configuration 2019-07-13 14:11:54 +02:00
Christophe Troestler
19f09e6e59 mu4e (ical): Use message-remove-header to update the reply headers
Fixes https://github.com/djcb/mu/pull/1403#discussion_r277174623
2019-07-13 14:11:54 +02:00
Christophe Troestler
e48835fadf mu4e (ical): Add header and documentation and make checkdoc happy 2019-07-13 14:11:54 +02:00
Christophe Troestler
676ccc6e55 mu4e (ical): Set automatically composed reply ical message unmodified 2019-07-13 14:11:43 +02:00
Christophe Troestler
18e12ed3cb mu4e (ical): Make possible to automatically trash a replied ical event 2019-07-13 14:10:07 +02:00
Christophe Troestler
834582b7bd mu4e (ical): Optionally save ical events to a diary file upon reply 2019-07-13 14:08:17 +02:00
Christophe Troestler
0f38dd4b1a mu4e (ical): Display ical buttons only when method∈{REQUEST,PUBLISH} 2019-07-13 14:07:34 +02:00
Christophe Troestler
66e514c584 mu4e (ical): Use mu4e-user-mail-address-list when replying to ical events 2019-07-13 14:07:20 +02:00
Christophe Troestler
5573e7bed0 mu4e (ical): Use a text/plain alternative when replying to ical events 2019-07-13 14:07:18 +02:00
Christophe Troestler
5ccd58b40b mu4e (ical): Update installation instructions 2019-07-13 14:07:15 +02:00
Christophe Troestler
14d5b9db6e mu4e (ical): Make sure the organizer is the person replied to 2019-07-13 14:07:12 +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
2e676b6c11 mu4e (ical): Insert a text summary of the reply .ics file
This is important because the users of some email clients (such as
Outlook Wep Application) cannot read .ics files.  See e.g.,
https://answers.microsoft.com/en-us/office/forum/office_2010-outlook/how-do-i-open-ics-files-in-outlook-web-access/c765c07e-20ae-44b5-baa4-1d4f94fdfbeb
2019-07-13 14:07:07 +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
Christophe Troestler
c639a939f4 mu4e (ical): Fix indentation & typos 2019-07-13 14:06:57 +02:00
Zack Newman
2a51699ae5 mu4e: Update reference to obsolete variable in documentation 2019-06-19 13:30:17 -04:00
Dirk-Jan C. Binnema
c30b9fa49e org-mu4e: fix org linking
And some whitespace / flycheck cleanups.
2019-05-26 18:50:14 +03:00
Dirk-Jan C. Binnema
2beb2eda02 mu4e-contacts: cleanups, save-match-data
Whitespace cleanups

Flycheck cleanups

Save the match data for (after|before)-save-hook
2019-05-25 17:38:58 +03:00
djcb
5a8ac5c023 mu4e: don't compile old-org-mu4e.el
It generates warnings.
2019-05-25 10:39:40 +03:00
djcb
c6a0771480 mu4e-actions: fix some compiler warnings 2019-05-25 10:39:40 +03:00
djcb
10ddaebf06 mu4e-draft: fix flycheck warnings + whitespace 2019-05-23 21:45:03 +03:00
djcb
0d33e64dc9 mu4e: don't sort contacts in completion handler
mu4e~sort-contacts-for-completion no longer exists.
2019-05-13 13:29:25 +03:00
djcb
7563b89c9c mu4e: support incremental contacts 2019-05-11 13:41:03 +03:00
djcb
c858651d0c doc: document the new contacts handling
mu4e.texi and NEWS.org
2019-05-11 13:41:03 +03:00
djcb
0437edc982 mu4e: mu4e-proc: Fix flymake warnings, whitespace 2019-05-11 13:41:03 +03:00
Dirk-Jan C. Binnema
9a225365c1
Merge pull request #1413 from Chris00/rm-handler
mu4e: Fix mu4e~headers-remove-handler
2019-05-08 21:32:12 +03:00
Damien Garaud
91c0681781 mu4e: fix a remaining local variable 'short'
in the function 'mu4e~action-header-to-html'
2019-04-30 18:53:12 +02:00
Christophe Troestler
939c066732 Fix mu4e~headers-remove-handler 2019-04-29 20:28:24 +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
Christophe Troestler
325c623575 Escape HTML entities 2019-04-21 21:59:10 +02:00
Christophe Troestler
2a8c57e56d Do not repeat the "From" and "To" when converting to HTML
Before this commit the HTML was looking as

From: From: email
To: To: email
2019-04-20 12:19:21 +02:00
Yuri D'Elia
8eb0c2eb49 Quote '@' symbols in @code section 2019-04-18 16:16:16 +02:00
Dirk-Jan C. Binnema
2ec1b46076
Merge pull request #1390 from Ambrevar/easy-accounts
mu4e: Easy accounts with make-mu4e-context-account
2019-04-17 22:59:30 +03:00
djcb
e9970fb890 mu4e-actions: fix whitespace, flycheck warnings 2019-04-15 07:38:58 +03:00
djcb
da1cb4e97b mu4e-actions: fix mu4e~write-body-to-html
Use mu4e~view-construct-contacts-header instead of a non-existing
function.
2019-04-15 07:19:44 +03:00
Dirk-Jan C. Binnema
a90fe78f62
Merge pull request #1386 from davidcsterratt/master
Issue #1385: get mu4e-action-view-in-browser to show headers
2019-04-13 12:36:39 +03:00
Sebastian Miele
eb042404f6 mu4e.texi: Fix a @ref 2019-03-24 15:46:07 +01:00
Sebastian Miele
b1ae7d52c8 mu4e.texi: Fix typo 2019-03-24 15:46:07 +01:00
Dirk-Jan C. Binnema
826d555313
Merge pull request #1393 from whxvd/typos
mu4e: Fix some typos
2019-03-24 12:17:19 +02:00
Kevin J. Foley
2108bbc1a4 Look at all frames for header buffer when auto updating headers 2019-03-11 18:21:13 -04:00
Sebastian Miele
10c0507665 mu4e: Fix some typos 2019-03-11 13:34:50 +01:00
Pierre Neidhardt
610bc91547 mu4e: Update doc with "Trashing messages" section 2019-03-04 16:32:33 +01:00
Pierre Neidhardt
c18566b815 mu4e: Update doc with "Account setup helper" section 2019-03-04 16:32:33 +01:00
Pierre Neidhardt
67a110d2fb mu4e: Add `make-mu4e-context-account' for easy setup with sane defaults 2019-03-04 16:26:55 +01: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
f9b615c3bb mu4e: use a simple x as the 'fancy' delete mark
The 'fancy' version had some interesting interactions (see #1245), so
this is the easiest way to avoid those.

Also some flycheck fixes.
2019-03-02 11:46:34 +02: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
djcb
9cf120b012 mu4e-view: only try to link messages when there is one
Otherwise, org-store-link elsewhere might hit the mu4e error.
2019-02-21 17:21:56 +02:00
David C Sterratt
0348822381 Issue #1385: get mu4e-action-view-in-browser to show headers
Here is a very simple patch that achieves what I want, though I am
sure there are nicer ways of doing it.
2019-02-20 18:17:53 +00:00
djcb
1b408928c8 mu4e: allow linking outside mu4e with org-mu4e-store-link
This should help e.g. mu4e-conversation.
2019-02-18 07:22:16 +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
Dirk-Jan C. Binnema
f57381bf4a
Merge pull request #1320 from jabranham/replace-cl-cl-lib
mu4e: Replace cl with cl-lib
2019-02-02 13:37:50 +02:00
Christophe Troestler
0746a4affe Set mml-enable-flowed according to mu4e-compose-format-flowed
Fixes https://github.com/djcb/mu/issues/1358
2019-01-29 10:35:06 +01:00
Junyeong Jeong
cc8a6c0c78 mu4e-headers.el: fix highlighting when headers window is not selected.
Highlighting target header is not working, when message view is selected and
mu4e-headers window is out of focus.

To fix this, call mu4e highlight function with mu4e-headers as current buffer.
2019-01-11 17:01:54 +09:00
Junyeong Jeong
3b9f9e5c39 mu4e-headers.el: fix for jumping specific message after search
While reading message using split view, search can be triggered after
automatic update and index. In this case, mu4e headers is not inside selected
window and mu4e-headers-goto-message-id fails to move window point of mu4e
headers.

To fix this, call set-window-point for mu4e headers window explitctly.
2019-01-11 16:24:40 +09:00
djcb
57150a47f3 mu4e: update doc with outlook note
Thanks to Ken Mankoff.
2019-01-08 22:28:25 +02:00
Alex Branham
2674ca5583
mu4e: Replace cl with cl-lib 2019-01-04 16:03:58 -06:00
djcb
9352219dcf mu4e: mark compose buffers as non-modified later
To avoid marking user-unchanged buffers as modified.
2018-12-12 21:35:46 +02:00
djcb
ff4280d687 mu4e-view: some flycheck warning fixes 2018-12-01 12:55:44 +02:00
djcb
fa73d6fd8e mu4e-view: use permanent-local, activate mu4e-view later
Mark some variables as use permanent-local so they'll survive a
major-mode change. Activate mu4e-view later, so hooks have some more
material to work with.
2018-12-01 12:55:44 +02:00
djcb
2c08006335 mu4e: mu4e-message flycheck fixes 2018-11-19 21:41:28 +02:00
Dirk-Jan C. Binnema
de1ce35884
Merge pull request #1341 from abo-abo/fix-view-attachment
mu4e/mu4e-view.el (mu4e-view-open-attachment): Ensure attachments are set
2018-11-19 21:40:52 +02:00
Dirk-Jan C. Binnema
c4c17d32e1
Merge pull request #1340 from alexmurray/master
mu4e: Non-breaking spaces should be replaced with a space and not removed
2018-11-19 21:02:06 +02:00
Dirk-Jan C. Binnema
e6c24c28a3
Merge pull request #1338 from ibizaman/bookmark-function
mu4e: allow :query to accept a function returning a query string
2018-11-19 20:59:50 +02:00
Oleh Krehel
6a8bbbd55f mu4e/mu4e-view.el (mu4e-view-open-attachment): Ensure attachments are set
Before this change, I would press "o" and `mu4e~view-attach-map' would
be nil. Now it works as expected.
2018-11-18 16:22:39 +01:00
Alex Murray
283ba93b8a Non-breaking spaces should be replaced with a space and not removed
Fixes #1339
2018-11-14 11:36:36 +10:30
djcb
509a62d7a8 mu4e: flycheck fixes in mu4e-vars.el 2018-11-12 22:03:28 +02:00
ibizaman
a0c2cf2313 allow :query to accept a function returning a query string
This allows one to dynamically generate the query string, based for
example on the value of a variable.
2018-11-10 22:30:25 -08:00
djcb
700e5e76da mu4e-view: switch mode before filling message
That way, the attachment map etc. stay valid.
2018-11-07 21:24:02 +02:00
djcb
7dcb9087c2 mu4e: enable mu4e-view *before* internal processing
So, user gets a pristine message, and hashes etc. are still valid (since
they don't survive mu4e-view-mode)
2018-11-05 18:39:56 +02:00
djcb
69ed3498bb mu4e: mu4e-index-updated-hook should not depend on mu4e~contacts 2018-11-04 13:20:20 +02:00
djcb
4e1cfdf668 mu4e/doc: add notes about using Hydra 2018-11-04 12:49:35 +02:00
djcb
c69131e645 mu4e/doc: extend notes about speeding up indexing 2018-11-04 12:48:52 +02:00
djcb
d5a4ba06ce mu4e: switch to mu4e-view later (internal)
When using 'internal' mode, activate mu4e-view-mode only after the
buffer has been set up, so hooks have some more interesting material to
work with.
2018-11-04 12:31:32 +02:00
Philipp Ittershagen
4fe4345b88 mu4e: restrict deleting trailing whitespace to region
If no region is selected, mu4e-fill-paragraph will delete trailing whitespace on
all lines in the buffer.  This might not be desired, e.g. when adding a
signature to the mail which is delimited by the line '-- '.
2018-10-10 14:27:05 +02:00
Cheong Yiu Fung
e0f7c4b05e org-mu4e: fix org-mu4e-store-and-capture for Org 9.0
As discussed in #947, links need to be redefined for Org 9. This is
fixed in
[b885dd3](b885dd308e). At
the same time, `org-mu4e-store-and-capture` is still using
`org-mu4e-store-link` only, so it doesn't work in Org 9. Fix it
by interactively calling `org-store-link` instead.
2018-09-21 11:55:58 +08:00
djcb
f8a5daa666 gnus: handle more non-ascii
Fix character decoding issues for some (but not all) messages. This to
Chris00 for this work on this!
2018-09-02 16:43:06 +03:00
djcb
665e8e5436 mu4e: mention gmime-3.0 in instructions 2018-09-01 10:25:48 +03:00
djcb
16fa5d9a22 server: maybe mark updates with :maybe-view
Don't updates messages when it's not needed, but don't use :view, since
it confuses mu4e's handlers.
2018-08-18 11:40:16 +03:00
Eric Danan
6fd6d839d7 mu4e: fix action to show thread for single-window mode
When in single-window mode and invoking `mu4e-action-show-thread` from
the view buffer, stay in the headers buffer rather than going back to
the view buffer.
2018-08-18 10:59:17 +03:00
djcb
84fce77d0a org-mu4e: small cleanups 2018-08-18 08:57:18 +03:00
Dirk-Jan C. Binnema
35d9c60a40
Merge pull request #1290 from ericdanan/org-mu4e
org-mu4e: move mu4e requirement inside org-mu4e-open
2018-08-18 08:54:17 +03:00
djcb
1d0b24afcf mu4e: activate mode before getting attachments/links
So the relevant hash-maps are valid (they would be nillified by changing
the mode otherwise).
2018-08-16 22:48:20 +03:00
Dirk-Jan C. Binnema
dbdf68040a
Merge pull request #1297 from aluaces/patch-1
mu4e: Tiny fix in documentation
2018-08-15 08:15:04 +03:00
djcb
abf02000ec mu4e: clean up mu4e~view-internal a bit 2018-08-14 22:20:32 +03:00
djcb
82e7d7c65d mu: better handle updating mail being viewed
instead of the the 'noupdate', add 'noview', so the headers still get
update but we don't render unread mail twice.
2018-08-14 21:59:41 +03:00
djcb
a4398ac93d mu4e/mu: optimize mark-as-read
Since cd649efb6b, opening an unread message first does a proc-move,
then proc-view.

Reason is that while we get the (:update ... ) from the move, that only
contains a skeleton message; we need the full view get images etc. This
means that we render the message _twice_.

Here we change add a flag for move to _not_ send the (:update ..), so
only the (:view ...) will trigger rendering of the message.
2018-08-12 14:00:59 +03:00
djcb
6e646ea794 mu4e: add webrtc to mailing-lists 2018-08-12 14:00:59 +03:00
Alberto Luaces
8219a9e748
Tiny fix in documentation 2018-08-11 19:32:25 +02:00
djcb
58492f8217 mu4e: Better handle context-switching in speedbar
Repaint the contents when the context changes
2018-07-14 11:32:57 +03:00
Eric Danan
268b888226 org-mu4e: move mu4e requirement inside org-mu4e-open
This allows to defer loading mu4e. That is, if we simply put in our
init file:

(with-eval-after-load 'org
  (require 'org-mu4e))

then mu4e is only loaded if either we follow a mu4e link from an org
buffer or we call the autoloaded function `mu4e` to read our emails.

Storing org-mode links from mu4e buffers is unaffected by this change
since `org-mu4e-store-link` only applies from mu4e buffers.

Regarding the second, experimental part of org-mu4e.el about editing
mails with org-mode, I am not completely sure but I think it should
also be unaffected since it also seems to only apply from mu4e buffers.
2018-07-13 14:53:37 +02:00
Dirk-Jan C. Binnema
4807461dbe
Merge pull request #1151 from gilbertw1/fix-mark-headers-region
mu4e: Fix region bounds checking when marking headers in mu4e
2018-07-11 21:35:57 +03:00
djcb
4f6fd873fa mu4e: cleanup handler functions 2018-06-30 21:14:00 +03:00
djcb
5f45e014df mu4e: use defvar for handler functions
This allows for a little easier *overriding* them.
2018-06-29 21:33:43 +03:00
djcb
1cb3cbc94d mu4e: fix bbdb doc 2018-06-29 18:08:43 +03:00
djcb
5ccd261771 mu4e: speedbar: use the correct buffer 2018-06-14 11:19:50 +03:00
djcb
d106e0e03b mu4e-view: ensure buffer is named *Article* (gnus mode)
Some of the gnus internal code depends on that.
2018-06-13 22:24:47 +03:00
djcb
9bf1670aa1 mu4e: work-around for missing contacts 2018-06-13 18:19:13 +03:00
djcb
acb68f5551 mu4e: disable some keybindings for the gnus backend 2018-06-13 16:58:41 +03:00
djcb
d98e78548c mu4e: re-draw speedbar when context changes
Folders may have changed.
2018-06-13 14:48:22 +03:00
djcb
0140d433a1 mu4e: update documentation 2018-06-13 13:22:47 +03:00
djcb
36ce14e705 mu4e: view/gnus: support verifying signed mails
Hook up with gnus' verification for signed mails.
2018-06-13 13:22:47 +03:00
Dirk-Jan C. Binnema
4fb5d11d9f
Merge pull request #1243 from avar/render-urls-with-space-before-number
mu4e: view: render URLs as "<url> [%d]" not "<url>[%d]"
2018-06-12 09:23:14 +03:00
Ævar Arnfjörð Bjarmason
6c8aec38be view: render URLs as "<url><zwp>[%d]" not "<url>[%d]"
When we render URLs like https://gnu.org/[1] right-clicking on them in
e.g. GNOME Terminal will also copy the "[1]" as well as the URL,
inserting zero-width-space[1] between the two avoids this.

I know about "g" (mu4e-view-go-to-url), but sometimes I want to open a
URL in a different browser, or copy it into a non-Emacs program. This
makes that easier. I think this improves the UI at a very trivial cost
to users that don't care about this use-case.

I could make this configurable, but unless someone vehemently objects
to this I don't see the point of not just making it the default.

In GNOME Terminal a ZWS is rendered simply as a space, and
copy/pasting works as expected, but in Emacs's GTK GUI there's no
space between the two.

This was initially a plain ASCII space character, but djcb preferred a
ZWP, and this works as well.

1. https://en.wikipedia.org/wiki/Zero-width_space
2018-06-11 22:10:56 +02:00
djcb
088064d5e1 mu4e: define the view-mode when needed
Define the view-mode (gnus or internal) just before it's needed. This
ensures that (when in gnus mode) it's really a gnus-article-mode
derivative, so more of the gnus specifics work.
2018-06-08 10:01:55 +03:00
djcb
ee6e91da9b mu4e: auto decode quoted-printable, base64 (gnus)
Set things up so gnus article mode decodes base64 and quoted-printable
messages automatically.

Don't try to set up URL links.
2018-06-07 13:13:37 +03:00
djcb
d01bdfa7b4 mu4e: add decoding support for gnus' article-mode
Decode Gnu's articles as expected; thanks to Lars Ingebrigtsen for his
advice.
2018-06-05 17:42:09 +03:00
Alex Bennée
79774d4d1b mu4e/mu4e-actions: re-factor apply-patch/mbox
The old code directly hacked around with ido-read-directory to achieve
its smarts. However other completion methods are available so this
re-factors the code to use an appropriately predicated completing-read
with a new history variable which is just used for patch application.
2018-05-25 18:26:59 +01:00
Alex Bennée
67b9ef8384 mu4e/mu4e-actions: optional apply signoff
Maintainers often want to apply patches with their signoff. Support
this with an optional argument.
2018-05-21 18:56:44 +01:00
Alex Branham
39ec6a0417
Fix call to make-obsolete-variable 2018-05-18 15:52:41 -05:00
djcb
b9527245a8 mu4e: minor doc update 2018-05-14 15:44:23 +03:00
Marcelo Henrique Cerri
94e9795d9d mu4e: Do not assume orphan messages can't appear in the middle of a thread
Do not clear the thread state when an orphan message is found.
2018-05-03 08:27:20 -03:00
Marcelo Henrique Cerri
26cd0a59ff mu4e: use special prefixes to describe orphan threads
Re-use `mu4e-headers-thread-orphan-prefix' for the prefix for the
first sibling in the orphan thread and add
`mu4e-headers-thread-single-orphan-prefix' as the prefix of single orphans.
2018-05-02 23:31:33 -03:00
Marcelo Henrique Cerri
d8ca5a3d7b mu4e: remove reference to mu4e-headers-new-thread-style
The docs for the prefix variables mention the variable
"mu4e-headers-new-thread-style" that was removed on a previous
iteration.
2018-05-02 23:04:50 -03:00
djcb
35951da4b5 mu4e: doc: mention aquamacs-autoface-mode
See issue #1230.
2018-05-01 13:12:23 +03:00
djcb
cd649efb6b mu4e: re-view after marked-as-read
When we mark a message as read, we get an (:update ... ) with the
marked-as-read message (ie., moved from new/ to cur/).

The (:update ...) however does _not_ include extracted images etc.; so
images in unread message would not be visible at that time. To fix this,
to another (:view ...) and extract the images etc.

Thanks to tangxinfa for pointing this out.
2018-04-25 11:35:52 +03:00
djcb
bef3113c09 mu4e: factor out mu4e~decrypt-p
Factor out defun to get decryption decision, so we can use it from
elsewhere.
2018-04-25 11:35:52 +03:00
djcb
84afa94fb2 mu4e: do not mark mu4e~view-msg as buffer-local
It's unnecessary.
2018-04-25 11:35:52 +03:00
Dirk-Jan C. Binnema
aeb6718da6
Merge pull request #1161 from gambhiro/modeline-max-width
mu4e: shorten modeline str if longer than max-width
2018-04-25 11:32:15 +03:00
Dirk-Jan C. Binnema
b9d2046a6e
Merge pull request #1228 from mhcerri/mu4e-improved-thread-prefix
mu4e: improved thread prefix
2018-04-25 09:45:14 +03:00
Marcelo Henrique Cerri
adc56249da mu4e.texi: update the header view example with the new thread prefix 2018-04-24 22:34:43 -03:00
Marcelo Henrique Cerri
0b38210549 mu4e: add support for mutt-like thread tree prefix 2018-04-24 22:34:43 -03:00
Dirk-Jan C. Binnema
59e24f0234
Merge pull request #1221 from cacology/master
mu4e: updated fontify-signature for RFC 1153 compliant digest messages
2018-04-24 15:01:22 +03:00
djcb
260a8bb629 mu4e-view: use Gnus' article mode (experimental)
Add a defcustom `mu4e-view-use-gnus`, which, when `t', use Gnus'
article-mode for displaying messages instead of mu4e's built-in mode.

This is experimental, and a view messages do not display
correctly yet (base64-encoded bodies).
2018-04-24 14:58:39 +03:00
Dirk-Jan C. Binnema
cc34705930
Merge pull request #1176 from emacsjanitors/silencio
mu4e: No longer use obsolete alias speedbar-with-attached-buffer
2018-04-24 14:58:03 +03:00
Dirk-Jan C. Binnema
eebe1c4c66
Merge pull request #1198 from c-nixon/master
mu4e: Only require html2text if it will be used
2018-04-24 14:43:11 +03:00
James P. Ascher
82bf333fab updated fontify-signature for RFC 1153 compliant digest messages 2018-04-03 14:50:28 -04:00
Dirk-Jan C. Binnema
4242ca8bbf
Merge pull request #1212 from tarleb/update-links-in-mu4e-docs
mu4e.texi: Fix and update external links
2018-03-25 22:03:52 +03:00
Albert Krewinkel
3bb4c21995 mu4e.texi: Fix and update external links
External links are updated to point to the most informative pages. Pure
http links are upgraded to https were possible.
2018-03-24 12:20:00 +01:00
Christian Egli
522489a33c Use automake support for texi to generate version info in the manual
Automake contains some support for automagically adding version
information to a texi manual (see
https://www.gnu.org/software/automake/manual/automake.html#Texinfo).

> If the .texi file @includes version.texi, then that file will be
> automatically generated

This patch gets rid of the texi.texi.in and instead uses the standard
method to inject version information in the manual.

This fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870634
2018-03-22 12:35:44 +01:00
Evan Klitzke
73d9378819
Fix display of bugs link in mu4e-about.org 2018-03-17 22:33:31 -07:00
Chris Nixon
7b6da1131b Only require html2text if it will be used
html2text is deprecated in the emacs pretest, by unconditionally
importing it mu4e causes a mildly irritating yes/no prompt to appear
during startup.

This change ensures that html2text is not loaded unless the emacs
running is a version that does not have 'shr-insert-document
2018-02-19 12:17:00 +00:00
djcb
aef46ec14f mu4e: add some support for the mux backend 2018-02-11 12:02:53 +02:00
John Whitbeck
76c0f44c51 mu4e: ensure sent dir is created with proper maildir structure
offlineimap will only sync directories that have 'cur', 'tmp', and
'new' sub-directories. Currently, mu4e can end up in a state where the
sent folder only has the 'cur' directory and is therefore not synced.

Upon saving a sent email, emacs' write-file will prompt to create
parent directories if the sent maildir does not already exist. This
results in the following directory structure:

<mu4e-maildir>/<sent>/cur/<email>

Note that the 'tmp' and 'new' directories are missing. This commit
ensures that they are always created.
2018-02-08 20:35:43 -08:00
Dirk-Jan C. Binnema
97ad4baea7
Merge pull request #1134 from jabranham/master
mu4e: simplify what "e" does in mu4e-view mode
2018-01-23 22:56:32 +02:00
Jonas Bernoulli
393ee7b219 No longer use obsolete alias speedbar-with-attached-buffer
Instead use the aliased variable `dframe-with-attached-buffer'.
The alias was established in Emacs 24.4.
2018-01-12 14:05:59 +01:00
Dirk-Jan C. Binnema
82743b3164
Merge pull request #1148 from thierryvolpiatto/mu4e-view
Fix again #1141 (mu4e-view-mode-hook should run after text insertion)
2018-01-06 15:01:32 +02:00
Dirk-Jan C. Binnema
dd8e099d5f
Merge pull request #1157 from andersjohansson/add-defcustom
mu4e: Use defcustom for the customizable variables in mu4e-lists.el
2018-01-06 14:59:01 +02:00
Dirk-Jan C. Binnema
a563651b22
Merge pull request #1163 from eqyiel/replace-references-to-mu4e-message-get-field
mu4e/mu4e-vars.el: replace references to mu4e-message-get-field
2018-01-06 14:54:52 +02:00
djcb
ef8c1960de mu4e.texi: Add compose-mode example 2018-01-06 14:48:28 +02:00
djcb
0228f35ec5 simplify mu4e~docid-msgid-param
It was using an ununed `format', which caused trouble when the msgid
contained format characters.
2017-12-27 12:51:44 +02:00
djcb
e1c6fa4b95 mu4e: fix typo in mu4e~docid-msgid-param
Fix silly typo. Fixes #1166.
2017-12-10 13:52:11 +02:00
Ruben Maher
f279d54c1a mu4e/mu4e-vars.el: replace references to mu4e-message-get-field
I think these docs strings are referring to the function `mu4e-message-field'.
2017-12-06 09:23:50 +10:30
djcb
0d9d8d26d0 mu4e: improve msgid quoting 2017-12-03 22:18:35 +02:00
Gambhiro
b95fb8b95a shorten modeline str if longer than max-width 2017-12-03 15:27:16 +00:00
Anders Johansson
e0fd8ed3ba Use defcustom for the customizable variables in mu4e-lists.el 2017-11-26 15:47:13 +01:00
djcb
5f79535574 proc: ensure query string is utf-8
ensure that the query string is utf-8 before passing it to the backend.
2017-11-08 21:26:00 +02:00
Bryan Gilbert
c71bc710fb Fix region bounds checking when marking headers 2017-11-08 08:34:34 -05:00
djcb
9ecc610e14 mu4e: some doc fixes 2017-11-04 15:06:45 +02:00
Thierry Volpiatto
fc4e2c743b
Merge branch 'master' into mu4e-view 2017-11-04 13:03:40 +01:00
djcb
f59c899ae5 mu4e: add mu4e-query-rewrite-function
Add a function that allows rewriting queries before they are issued.
2017-11-04 13:54:09 +02:00
Dirk-Jan C. Binnema
d87b97e0fb
Revert "Ensure mu4e-view-mode-hook run after text insertion" 2017-11-04 13:36:43 +02:00
Thierry Volpiatto
70d4d56db5
Run mu4e-view-mode without its hook (#1141)
before text insertion and run finally the hook at end.
This ensure local variables are not killed after being set.
* mu4e/mu4e-view.el (mu4e-view): Do it.
2017-11-04 05:50:03 +01:00
Dirk-Jan C. Binnema
43df94fa39
Merge pull request #1146 from mekeor/master
mu4e: fix bug preventing mu4e-headers-change-sorting to sort by list
2017-11-02 08:10:32 +02:00
djcb
c3aca5b29e mu4e: cosmetic 2017-11-02 08:06:48 +02:00
Dirk-Jan C. Binnema
d72d298818
Merge pull request #1141 from thierryvolpiatto/mu4e-view-mode-hook
mu4e: Ensure mu4e-view-mode-hook run after text insertion
2017-11-02 07:47:33 +02:00
Mekeor Melire
150234cb5f mu4e: fix bug preventing mu4e-headers-change-sorting to sort by list
The little bug was caused by a little confusion of the key for list-IDs.
Namely, we use `:list` and not `:list-id` for list-IDs.
2017-10-30 23:57:02 +01:00
djcb
ea2ffe23ae mu: fix quoting/unquoting parameters 2017-10-30 22:06:36 +02:00
Thierry Volpiatto
2eccd7df90
Keep original indentation
Only whitespace changes.

* mu4e/mu4e-view.el (mu4e-view): Do it.
2017-10-29 11:51:28 +01:00
djcb
3bc53af575 mu4e: show "Searching..." message
The new query-parser makes it easier to create queries that might take a
few seconds. qShow "Searching..." so the users knows what mu is doing.
2017-10-29 12:10:10 +02:00
djcb
8c531bd92b configure: don't require autoconf-archive
We ship the few macros we need or make them conditional
2017-10-29 11:25:12 +02:00
Thierry Volpiatto
8db567c980
Link urls after running mu4e-view-mode
* mu4e/mu4e-view.el (mu4e-view): `mu4e~view-make-urls-clickable`
should run after `mu4e-view-mode` otherwise an error popup telling the
hash-table storing links is nil.
2017-10-29 07:43:00 +01:00
Thierry Volpiatto
0a36c8431a
Ensure mu4e-view-mode-hook run after text insertion
* mu4e/mu4e-view.el (mu4e-view): Do it.
2017-10-29 06:54:13 +01:00
djcb
af4f12c696 mu4e: allow longer queries
Tell base64-encode-string not to include newlines.
2017-10-28 20:33:41 +03:00
djcb
4ee8c5e1d6 mu4e: work around quoting issues
Use base-64 for now.
2017-10-28 18:23:08 +03:00
djcb
a4fefc7256 mu4e: make mu4e-compose-crypto-reply-plain-policy nil by default
Making it sign by default is a bit too aggressive.
2017-10-28 11:23:57 +03:00
djcb
3ce8cd7e70 mu4e: small doc update
Update dependency information.
2017-10-28 11:17:03 +03:00
djcb
457a0a17a2 mu4e: update query quoting for new parser 2017-10-27 18:44:19 +03:00
Dirk-Jan C. Binnema
fe04e6d820 Merge pull request #1118 from MaximeMaW/master
mu4e: Allow to set the reply policy in a smart manner
2017-10-26 23:14:08 +03:00
djcb
68847f027f mu4e: support new query parser
maildirs with spaces
2017-10-26 21:31:50 +03:00
djcb
e4b3174ed8 mu4e: update docs
note the new query parser doc
2017-10-25 23:50:17 +03:00
djcb
5d3d9e274f mu4e: update headers for new quoting
update for the new query parser
2017-10-25 23:50:17 +03:00
djcb
85a9098962 mu4e: merge proc-mu back into proc.el 2017-10-25 23:50:17 +03:00
Alex Branham
7f16b7422d
mu4e: simplify what "e" does in mu4e-view mode
The default was to use e to save one attachment or C-u e to save multiple. This
simplifies it so that e simply offers to save one or many attachments.
2017-10-09 14:15:51 -05:00
djcb
77b8f034e9 cosmetic 2017-09-17 14:02:14 +03:00
maxime
e761f74f19 Warn the user about obsolete crypto-policy variable 2017-09-02 09:24:11 -07:00
maxime
5c6561873e Warning the used abot obsolete variable
Following code review (PR 1118):
- Warn the user about the fact that the
'mu4e-compose-crypto-reply-policy' variable is deprecated
- Removed a leftover debug message
- Edited typo in the name of the new variable
2017-09-02 09:13:57 -07:00
djcb
cb0025b352 mu4e: unbreak abbrevs in compose mode
Fixes issue #1119.
2017-09-02 15:56:29 +03:00
djcb
2811370d7e mu4e: fix some compiler warnings in mu4e-view 2017-09-02 15:37:35 +03:00
djcb
b8eba8f1fc mu4e: add some details about the "Verified:" header 2017-08-27 20:23:33 +03:00
djcb
95d68b4741 mu4e: add action mu4e-action-copy-message-file-path
Allow for copying the file path of the current message; useful for
developers.
2017-08-27 17:35:23 +03:00
djcb
3a8748c549 mu4e: display signers in signature header
Display the signers in the signature headers, so users can easily very
that a verified signed message was indeed signed by the expected sender.

We can't check using 'From:' automatically as that gives too many false
negatives.
2017-08-27 17:33:37 +03:00
djcb
e09419f85b mu4e: special-case empty hostnames
Fixes #1108
2017-08-27 15:44:23 +03:00
maxime
d343f7f538 Allow to set the reply policy in a smart manner
Depending on whether the original email was encrypted, one can set
different reply policies.
2017-08-26 19:47:36 -07:00
djcb
ceb7f0a8b4 mu4e: fix some typos
Hat-tip: Kelly Dean.
2017-08-13 10:09:03 +03:00
Dirk-Jan C. Binnema
b9ddc8b708 Merge pull request #1109 from galaunay/Add-update-info-in-modeline
mu4e: Optionally, add info on update status in the modeline
2017-08-11 00:02:36 +03:00
djcb
0cfc23650b mu4e: cosmetics
fix whitespace
2017-08-10 23:32:10 +03:00
galaunay
513eb65388 Add info on update status in modeline 2017-07-19 13:01:30 +02:00
djcb
81294eb17b mu4e: allow sorting by list-id
Added support for sorting by mailing-list; note that this ultimately is
a sort by the 'list-id', so the items will be in that alphabetical
order, which is not necessarily the same as the order of the friendly
names.
2017-07-02 10:46:08 +03:00
Vladimir Sedach
6017ac46ce mu4e: Update single-window mode
Update mu4e~headers-quit-buffer and mu4e~main-menu.

mu4e~headers-quit-buffer in single-window mode now kills current buffer
instead of quitting mu4e.

mu4e~main-menu is updated to redisplay the main menu on context switch
or unknown keybinding, display errors in commands better, and to handle
C-g and ESC keys.

Thanks to Joost Kremers for the suggestions.
2017-06-24 12:54:21 +02:00
djcb
afb47e7ef6 mu4e: small doc fix 2017-06-24 12:39:12 +02:00
djcb
cde35be271 Revert "Merge pull request #1099 from stsquad/fix-header-history"
This reverts commit ba75ef4b87, reversing
changes made to e735e70fa4.
2017-06-18 11:25:53 +03:00
Dirk-Jan C. Binnema
72db436a63 Merge pull request #1046 from jwhitbeck/master
mu4e: fix sending emails with no body
2017-06-17 12:10:24 +03:00
Dirk-Jan C. Binnema
ff2f8fa37d Merge pull request #1094 from wataash/remove-realdelete
mu4e: remove `realdelete' option of OfflineIMAP
2017-06-17 12:08:37 +03:00
Dirk-Jan C. Binnema
ba75ef4b87 Merge pull request #1099 from stsquad/fix-header-history
mu4e: don't loose search history when editing search
2017-06-17 12:05:51 +03:00
djcb
e735e70fa4 mu4e: add untrash to mu4e-view
The untrash function was not defined; let's add it.
2017-06-17 12:00:20 +03:00
Alex Bennée
9d06d72d6e mu4e: don't loose search history when editing search
Even though the user may be editing this expression there is no reason
to not have the mu4e~headers-search-hist present for the prompt. Emacs
will only replace it with system wide history which would likely
contain irrelevant history for the action.
2017-06-16 14:17:28 +01:00
Wataru Ashihara
625ee4f5f9 mu4e: remove `realdelete' option of OfflineIMAP
offlineimap/Changelog.md says Gmail `realdelete' option is considered
harmful and was removed on OfflineIMAP v6.5.2.1 (2012-04-04).
2017-06-10 15:47:48 +09:00
Vladimir Sedach
9420d088eb mu4e: Added new mu4e-split-view mode: single-window
Single-window mode is meant to minimize mu4e window operations (opening,
killing, resizing, etc) and buffer changes, while still retaining the
view and headers buffers. In addition, it replaces mu4e main view with a
minibuffer prompt containing the same information.
2017-05-31 20:52:59 -07:00
djcb
34d5c61930 mu4e: try a little harder to get contacts
Some people reported problems with completing contacts. It's unclear
what's going on there. Maybe this helps.
2017-05-06 13:12:38 +03:00
djcb
bbdee4e765 mu4e: cosmetics (mu4e-main) 2017-05-06 13:12:38 +03:00
djcb
6bde2618ab mu4e: make mu4e-context-current interactive
So it will output the name of the current context when used in an
interactive context.
2017-05-06 13:12:38 +03:00
Arne Köhn
47a046c662 advance after mark can now be disabled
The variable mu4e-headers-advance-after-mark can be set to nil if you
want to disable moving to the next mail after marking.
2017-04-25 16:40:41 +02:00
djcb
22e11fc112 mu4e-vars.el: cosmetics
whitespace cleanup and some typo fixes; fixes issue #1065.
2017-04-10 20:05:31 +03:00
djcb
abe732111a mu4e: cosmetics 2017-04-09 11:33:21 +03:00
djcb
98b998b86d mu4e: remove mu4e~compose-browse-url-mail
Instead, rely on the common browse-url-mail, which does the right thing
after
  (setq mail-user-agent 'mu4e-user-agent)
2017-04-08 15:25:38 +03:00
djcb
895a78ba7b mu4e: handle cc in mu4e~compose-browse-url-mail
Handle Cc fields in mu4e~compose-browse-url-mail, as per issue #1025.
2017-04-08 14:55:24 +03:00
djcb
87ed69ee03 mu4e: auto-delete after 30 secs instead of 10
Don't auto-delete files too soon (before they can be used), even on
slower systems.
2017-04-02 16:39:21 +03:00
djcb
fb09af4215 mu4e: compose/format-flowed: don't enable fringe indicators
We were enabling the fringe indicators by default in
mu4e-compose-format-flowed; let's not do that and leave it to the
user (they can use add-hook etc.)
2017-04-02 16:27:53 +03:00
Ronald Evers
6ce126ca69 Fix typo in mu4e-sent-messages-behavior docs 2017-03-26 21:49:36 +02:00
djcb
21b637f291 mu4e: minor cleanup in mu4e-compose 2017-03-18 10:24:51 +02:00
djcb
42cd4f89d2 mu4e: mention max-specpdl-size setting
Mention the max-specpdl-size setting, to avoid the
  Variable binding depth exceeds max-specpdl-size
error some people were seeing.
2017-03-18 10:22:46 +02:00
djcb
7729948d74 mu4e: utils: whitespace cleanups 2017-03-18 10:10:46 +02:00
djcb
c115d75a50 mu4e: handle marks outside headers-view
Ensure we the marks get counted correctly outside the headers view. This
avoids mu4e trying to refresh the headers buffer when we're reading a
message.
2017-03-18 10:09:10 +02:00
djcb
7d895dbd69 mu4e: widen buffer after save
Otherwise, undo won't work. Fixes issue #1047.
2017-03-18 10:07:12 +02:00
John Whitbeck
bbd8f55700 mu4e: fix sending emails with no body 2017-03-11 22:17:56 -08:00
Dirk-Jan C. Binnema
8f1f88ce0a Merge pull request #1044 from garaud/doc-org-contact-link
mu4e: update the org-contacts package link in the doc
2017-03-11 15:02:07 +02:00
djcb
b04b3bcea9 mu4e: don't require user-agent string 2017-03-09 01:27:44 +02:00
Damien Garaud
5b36656d5d mu4e: update the org-contacts package link in the doc 2017-03-06 10:55:35 +01:00
Dirk-Jan C. Binnema
9798d1fe6a Merge pull request #1036 from wavexx/reply-ignore-regexp
mu4e: Allow to ignore addresses when doing wide replies
2017-03-05 15:57:05 +02:00
Ian Kelling
c6d297b402 mu4e: improve `mu4e-get-maildirs' docstring 2017-02-28 04:15:27 -08:00
Dirk-Jan C. Binnema
ff94595fad Merge pull request #1037 from wavexx/fix-duplicate-header-views
mu4e: Do not duplicate headers views in iconified/hidden frames
2017-02-21 09:46:43 +02:00
Dirk-Jan C. Binnema
f3aa51fbc1 Merge pull request #1034 from jschwab/docs-context-maildir
doc: Add example of matching maildir and its sub-directories in contexts
2017-02-21 07:59:31 +02:00
Yuri D'Elia
34ed757e11 Do not duplicate headers views in iconified/hidden frames
When the frame running mu4e is in another virtual desktop or iconified, but
still contains a visible headers buffer, do not attempt to create a new view.
2017-02-20 18:40:20 +01:00
Yuri D'Elia
0a5224c4c8 Allow to ignore addresses when doing wide replies
Introduce a new variable, mu4e-compose-reply-ignore-address, which matches
addresses to be skipped when doing wide replies.

This is identical in behavior to messages-dont-reply-to-names from message.el
(which we default on).
2017-02-20 00:37:44 +01:00
Josiah Schwab
195b91a3db Add example of matching maildir and its sub-directories in contexts
Inspired by this mu-discuss thread:
https://groups.google.com/d/msg/mu-discuss/rAT2YJPEwsA/eYmoGJbUCgAJ
2017-02-17 14:52:06 -08:00