From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 1833D6DE01F7 for ; Sat, 27 Oct 2018 12:58:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.003 X-Spam-Level: X-Spam-Status: No, score=0.003 tagged_above=-999 required=5 tests=[AWL=0.004, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1U4gANq5p3Te for ; Sat, 27 Oct 2018 12:58:57 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id E5F1E6DE014D for ; Sat, 27 Oct 2018 12:58:56 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1gGUjU-0002w8-Md; Sat, 27 Oct 2018 15:58:52 -0400 Received: (nullmailer pid 22233 invoked by uid 1000); Sat, 27 Oct 2018 19:58:51 -0000 From: David Bremner To: Leo Gaspard , notmuch@notmuchmail.org Subject: Re: Mail to self In-Reply-To: <87y3ajboev.fsf@llwynog.ekleog.org> References: <87y3ajboev.fsf@llwynog.ekleog.org> Date: Sat, 27 Oct 2018 16:58:51 -0300 Message-ID: <87r2gbqhz8.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2018 19:58:58 -0000 Leo Gaspard writes: > Hello, > > I'm looking for a way to have notmuch consider, when it finds both an > unread and a read mail with the same Message-Id (eg. sending a mail to > self from a phone), that the mail is unread (because I'd rather have too > many mails unread than miss important mail, and it's also useful for > tests). > > Do you see any way of having notmuch do this? After a discussion on IRC, my understanding is the following. The underlying behaviour that Leo is objecting to is that if any one file with a given message-id has the ,S maildir flag, then when notmuch syncs maildir flags to tags, it will remove the unread tag from that message-id. After some back and forth and thinking about it, I think notmuch's current behaviour is actually correct (given the constraint that tags attach to message-ids). You could argue for different ways of resolving conflicts for maildir flags in general, but the ",S" or "seen" flag has fairly natural common sense semantics. d