Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E7BA8431FAF for ; Sat, 2 Nov 2013 06:25:35 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K4HUy+sdW2dz for ; Sat, 2 Nov 2013 06:25:30 -0700 (PDT) Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 38257431FC3 for ; Sat, 2 Nov 2013 06:25:30 -0700 (PDT) Received: by mail-ob0-f174.google.com with SMTP id vb8so5622559obc.33 for ; Sat, 02 Nov 2013 06:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:subject:mime-version:content-type :content-transfer-encoding; bh=PDy/Q7x/ERxiHqh2jiQkzOuLBMsuv1oW1KlMkQqKsUA=; b=00lT7i1bgO92U8gTOtkUpRU9QoA5Or7/ER/gtUod2W8IK7UVeRtVQYijDv9lfDPdme RK4Q7F88ej7GaNZdQ/ZNLLVx7jfpRpUuuZdKja0h1OKsq9btMrb6yPw1KaYILTyTuTF8 nwF5ERd3M+dKNKEFTeYGTc163h5RjFGEVWQtYvdaI9kl0UPRFuaOcKHp3wENhPV4huOE T+E0k3dE2DdO+RVJHHhvSUi2oAztTu238O8aXPC5iBcAW4KXq7JSjvMlw3ybwhdvHDfU eqVoap8lcLDyuETWLj/MkWrZL1kUt72p1U+OzrQmeuyu5CpO0OetOGOeNyYk2DQxCFA2 8G4Q== X-Received: by 10.60.116.230 with SMTP id jz6mr6498125oeb.21.1383398729501; Sat, 02 Nov 2013 06:25:29 -0700 (PDT) Received: from localhost (187-162-140-241.static.axtel.net. [187.162.140.241]) by mx.google.com with ESMTPSA id tz10sm10494016obc.10.2013.11.02.06.25.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Nov 2013 06:25:28 -0700 (PDT) Date: Sat, 2 Nov 2013 07:08:14 -0600 From: Felipe Contreras To: notmuch@notmuchmail.org Cc: Message-Id: <5274f93e254b5_6de7f51e7849@nysa.notmuch> Subject: Getting the right root mail of the thread Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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, 02 Nov 2013 13:25:39 -0000 Hi, I often wondered why when browsing threads, I often see a message that doesn't describe at all the thread, for example: notmuch search ... thread:000000000000826a 18 mins. ago [45/45] Felipe Contreras; [PATCH/TEST 44/44] I can reverse the order of the search: notmuch search --sort=oldest-first thread:000000000000826a 23 mins. ago [45/45] Felipe Contreras; [PATCH/TEST 00/44] Then I get the correct summary, but now the order of the search is the other way around, and there doesn't seem to be a way to specify the order of the messages independently of the order of the threads. Either way this doesn't make any sense to me. Each thread has a single origin mail, why would anybody would like to show a message other than that while displaying the summary of the tread? Even more, why isn't there an option to fetch that information easily? I am forced to get the list of messages, and then grab the first one, even though it's not efficient, probably unnecessary, and potentiall wrong. For example, it's possible that multiple mails arrived at the same time, then how am I supposed to display the one that originated the thread? I think there should be a way to get the root mail of a thread, irrespective of the search order. Cheers. -- Felipe Contreras