unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Thomas Schneider <qsx@chaotikum.eu>
To: notmuch@notmuchmail.org
Subject: Display update bug in notmuch new
Date: Mon, 30 Jul 2018 15:24:20 +0200	[thread overview]
Message-ID: <vu7c70zhy8n9ff.fsf@chaotikum.eu> (raw)

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

Hi,

I discovered an issue in notmuch new: when deleting a large amount of
messages (so that it takes long and displays “$time remaining”), it does
not clean the line afterwards:

---
$ pwd
/home/qsx/.maildir/fnord
$ tar xf /tmp/mails.tar
$ notmuch new
Processed 9001 total files in 4s (2113 files/sec.).
Added 9001 new messages to the database.
$ rm new/*
$ notmuch new
No new mail. Removed 9001 messages.lmost no time remaining).
---

Version information: notmuch 0.27, on GNU/Linux

Steps to reproduce:

---
cd $MAILDIR
cat << EOF > /tmp/test.py
ADDRESS = "test@example.org"

import mailbox
import email.message
import email.utils
from datetime import datetime

mb = mailbox.Maildir('./test') # will create if not existing

for i in range(1, 9002): # OVER NINE THOUSAND
    m = email.message.EmailMessage()
    m["From"] = ADDRESS
    m["To"] = ADDRESS
    m["Date"] = email.utils.localtime(datetime.now())
    m["Subject"] = "test {}".format(i)
    m["Message-Id"] = email.utils.make_msgid(idstring = "test.{}".format(i))
    m.set_content("test {}".format(i))
    mb.add(m)
EOF
python3.6 /tmp/test.py
notmuch new
rm -r test
notmuch new
---

	--qsx

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

             reply	other threads:[~2018-07-30 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-30 13:24 Thomas Schneider [this message]
2021-12-23 13:17 ` Display update bug in notmuch new David Bremner

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=vu7c70zhy8n9ff.fsf@chaotikum.eu \
    --to=qsx@chaotikum.eu \
    --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).