unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Alfredo Finelli <alf@computationes.de>
To: notmuch@notmuchmail.org
Subject: Duplicate Message-Id and file handling
Date: Thu, 17 Aug 2023 15:26:55 +0200	[thread overview]
Message-ID: <87wmxt7qao.fsf@computationes.de> (raw)

Hi,

as it sometimes happens I received two slightly different messages with
the same Message-Id header and I noticed some inconsistencies in the
handling of their filenames by notmuch.

This is what happens, starting with the maildir "test" initially empty:

1. The first message gets delivered to the "new" subdirectory

    .Mail/test/
    .Mail/test/tmp
    .Mail/test/new
    .Mail/test/new/1692024090.11167_0.alan:2,
    .Mail/test/cur

2. I run "notmuch new" and file gets moved to the "cur" subdirectory

    Processed 1 file in almost no time.
    Added 1 new message to the database.

    .Mail/test/
    .Mail/test/tmp
    .Mail/test/new
    .Mail/test/cur
    .Mail/test/cur/1692024090.11167_0.alan:2,

3. Then I read the message in the emacs interface and the file gets the
   Maildir tag "Seen"

    .Mail/test/
    .Mail/test/tmp
    .Mail/test/new
    .Mail/test/cur
    .Mail/test/cur/1692024090.11167_0.alan:2,S

4. The second message with the same Message-Id header gets delivered to
   "new", then I run "notmuch new" again

    Processed 1 file in almost no time.
    No new mail.

    .Mail/test/
    .Mail/test/tmp
    .Mail/test/new
    .Mail/test/new/1692024176.11218_0.alan:2,
    .Mail/test/cur
    .Mail/test/cur/1692024090.11167_0.alan:2,S

The second file for that Message-Id stays in the "new" subdirectory
forever, even after I read it again in emacs or I switch to the other
file with "notmuch-show-choose-duplicate". It also never gets the "Seen"
tag.

If instead both messages are present in the "new" subdirectory at the
time of the first "notmuch new" indexing, then both files are correctly
handled.

Best regards.

             reply	other threads:[~2023-08-17 13:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-17 13:26 Alfredo Finelli [this message]
2023-08-31 13:20 ` Duplicate Message-Id and file handling 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=87wmxt7qao.fsf@computationes.de \
    --to=alf@computationes.de \
    --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).