Commit Graph

128 Commits

Author SHA1 Message Date
Ævar Arnfjörð Bjarmason 14af0d28c8 mu4e-headers: Add hook executed when we're opening bookmarks (again)
This was merged in as part of pull request #718 but changed to a more
general facility in 7716e00.

It's fantastic that we have the more general hook facility for any
search, but the primary use-case I had for the bookmark hook can't be
satisfied by the more general mu4e-headers-search-pre-hook.

The reason I added this hook was to emulate the folders I used in
Icedove as mu4e bookmarks. E.g. some folders are threaded, others are
not. By default mu4e only allows you to set this globally via options
like mu4e-headers-show-threads.

So I have a mu4e-headers-search-bookmark-hook which is basically a long
line of cond statements like:

    ((string-equal expr "NOT flag:trashed AND date:365d..now AND (flag:flagged)")
        (setq mu4e-headers-show-threads nil)
        (setq mu4e-headers-include-related nil)
        (setq mu4e-headers-skip-duplicates t)
        (setq mu4e-headers-results-limit 500))

For this to work properly it's critical that the hook doesn't execute on
any search, but *only* those where we enter it via the bookmark.

As an example, I have a "b+" search which finds messages I've flagged,
most of my searches have related & threading turned on, but for that
search I only want to show the specific messages I've flagged, so the
hook turns both of those settings off before executing the search.

But I might still want to change my mind and look at the related
messages as threads by pressing P and then W. This works with the
mu4e-headers-search-bookmark-hook because it only executes when we get
the search via a bookmark.

But it doesn't work with the mu4e-headers-search-pre-hook because when I
toggle the setting my settings hook (which matches the search executed
by the bookmark) will just turn it back off again.

Perhaps there's some clever way to know if we're getting to the
mu4e-headers-search-pre-hook via the bookmark that I've missed. But if
there isn't I need a hook that works like this.
2016-02-18 21:37:21 +01:00
djcb 7716e005bf mu4e: add mu4e-headers-search-pre-hook
Just before executing a search, a hook-function
`mu4e-headers-search-pre-hook` is invoked, which receives the search
expression as its parameter.
2016-02-18 20:59:02 +02:00
djcb 81c7786402 mu4e: make mu4e~read-char-choice case-insensitive
Make mu4e~read-char-choice case insensitive if there is no exact
match. Small convenience.
2016-02-17 20:01:18 +02:00
djcb b87cca8487 Update NEWS 2016-02-16 08:29:06 +02:00
djcb ca6be95bef Update NEWS.org 2016-02-07 14:37:15 +02:00
djcb 66d5c40c77 NEWS.org: update with latest changes 2016-02-02 21:11:05 +02:00
djcb 8155d29da8 Start 0.9.17 development series
Start development on the 0.9.17 series, leading to the 0.9.18 release at
some point.
2016-01-24 12:30:37 +02:00
djcb 1c0bfe81a7 mu 0.9.16 2016-01-20 20:19:35 +02:00
djcb 819857d105 NEWS.org: update with note about Cygwin improvement 2016-01-17 10:36:17 +02:00
djcb 825881feb3 mu4e: add variable mu4e-view-auto-mark-as-read
When set to nil, do not attempt to mark messages as read when you open
them; this can be useful on read-only file systems.

Fixes issue #515.
2015-12-27 14:30:02 +02:00
djcb 29a44e4371 mu4e: add mu4e-view-toggle-html
Add `mu4e-view-toggle-html' for toggling between html and text display
of messages (when available); keybinding 'h'. Document this.

The new default keybinging for mu4e-view-toggle-hide-cited becomes '#'.
2015-12-27 10:28:11 +02:00
djcb de22f2643f Update NEWS.org 2015-12-24 16:09:12 +02:00
djcb 6bafb39960 update documentation / NEWS.org
Update the docs for the latest changes.
2015-12-19 14:01:06 +02:00
djcb eae4e8b5be NEWS.org: Update with new features
Add the latest changes
2015-12-15 09:08:40 +02:00
djcb 845bd5deb8 Update NEWS (mu4e-context) 2015-12-13 17:48:46 +02:00
JJ Asghar 5ce58b68f3 Cleaned up some trailing white space(s)
- Walked through the NEWS, README, and about org-pages and removed some
  white spaces that where sticking around.
- 🤘
2015-11-28 17:16:33 -06:00
djcb a2409b62ca mu4e: when in-reply-to: is removed, remove references: too
When user removes the In-Reply-To header, also remove the (hidden)
References header when sending the message, effectively making the
message appear at the top-level.

Mention in the doc, NEWS.
2015-11-22 12:17:36 +02:00
djcb 3d9563ea4c Update NEWS.org 2015-11-17 10:59:35 +02:00
djcb 23f4a64bdc NEWS: update 2015-10-21 08:09:33 +03:00
djcb 0956c096de mu4e: don't be too eager to open view
When there's no view yet, don't automatically open one when moving.
2015-10-13 16:16:10 +03:00
djcb 5c18f315a0 Update NEWS for file-name format change 2015-10-07 10:35:13 +03:00
Damien Cassou adbfcf793a Fix version numbers
0.9.9.x -> 0.9.x
2015-09-24 10:24:00 +02:00
djcb 403e2dbc2f Bump version to 0.9.9.13 2015-09-22 19:00:41 +03:00
djcb 6065ff0e41 NEWS: Update 2015-09-20 11:42:49 +03:00
djcb d6ca171e9c NEWS.org: update for coming release 2015-09-17 17:27:02 +03:00
djcb 264ccd88c9 update NEWS.org 2015-06-09 21:08:28 +03:00
djcb 1458095693 Update NEWS.org 2015-06-09 21:08:02 +03:00
djcb e02077ab3d mu: make NEWS.org the place to put user information 2015-06-09 21:08:02 +03:00