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 3416A6DE10B7 for ; Sat, 30 Sep 2017 07:55:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.012 X-Spam-Level: X-Spam-Status: No, score=-0.012 tagged_above=-999 required=5 tests=[AWL=0.097, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FSL_HELO_NON_FQDN_1=0.001, T_RP_MATCHES_RCVD=-0.01] 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 wkRE2latY6AG for ; Sat, 30 Sep 2017 07:55:13 -0700 (PDT) Received: from charon (jb55.com [45.79.91.128]) by arlo.cworth.org (Postfix) with ESMTPS id 4E7216DE1016 for ; Sat, 30 Sep 2017 07:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d= jb55.com; h=from:to:subject:date:message-id; s=default; bh=bTyOVSERlV4tPLaEiUr5BOa3hMWUUtdUWP0RQbEg/qU=; b=FcVT63qlOMUYficIS20Bx0trqQdrPqFmJRMbmZBUgZs7FiCTMi5ygSmh7bQSvsFSiJqHflx6fXEh2Klv9zvWe6uKGMPdIc2vtNMEGG8Smy5elZ/nzZqC5iodtI5vfAT7/uRIc8gwTgzHMEHnAN90DIl4UGQhWrBlzwyVwO6WWqJjcrbyl2KurkNUqtbkx/RF1ShZAj67aPqEp7NwTjZf8pWE2rtdZoTSIvOMvC9ELsY5Ju2O1Y2PMvve1HePQk3X7ss/8ay2ShIQJ6V/FVzcCBb/vgGZI8N2EJ7cnV0fiR+LUQ727DiWrVfQAQzeFsgjsVPWOjYd+vsDyCusaUJ+Uw== Received: from jb55.com (70-36-49-138.dyn.novuscom.net [70.36.49.138]) by jb55.com (OpenSMTPD) with ESMTPSA id 8fec91a8 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 30 Sep 2017 14:55:11 +0000 (UTC) From: William Casarin To: Jani Nikula , notmuch@notmuchmail.org Subject: Re: [PATCH 0/6] Sort by from and subject In-Reply-To: <87r2uoqyy0.fsf@nikula.org> References: <20170926053547.18564-1-jb55@jb55.com> <87r2uoqyy0.fsf@nikula.org> Date: Sat, 30 Sep 2017 07:55:11 -0700 Message-ID: <871smome28.fsf@jb55.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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, 30 Sep 2017 14:55:14 -0000 Hey Jani, Jani Nikula writes: > I think there are two considerations here: > > First, is this something we want to have? Is this generally useful? Sorting by from and subject are in most mail clients (mutt, gnus, outlook...) > There's still the issue of From: and Subject: needing more heuristic for > useful sorting that I mentioned in id:87efrm70ai.fsf@nikula.org. I think I understand what you mean in id:87efrm70ai.fsf@nikula.org but I don't have enough knowledge of notmuch to implement what you're asking :(. I believe these are rare cases because I haven't ran into the issue you described? > Second, if we decide we want this, IMHO the interfaces (both human and > the lib) need to split the sort key and sort order from the > start. Fixing it later on is not going to be fun. I agree, I figured that would have been a larger refactor so I decided not to mix it in with this one. I'll start working on a branch that addresses this. Thanks! William -- https://jb55.com