unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Gregor Zattler <telegraph@gmx.net>, notmuch@notmuchmail.org
Subject: Re: FR: show next unread message in notmuch-tree-mode
Date: Tue, 21 Dec 2021 13:38:49 +0200	[thread overview]
Message-ID: <87bl1a6vcm.fsf@iki.fi> (raw)
In-Reply-To: <87zgou4kw8.fsf@no.workgroup>


[-- Attachment #1.1: Type: text/plain, Size: 1307 bytes --]

* 2021-12-21 05:55:19+0100, Gregor Zattler wrote:

> Dear notmuch developers, it would be easier to read big and old
> threads, as e.g., the current one on emacs-devel on integrating sqlite
> (starts with: id:87tufmjyai.fsf@gnus.org) in notmuch-tree-mode if
> there was a notmuch-tree-scroll-or-next-unread command (and respective
> key binding).

While I don't oppose a new feature I'll show how I like to read unread
messages. In *notmuch-hello* buffer I have a separate section for unread
searches. Basically it is like normal list of saved searches but with
search term "tag:unread" added. Here is the code:


    (defun my-notmuch-hello-unread ()
      (notmuch-hello-insert-searches
       "Unread messages"
       (mapcar (lambda (search)
                 (plist-put (copy-sequence search)
                            :sort-order 'oldest-first))
               notmuch-saved-searches)
       :filter "tag:unread AND NOT tag:spam"
       :hide-if-empty t))

    (setq notmuch-hello-sections '(my-notmuch-hello-unread
                                   notmuch-hello-insert-saved-searches
                                   notmuch-hello-insert-alltags))



-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 434 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



      reply	other threads:[~2021-12-21 11:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-21  4:55 FR: show next unread message in notmuch-tree-mode Gregor Zattler
2021-12-21 11:38 ` Teemu Likonen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bl1a6vcm.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=notmuch@notmuchmail.org \
    --cc=telegraph@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).