unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Sanjoy Mahajan <sanjoy@olin.edu>
To: <notmuch@notmuchmail.org>
Subject: all intermediate drafts appear in threads (v0.24.2, Emacs 25.2)
Date: Thu, 13 Jul 2017 10:38:55 -0400	[thread overview]
Message-ID: <877ezcbdvk.fsf@olin.edu> (raw)

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

I save an outgoing email as I write it and often (as if it were a
regular document) by using the usual Emacs key sequence C-x C-s.  With
notmuch v0.24, notmuch saves a proper draft each time I use C-x C-s.
The result is a million drafts, which may be good.

However, it means that the thread view (in notmuch-show mode) includes
the zillion drafts.  Attached is a screenshot of what I mean (sorry that
it is so small -- I downsampled it to get within the message-size
limit).  I made the example by sending myself (sanjoy@localhost) a short
msg.  Then I replied to it with 'r', and saved the reply a few times
(first with "Draft v1" as the body text, the next time with "Draft v2",
etc.).

I then sent the v3 reply.

Attached are the individual mail files as a tgz archive.  The thread was
generated by the Emacs-front-end equivalent of

  $ notmuch search from:sanjoy date:today.. subject:fake

which produces

thread:000000000002e52b 19 mins. ago [3/6] Sanjoy Mahajan; fake msg to test
appearance of drafts in thread (deleted draft new replied unread)

In my .notmuch-config I have

[search]
exclude_tags=spam;deleted;draft

but the summary output from notmuch-search counts deleted and draft
messages anwyay.  Adding --exclude=all helps, and I've done that to my
version of "notmuch-search", but that fixes only the messages-matching
counts (it is 3/3 instead of 3/6):

  $ notmuch search --exclude=all from:sanjoy date:today.. subject:fake
  thread:000000000002e52b 23 mins. ago [3/3] Sanjoy Mahajan; fake msg to test
appearance of drafts in thread (new replied)

But even so the view of the thread inside Emacs still shows the deleted
or draft messages.

I am using Debian's Emacs 25.2 w/ notmuch 0.24.2.

Did I miss something in the configuration?  Or should I be using the
drafts differently?

-Sanjoy

<http://savelongwharfpark.org/>
Save Long Wharf Park in Boston Harbor!

<http://streetfightingmath.com/>
Six reasoning tools to make hard problems easy.


[-- Attachment #2: screenshot --]
[-- Type: image/png, Size: 77400 bytes --]

[-- Attachment #3: mail messages --]
[-- Type: application/x-gtar-compressed, Size: 836 bytes --]

             reply	other threads:[~2017-07-13 14:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-13 14:38 Sanjoy Mahajan [this message]
2017-07-13 16:03 ` all intermediate drafts appear in threads (v0.24.2, Emacs 25.2) Gregor Zattler
2017-07-18 10:42 ` David Bremner
2017-08-16  1:00   ` Matt Armstrong
2017-08-16  1:13     ` David Bremner
2017-08-16 16:53       ` Matt Armstrong
2017-08-28  2:06   ` Sanjoy Mahajan

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=877ezcbdvk.fsf@olin.edu \
    --to=sanjoy@olin.edu \
    --cc=notmuch@notmuchmail.org \
    /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).