From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2562C429E26 for ; Fri, 24 Oct 2014 01:48:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001] 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 I13ZMjvzxfwl for ; Fri, 24 Oct 2014 01:48:14 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0B462431FBD for ; Fri, 24 Oct 2014 01:48:13 -0700 (PDT) Received: by mail-wi0-f178.google.com with SMTP id q5so694209wiv.5 for ; Fri, 24 Oct 2014 01:48:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:user-agent:from:to:subject:date:message-id; bh=aL14++hJuZijPhojq8dXhfNkhpBRfDewiYhYipTcNkQ=; b=Dr2orzaZtj4fJhi21t1M2fKMH37PThpZ4OtCRPGeOHtvH3zkZC5PqZWXanapyGBp2r rIfPo+Vg24vL4aOqkct21NN7HnAlqtWOBAAFtaJiOlYzWoqOJIbSwFkyKTXm2tsorv1m sX3kZfRRoW+ASrJesd1jGEOK2Zjh7zrmzz+5lGlu2riAV5BzzeR+8VMDLrVFerTk/UrH UDeYGdJf3vRIkNyoWBn1tC6OSM265oBuEy7iOcmlmgngv9V2mUwBCseQjTAHgE2w87hG 5fo1hVnqjdiydSqZL3VIVO53Tq1Y7VjqLz+KBo39gW2mU5jiiNA/+/+2zzpccgCQZub3 rYGQ== X-Gm-Message-State: ALoCoQkzs0JrRXih5XU32XlsbBKOM30TzgylWaCcmCu012LPvtDyNLU4A3HG6mNyfPgFVbpY2pUg X-Received: by 10.180.76.41 with SMTP id h9mr2657571wiw.40.1414140491041; Fri, 24 Oct 2014 01:48:11 -0700 (PDT) Received: from disaster-area.hh.sledj.net ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) by mx.google.com with ESMTPSA id ee3sm1250679wic.4.2014.10.24.01.48.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Oct 2014 01:48:10 -0700 (PDT) Received: from localhost (30000@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id 4d794312; for ; Fri, 24 Oct 2014 08:48:08 +0000 (UTC) User-Agent: OpenSMTPD enqueuer (Demoostik) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v1 0/3] Improve the display of matching/non-matching authors. Date: Fri, 24 Oct 2014 09:48:05 +0100 Message-Id: <1414140488-29978-1-git-send-email-dme@dme.org> X-Mailer: git-send-email 2.1.1 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: Fri, 24 Oct 2014 08:48:22 -0000 Improve the display of matching/non-matching authors. Distinguishing between matching and non-matching authors in the emacs interface is currently done by parsing the :authors attribute of a search result. If one of the authors uses the pipe symbol (|) in their 'From' address this parsing incorrectly determines the matching and non-matching authors. Address this by adding explicit matching and non-matching authors attributes to the structured output formats. David Edmondson (3): search: Seperately report matching and non-matching authors. emacs: Improved display of matching/non-matching authors. test: Update tests for :authors_matched and :authors_non_matched. emacs/notmuch.el | 64 ++++++++++++++++++++++++-------------------- lib/notmuch.h | 34 +++++++++++++++++++++++ lib/thread.cc | 60 ++++++++++++++++++++++++++++------------- notmuch-search.c | 6 +++++ test/T160-json.sh | 4 +++ test/T170-sexp.sh | 4 +-- test/T470-missing-headers.sh | 4 +++ 7 files changed, 127 insertions(+), 49 deletions(-) -- 2.1.1