1 Return-Path: <markwalters1009@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id C8A04431FBC
\r
6 for <notmuch@notmuchmail.org>; Thu, 1 Nov 2012 12:26:28 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,
\r
14 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id qwl9iSN3qh6J for <notmuch@notmuchmail.org>;
\r
18 Thu, 1 Nov 2012 12:26:28 -0700 (PDT)
\r
19 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com
\r
20 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
21 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
22 4AE1C431FAE for <notmuch@notmuchmail.org>; Thu, 1 Nov 2012 12:26:28 -0700
\r
24 Received: by mail-wg0-f45.google.com with SMTP id dq12so1608411wgb.2
\r
25 for <notmuch@notmuchmail.org>; Thu, 01 Nov 2012 12:26:27 -0700 (PDT)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer;
\r
28 bh=S72DjZVV8OqlGfDBIIohPxBbPxn//Vib74eMLrD1KMs=;
\r
29 b=jso4LBqSs86tGvzuzlBDHtMfq67eg+3zdcbsaE27ltrjaI3WBWBMio3R79zXFwNhyX
\r
30 OscL/+3LAbXPTDXBmRQLg2JAffH+3dmnT3N2SFgDuk73Ne+0yV/gqnsdHlxioKAFE+Wn
\r
31 5t9+f5WN+sTP+2RPCtv67r4CV0eFIo21Ft+pCsNRDJRYpBWLCXwy43iZtyPzQ6MlXtuX
\r
32 wPuoNS7L0zS1N7riugIJsLDL2ge2xU2oz9RNl/e1VjHLicm4TWYBOQwCKHQ99QOj6YVg
\r
33 jedhyzt2PBVZwqJx9O8Pc394FUSgbjNsQy31j9BKpXZoHj2bvJ3MA0yOpEDVhQmIOVjB
\r
35 Received: by 10.180.99.99 with SMTP id ep3mr3312303wib.15.1351797987059;
\r
36 Thu, 01 Nov 2012 12:26:27 -0700 (PDT)
\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])
\r
38 by mx.google.com with ESMTPS id m14sm117878wie.8.2012.11.01.12.26.25
\r
39 (version=TLSv1/SSLv3 cipher=OTHER);
\r
40 Thu, 01 Nov 2012 12:26:26 -0700 (PDT)
\r
41 From: Mark Walters <markwalters1009@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH] contrib: pick: bugfix when trying to show a non-message
\r
44 Date: Thu, 1 Nov 2012 19:26:23 +0000
\r
45 Message-Id: <1351797983-19707-1-git-send-email-markwalters1009@gmail.com>
\r
46 X-Mailer: git-send-email 1.7.9.1
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Thu, 01 Nov 2012 19:26:28 -0000
\r
61 If the user pressed return on the end result status line it gave a
\r
62 blank message. Modify the function notmuch-pick-get-message-id to
\r
63 return nil rather than an empty message-id in this case to fix this.
\r
65 contrib/notmuch-pick/notmuch-pick.el | 4 +++-
\r
66 1 files changed, 3 insertions(+), 1 deletions(-)
\r
68 diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el
\r
69 index 15ac5e8..1886469 100644
\r
70 --- a/contrib/notmuch-pick/notmuch-pick.el
\r
71 +++ b/contrib/notmuch-pick/notmuch-pick.el
\r
72 @@ -241,7 +241,9 @@ Some useful entries are:
\r
74 (defun notmuch-pick-get-message-id ()
\r
75 "Return the message id of the current message."
\r
76 - (concat "id:\"" (notmuch-pick-get-prop :id) "\""))
\r
77 + (let ((id (notmuch-pick-get-prop :id)))
\r
79 + (concat "id:\"" id "\""))))
\r
81 (defun notmuch-pick-get-match ()
\r
82 "Return whether the current message is a match."
\r