Commit Graph

228 Commits

Author SHA1 Message Date
Jonas Bernoulli 564d892701 Fix typos 2020-05-12 23:56:55 +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 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 e9fb70e50c mu4e: update documentation
Remove mentions of mu4e-user-mail-address-list.
2020-04-11 22:21:48 +03:00
Dirk-Jan C. Binnema 46ae663937 mu4e: use faster count queries, document differences
Use faster queries for counting read/unread messages; document why the
results might differ from what you get doing a normal search.
2020-03-15 01:23:01 +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 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 62bc45aaa7
Merge pull request #1581 from thierryvolpiatto/Fix_revert_buffer
mu4e-main: Fix revert buffer
2020-02-21 19:28:09 +02:00
Dirk-Jan C. Binnema 837ab0b703 headers: require proc-view even for gnus
Temporary measure, so e.g. view-in-browser works

Fixes #1579.
2020-02-21 19:26:39 +02:00
Thierry Volpiatto b1369b6ad9
Fix mu4e-main revert-buffer-function and use it
* mu4e/mu4e-headers.el (mu4e~headers-quit-buffer): Refresh main buffer
when done.
* mu4e/mu4e-main.el (mu4e-main-mode-map): Don't bind "g" to mu4e, "g"
should be bound to revert-buffer (special-mode).
(mu4e-main-mode): No need to specify map.
(mu4e~main-view-real-1): New.
(mu4e~main-redraw-buffer): New.
(mu4e~main-view-real): Use them.
(mu4e~main-view): Take one more arg REFRESH.
(mu4e~main-toggle-mail-sending-mode): revert-buffer when done.
2020-02-21 08:33:07 +01:00
Dirk-Jan C. Binnema e10fc21a9b mu4e: Rename 'Unnamed' sections 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 15c6680037 mu4e: Add missing mandatory "Code:" section headers 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 6790c0d015 mu4e: Fix indentation 2020-02-17 14:28:00 +01:00
Dirk-Jan C. Binnema dd140cb98a mu4e-headers: With gnus-view, avoid server calls
We can do it directly, since we only need the path to the message.
2020-02-09 18:06:04 +02:00
Dirk-Jan C. Binnema 00df8ce471 mu4e: headers: Fix some compiler warnings 2020-02-09 03:53:01 +02: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
Jonas Bernoulli f31d1b065d Fix typos 2019-11-06 16:13:39 +01: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
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
Zack Newman 2a51699ae5 mu4e: Update reference to obsolete variable in documentation 2019-06-19 13:30:17 -04:00
Christophe Troestler 939c066732 Fix mu4e~headers-remove-handler 2019-04-29 20:28:24 +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
Kevin J. Foley 2108bbc1a4 Look at all frames for header buffer when auto updating headers 2019-03-11 18:21:13 -04: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
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
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
Alex Branham 2674ca5583
mu4e: Replace cl with cl-lib 2019-01-04 16:03:58 -06: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
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 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
Marcelo Henrique Cerri 0b38210549 mu4e: add support for mutt-like thread tree prefix 2018-04-24 22:34:43 -03:00
djcb 9ecc610e14 mu4e: some doc fixes 2017-11-04 15:06:45 +02: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
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 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 68847f027f mu4e: support new query parser
maildirs with spaces
2017-10-26 21:31:50 +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 77b8f034e9 cosmetic 2017-09-17 14:02:14 +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