--- /dev/null
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 68A246DE14F2\r
+ for <notmuch@notmuchmail.org>; Fri, 26 Jun 2015 15:50:52 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.187\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.187 tagged_above=-999 required=5 tests=[AWL=0.757, \r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id jw0wpfFiJtOL for <notmuch@notmuchmail.org>;\r
+ Fri, 26 Jun 2015 15:50:50 -0700 (PDT)\r
+Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com\r
+ [209.85.212.174])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 65E296DE0274\r
+ for <notmuch@notmuchmail.org>; Fri, 26 Jun 2015 15:50:50 -0700 (PDT)\r
+Received: by wiwl6 with SMTP id l6so56397109wiw.0\r
+ for <notmuch@notmuchmail.org>; Fri, 26 Jun 2015 15:50:47 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id;\r
+ bh=LmvLrbqhdd2r0RADbn/gnRd9hqoXvf1wsziDny4+cH4=;\r
+ b=B1iUmP9Gqtt7revZbBYUmKTwJ6VsiebbsN3KU0W74biQ1yR3b6lICpTBCs/nBpPOrI\r
+ 4pYFNNVRY37M+lyBvG0uuwuc3XrRTMK6WOQEVx5k0DBFNKz436fLoFrm2LKCW9nvnfFl\r
+ +ivb6uu/b2gmR0nRj68qb5xK5Dqm9mdlJIywHxXuVNgIGirboNrCeHIVvc7L2qfXkvpi\r
+ AjZljDZ/LMVl1NFEvD1U2tQV4ruUsh9ojG84n9C42ru+yE6p5CXB9X9HDoeA7Ay7nx1X\r
+ 150QO6yVnnH+DeEdK6Vyi8EY+fRvpRcAxaVNv7Xj4NJVmaooXvUfjzaroDR+jc8nK1Vd\r
+ PkuQ==\r
+X-Received: by 10.180.189.201 with SMTP id gk9mr716105wic.53.1435359046049;\r
+ Fri, 26 Jun 2015 15:50:46 -0700 (PDT)\r
+Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
+ by mx.google.com with ESMTPSA id gw7sm392583wib.15.2015.06.26.15.50.44\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Fri, 26 Jun 2015 15:50:45 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/4] Allow oldest-first view in tree view\r
+Date: Fri, 26 Jun 2015 23:50:31 +0100\r
+Message-Id: <1435359035-6767-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 2.1.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 26 Jun 2015 22:50:52 -0000\r
+\r
+This series allows the user to toggle the sort order in tree view and,\r
+in particular, allows oldest first view.\r
+\r
+Note that in all cases messages within a thread are displayed in\r
+thread order: the option only affects the order when multiple threads\r
+are viewed. If you only use tree view for single threads then nothing\r
+will change.\r
+\r
+Since tree view uses the notmuch-show command line as a backend this\r
+means we need to add a --sort option tonotmuch show. This is the first\r
+patch.\r
+\r
+The second patch implements the toggle sort order option bound to 'o'\r
+(so the same as the corresponding command in search view).\r
+\r
+These third and fourth patches are more optional: they make notmuch\r
+tree view inherit the notmuch search order when called via Z\r
+(notmuch-tree-from-search-current-query), and use the default\r
+notmuch-search sort order (notmuch-search-oldest-first) when called\r
+interactively. The third patch does the code change and the fourth the\r
+test update.\r
+\r
+I think these last two patches make sense for consistency but I have\r
+no strong feelings otherwise.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+\r
+\r
+Mark Walters (4):\r
+ cli: show: allow sort order to be specified\r
+ emacs: tree: bind o to toggle sort order\r
+ emacs: tree: add sort argument to notmuch-tree\r
+ test: tree: fix and a test for tree sort order changes\r
+\r
+ doc/man1/notmuch-show.rst | 17 +++++++\r
+ emacs/notmuch-tree.el | 44 +++++++++++++++---\r
+ emacs/notmuch.el | 2 +-\r
+ notmuch-show.c | 8 ++++\r
+ test/T460-emacs-tree.sh | 11 ++++-\r
+ .../notmuch-tree-tag-inbox-oldest-first | 53 ++++++++++++++++++++++\r
+ 6 files changed, 126 insertions(+), 9 deletions(-)\r
+ create mode 100644 test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first\r
+\r
+-- \r
+2.1.4\r
+\r