unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Duplicate Message-Id and file handling
@ 2023-08-17 13:26 Alfredo Finelli
  2023-08-31 13:20 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Alfredo Finelli @ 2023-08-17 13:26 UTC (permalink / raw)
  To: notmuch

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Duplicate Message-Id and file handling
  2023-08-17 13:26 Duplicate Message-Id and file handling Alfredo Finelli
@ 2023-08-31 13:20 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2023-08-31 13:20 UTC (permalink / raw)
  To: Alfredo Finelli, notmuch@notmuchmail.org

Alfredo Finelli <alf@computationes.de> writes:

> 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.
>

I believe this is the same issue discussed at

  https://nmbug.notmuchmail.org/nmweb/search/id%3A87zgjy4xto.fsf%40tethera.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-31 13:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-17 13:26 Duplicate Message-Id and file handling Alfredo Finelli
2023-08-31 13:20 ` David Bremner

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).