unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jameson Rollins <jrollins@finestructure.net>
To: Matthieu Lemerre <racin@free.fr>, notmuch@notmuchmail.org
Subject: Re: [PATCH] How to improve the mail handling workflow?
Date: Fri, 12 Nov 2010 10:33:33 -0500	[thread overview]
Message-ID: <87iq02wo8i.fsf@servo.finestructure.net> (raw)
In-Reply-To: <87fwv65zw1.fsf@free.fr>

[-- Attachment #1: Type: text/plain, Size: 3113 bytes --]

On Fri, 12 Nov 2010 16:23:58 +0100, Matthieu Lemerre <racin@free.fr> wrote:
> The emacs interface to notmuch gets in my way in at least several
> manners:

Hi, Matthieu.  Here are some of the things I've done to deal with
similar issues:

>  - I often find myself hitting the spacebar too much, which ends up with
>    some of my new messages being removed from all of their tags, which
>    make them very difficult to find. I don't think the spacebar should
>    remove the inbox tag at all. It should only change the unread tag.

I agree that the function currently bound to space bar is annoying.  I
am actually in the middle of preparing a patch to fix this.  I think
that space should just scroll through the open messages.  I don't want
it to archive anything, or pop out of the currently viewed thread.  I
think this function is too aggressive as is.

>  - It does not provide a command for deleting mails. We were several
>    people who provided patches to add a 'd' keybinding to support
>    deletion. I provided a complex patch for that (that added "and not
>    tag:deleted" to all requests", but I now think that just adding a
>    "deleted" tag and removing the "inbox" tag would be sufficient).

I agree that some built-in support for handling "deleted" tags is called
for, but in the mean time it's very easy to make your own custom
functions to drop into your emacs config.  I have the following:

(define-key notmuch-search-mode-map "d"
  (lambda ()
    "delete thread and advance"
    (interactive)
    (notmuch-search-add-tag "deleted")
    (forward-line)))

(define-key notmuch-show-mode-map "d"
  (lambda ()
    "delete current message and advance"
    (interactive)
    (notmuch-show-add-tag "deleted")
    (notmuch-show-next-open-message-or-pop)))

(define-key notmuch-search-mode-map "u"
  (lambda ()
    "undelete thread"
    (interactive)
    (notmuch-search-remove-tag "deleted")))

(define-key notmuch-show-mode-map "u"
  (lambda ()
    "undelete current message"
    (interactive)
    (notmuch-show-remove-tag "deleted")))

I do *not* think that adding the "deleted" tag should remove the inbox
tag.  If you want to view your inbox without seeing the deleted
messages, then just use the search "tag:inbox and not tag:deleted".

>  - Processing mails which do not have any automatically added tag is
>    boring, because I need to press several keys to archive them: "+" to
>    add a tag, and then "a". If I forget about +, then my mail is
>    impossible to find.

Again, I achieve archiving with some simple custom functions:

(define-key notmuch-search-mode-map "a"
  (lambda ()
    "archive thread and advance"
    (interactive)
    (notmuch-search-remove-tag "inbox")
    (notmuch-search-remove-tag "unread")
    (forward-line)))

(define-key notmuch-show-mode-map "a"
  (lambda ()
    "archive current message and advance"
    (interactive)
    (notmuch-show-remove-tag "inbox")
    (notmuch-show-next-open-message-or-pop)))

(define-key notmuch-show-mode-map "i"
  (lambda ()
    "add current message to inbox"
    (interactive)
    (notmuch-show-add-tag "inbox")))

jamie.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

  reply	other threads:[~2010-11-12 15:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-12 15:23 [PATCH] How to improve the mail handling workflow? Matthieu Lemerre
2010-11-12 15:33 ` Jameson Rollins [this message]
2010-11-12 16:39   ` Matthieu Lemerre
2010-11-14 21:07   ` Sebastian Spaeth
2010-11-14 21:19     ` Jameson Rollins
2010-11-14 21:31     ` Sebastian Spaeth
2010-11-15  8:28     ` David Edmondson
2010-11-12 15:39 ` Darren McGuicken
2010-11-12 16:35   ` Matthieu Lemerre
2010-11-12 16:58     ` Darren McGuicken
2010-11-14 21:34     ` Sebastian Spaeth
2010-11-14 23:25       ` Matthieu Lemerre
2010-11-13  6:05   ` Michal Sojka
2010-11-13 11:03     ` Darren McGuicken
2010-11-15  8:00       ` Michal Sojka
2010-11-12 17:05 ` David Edmondson
2010-11-12 17:48   ` Matthieu Lemerre
2010-11-12 17:42     ` David Edmondson
2010-11-13 16:43 ` Cédric Cabessa
2010-11-13 18:41   ` Jameson Rollins
2010-11-14 17:01     ` Matthieu Lemerre
2010-11-14 19:13       ` Jameson Rollins
2010-11-14 21:43         ` Matthieu Lemerre
2010-11-14 21:45 ` Michael Hudson

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=87iq02wo8i.fsf@servo.finestructure.net \
    --to=jrollins@finestructure.net \
    --cc=notmuch@notmuchmail.org \
    --cc=racin@free.fr \
    /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).