--- /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 olra.theworths.org (Postfix) with ESMTP id 53212431FBF\r
+ for <notmuch@notmuchmail.org>; Sat, 25 May 2013 23:50:20 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 7izKtTl9qbdp for <notmuch@notmuchmail.org>;\r
+ Sat, 25 May 2013 23:50:14 -0700 (PDT)\r
+Received: from mail-we0-f171.google.com (mail-we0-f171.google.com\r
+ [74.125.82.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 9EF6E431FAE\r
+ for <notmuch@notmuchmail.org>; Sat, 25 May 2013 23:50:14 -0700 (PDT)\r
+Received: by mail-we0-f171.google.com with SMTP id t59so3671755wes.16\r
+ for <notmuch@notmuchmail.org>; Sat, 25 May 2013 23:50:13 -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:x-mailer;\r
+ bh=R7gArVe6SYTA3mA08Y1quga6oexXI6O9vZoJqa596H4=;\r
+ b=DpR98oenVrVSx3ElF56UYEYWDnt4FrYlDUmbaTJWyMC5kk7hq45bxWxSCnyqd9LBBw\r
+ A4+YyrzpOHFOiUH+dFoE0OGm0niR+HZE5fpdocVNm9+aamAuzGt/zndPKCkbBtxUS9X7\r
+ mV522zOf6YqvxkaP7QzKIKXEARoPyPzml7vAWVML/eoTR7WAwf/MXwOtbzjlW0hY8g3Z\r
+ nEye49YvfYRzDgzk5Zi3TcbZsWTPUlSa/nJKx8iMGWAyhhovyjNx3pmMEZZ9vLXAloUG\r
+ vSwZd80jF1GhpCtngtCkNfFFAphRSuHq4ZDdzgcdvm6u5TAJfgq2Zw7yBqX9K+zTxfEu\r
+ Ridw==\r
+X-Received: by 10.180.14.199 with SMTP id r7mr4061337wic.6.1369551013585;\r
+ Sat, 25 May 2013 23:50:13 -0700 (PDT)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+ by mx.google.com with ESMTPSA id fz8sm9115445wib.2.2013.05.25.23.50.12\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Sat, 25 May 2013 23:50:13 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/2] Contrib: Pick: Remove horrible hack\r
+Date: Sun, 26 May 2013 07:50:06 +0100\r
+Message-Id: <1369551008-30697-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Sun, 26 May 2013 06:50:20 -0000\r
+\r
+Pick used to have one horrible hack: if the user asked it to open the\r
+first matching message it had to check whether that had arrived (as\r
+the search is asynchronous) and if not wait and try again. Now the\r
+opening of the first matching message is called via the pick process\r
+filter this hack can be removed.\r
+\r
+This did reveal the followibg small bug. Pick shows the subject line\r
+in the output but if it is the same as the previous line (ignoring re:\r
+etc) it shows ... If a single message is refreshed (eg for a tag\r
+update) this was got wrong. The change above triggered this and made\r
+the test fail as the unread tag was removed from the first matching\r
+message when it was displayed.\r
+\r
+Patch 2/2 fixes this by storing the previous subject with the search result.\r
+\r
+Best wishes\r
+\r
+Mark\r
+ \r
+\r
+Mark Walters (2):\r
+ contrib: pick: remove hack notmuch-pick-show-match-message-with-wait\r
+ contrib: pick: fix refresh result\r
+\r
+ contrib/notmuch-pick/notmuch-pick.el | 60 ++++++++++++++++-----------------\r
+ 1 files changed, 29 insertions(+), 31 deletions(-)\r
+\r
+-- \r
+1.7.9.1\r
+\r